Very slow in android
See original GitHub issuemodal taking 2 or 3 seconds to open in Android, while in ios it is very fast.
<Modal isVisible={this.state.showModal} animationIn='slideInUp' backdropColor='black' backdropOpacity='0.20' animationInTiming={0} style={styles.bottomModal} onSwipe={() => this.setState({showModal: false})} onBackdropPress={() => this.setState({showModal: false})} > <View style={styles.modalContent}> <List itemDivider={false}> <ListItem icon noBorder style={{borderBottomWidth: 0}}> <Left> <Icon name="ios-camera"/> </Left> <Body> <Text>Upload from camera</Text> </Body> </ListItem> </List> </View> </Modal> </View>
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:20 (2 by maintainers)
Top GitHub Comments
Android is slower when not build in release mode. Try creating a release apk and see if it works correctly there.
i solved it by adding the following prop useNativeDriver={true}
https://stackoverflow.com/questions/61127422/react-native-modal-time-delay-and-jerky-animation