-
Notifications
You must be signed in to change notification settings - Fork 593
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
Comments
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
Hello. Any updates on this? |
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. 😄 |
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
examples are focused on react-js. I wonder how can this be used with react-router-native?
The text was updated successfully, but these errors were encountered: