fix(BottomSheetContainer): cannot add new property 'value'
Motivation
Currently the v4 faces the issue cannot add new property 'value' (have a look at https://github.com/gorhom/react-native-bottom-sheet/issues/1292 and https://github.com/gorhom/react-native-bottom-sheet/pull/1293)
Those were automatically closed without fixing the issue.
To fix that issue, BottomSheetContainer.tsx has to check if containerOffset.value is available.
One more try 😄 You will not get rid of me @gorhom !
My two previous PRs got automatically closed:
- https://github.com/gorhom/react-native-bottom-sheet/pull/1650
- https://github.com/gorhom/react-native-bottom-sheet/pull/1758
Please have a look at it. It's just one line to prevent a potential undefined containerOffset which happens in some cases.
thanks for your contribution ,, i apologise for merging late
thanks for your contribution ,, i apologise for merging late
No worries 🙂