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
[Android]: OnPress not working when modal is open after updating react native version #737
Comments
Same here! |
Same here and cant find solution either. Was ok on 0.70.5 after updating 0.71.5 it happened for me |
For temporary solution I made TextInput position: 'absolute' and set Modal useNativeDriver to false, but it doesn't have best performance for now. hope we will have decent solution soon. |
I tried to investigate more, The problem is this part So, I think react native animatable doesn't work right with new architecture changes |
@FelipeGCastro @batuhansahan did you find fix? |
@elencho nothing here, did you find any solution ? |
I disabled fabric |
For who is using RN 0.71+ |
+1 |
disable newArch ? |
disabling fabric resolved issue, but it is just temporary fix |
Wrapping the Modal in a View solved the problem for me in RN 0.71.8 |
onPress does not work even wrapping the modal with a View. New architecture, RN 0.72.5 |
Mine working in android but not in ios with the RNVersion 0.72.5, the props insdie Modal like modalWillMount is invoking though, only visibility issue |
OnPress not working while modal is open after updating react native version, not on presseble and neither on TouchableOpacity, tried swapping it with built in modal and it worked, I think there is issue with newer components and modal. Also focusing on textinput is not working when modal is open. scroll works perfectly.
Environment
react-native: 0.71.4
react: 18.2.0
Platforms
only on android, tested on galaxy s22
Versions
Description
it is suck on open screen, I can open and close modal without problem but I cant press anything. Flatlist works fine.
Reproducible Demo
<Modal isVisible={visible} onBackdropPress={hide} onSwipeComplete={hide} swipeDirection="down" propagateSwipe={true} style={styles.modal} animationOutTiming={500} backdropTransitionInTiming={300} onModalHide={onModalHide} hideModalContentWhileAnimating useNativeDriver useNativeDriverForBackdrop onDismiss={onDismiss} // coverScreen={false} > <Pressable onPress={() => console.log('first')} onLongPress={() => console.log('long')} unstable_pressDelay={0} style={{ backgroundColor: 'red', height: 100, width: 100 }} > <Text>asd</Text> </Pressable> <AppToast /> </Modal>
The text was updated successfully, but these errors were encountered: