Open joseph-ampfer opened 6 months ago
Describe the bug Every time I try to use Modalize I get the synthetic event warning and Possible unhandled promise rejection: TypeError: Cannot read property 'layout' of null.
Even with the bare minimum modal, with only one line of text in it.
const modalizeRef = useRef(null);
const onOpen = () => { modalizeRef.current?.open(); }
<Pressable onPress={onOpen}> <Text style={twtext-white ml-21}>open modalize</Text> </Pressable>
<Pressable onPress={onOpen}> <Text style={tw
}>open modalize</Text> </Pressable>
` <Modalize ref={modalizeRef}
Test test `
`
Dependencies:
You need to add this as props:
avoidKeyboardLikeIOS={true} keyboardAvoidingBehavior={Platform.OS === 'ios' ? undefined : 'height'
Describe the bug Every time I try to use Modalize I get the synthetic event warning and Possible unhandled promise rejection: TypeError: Cannot read property 'layout' of null.
Even with the bare minimum modal, with only one line of text in it.
const modalizeRef = useRef(null);
const onOpen = () => { modalizeRef.current?.open(); }
<Pressable onPress={onOpen}> <Text style={tw
text-white ml-21}>open modalize</Text> </Pressable>
` <Modalize ref={modalizeRef}
Dependencies: