After upgrading from v1.1.219 to v1.1.220 or later, I start seeing a black bar fly up before my View appears in the slide-up animation when showing a modal.
I assume it happens, because the screen hasn't rendered when the animation starts, but before (with version 1.1.219 and lower) this wasn't a problem, because the screen would just fade in halfway up and there was no black bar moving upwards with it.
Call
this.props.navigator.showModal({
screen: "<screenID>", // unique ID registered with Navigation.registerScreen
title: "Test", // navigation bar title of the pushed screen (optional)
passProps: {}, // Object that will be passed as props to the pushed screen (optional)
animationType: 'slide-up',
});
on Android for some registered screenID (Tested it with a screen that renders just a View with a backgroundColor and flex: 1).
Hey @VSchlattinger
You can try showing the modal with the default screen animation which mitigates this issue.
Navigation.showModal({
screen: "example.ModalScreen",
animationType: 'screen'
});
You can control the default screen animation type on Android by setting screenAnimationType: 'screen' in AppStyle.
While we probably won't fix this issue in v1, it's resolved in v2. Sorry for the inconvenience.
Most helpful comment
Hey @VSchlattinger
You can try showing the modal with the default screen animation which mitigates this issue.
You can control the default screen animation type on Android by setting
screenAnimationType: 'screen'in AppStyle.While we probably won't fix this issue in v1, it's resolved in v2. Sorry for the inconvenience.