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
iOS card animations for android #1400
Comments
Ran into this as well, and as a workaround I set the import CardStackStyleInterpolator from 'react-navigation/src/views/CardStackStyleInterpolator';
export default StackNavigator({
Home: {
screen: HomeScreen,
},
}, {
transitionConfig: () => ({
screenInterpolator: CardStackStyleInterpolator.forHorizontal,
}),
navigationOptions: ({ navigation }) => ({
//...
}),
}) |
It would be great to export |
Trying to track down a bit more information regarding custom transitions and
When executed? |
@wokalski Do you know if now |
@manuTro the following works fine for me: import CardStackStyleInterpolator from 'react-navigation/src/views/CardStackStyleInterpolator'; |
@koenpunt The problem is that I'm using clojurescript so I need to require it directly from react-navigation.. Otherwise it works but I have this warnig: |
@koenpunt Or maybe is there another way to make stacknavigator swipe horizontally? |
You can copy the file for the time being, until it's exposed as a default export. |
It would be nice to have this working the same for android since mode={'modal'} and mode={'card'} are the same transitions on android.
The text was updated successfully, but these errors were encountered: