colorfy-software / react-native-modalfy

🥞 Modal citizen of React Native.
https://colorfy-software.gitbook.io/react-native-modalfy
MIT License
1.08k stars 44 forks source link

Backdrop not being rendered after initial close #37

Closed joeyfigaro closed 3 years ago

joeyfigaro commented 3 years ago

After opening and closing a modal, the next time a modal is opened there is no backdrop.

package version: v2.1.0 react-native version: 0.63.4

joeyfigaro commented 3 years ago

For anyone else who stumbles here, my issue was that I was specifying overrides for backdropColor and backdropOpacity and the color was invalid.

{
   ...,
    backdropColor: 'rgba(255, 255, 255)', // missing alpha
    backdropOpacity: 0.0,
}

Interestingly, on the first render the backdrop was using default color and opacity. My (broken) config appears to have been applied for subsequent opens.