Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

any idea how to use this with react-router-native? #148

Closed
thg303 opened this issue Sep 29, 2018 · 3 comments
Closed

any idea how to use this with react-router-native? #148

thg303 opened this issue Sep 29, 2018 · 3 comments

Comments

@thg303
Copy link

thg303 commented Sep 29, 2018

examples are focused on react-js. I wonder how can this be used with react-router-native?

@thg303 thg303 changed the title any idea how to use this with native-router? any idea how to use this with react-router-native? Sep 29, 2018
@n-sviridenko
Copy link

Hello. Any updates on this?

@lideen
Copy link

lideen commented Oct 11, 2018

I'm using it by creating the history like this:

import { createMemoryHistory } from 'history'
import { Alert } from 'react-native'

const history = createMemoryHistory({
  getUserConfirmation: (message, callback) => {
    Alert.alert('Confirm', message, [
      { text: 'Cancel', onPress: () => callback(false) },
      { text: 'OK', onPress: () => callback(true) }
    ])
  }
})

All other configuration is the same as in the Usage section in the Readme. 😄

@supasate
Copy link
Owner

And the comment in #194 may help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants