react-native-modalize icon indicating copy to clipboard operation
react-native-modalize copied to clipboard

method open() not working properly when using alwaysOpen prop

Open fauzymk opened this issue 4 years ago • 3 comments

Describe the bug method .open() is not working when using the alwaysOpen prop. However it works if I use .open('top') but need to tap the backdrop twice to close

Dependencies:

  • react-native-modalize [2.0.8]
  • react-native [0.63.0]
  • react-native-gesture-handler [1.7.0]

fauzymk avatar Dec 22 '20 09:12 fauzymk

for me too, but open('top') won't work too

alucardeht avatar Dec 22 '20 17:12 alucardeht

using settimeout works fine

setTimeout(() => { modalizeRef.current.open('top') }, 500)

iacocesar avatar Feb 14 '21 02:02 iacocesar

When your declare alwaysonTop, not use .open, only open('top)

Marcuspo avatar Feb 28 '22 17:02 Marcuspo