You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I set snapPoints={[55, 100]} I'd expect that the card would cover 55% or 100% of the viewport but that doesn't seem to be the case at all. The size of the card seems to be whatever fits the contents and if the contents is smaller than 55% of the screen then I can't pull the card up to cover 55%/100%. I can pull it up some small, "random" amount. Standalone sample app using 0.71.7:
npx react-native@0.71.7 init ActionSheet --version 0.71.7
cd ActionSheet
bundle install
npm i --save react-native-actions-sheet@0.8.12 react-native-safe-area-context
cd ios
bundle exec pod install
cd ..
npx react-native run-ios --simulator="iPhone 14"
I think I figured it out. The snapPoints are relative to the height passed to the containerStyle. In fact it's really important to set the height for things in general to work in a sensible manner. It would be nice if the docs mention this.
If I set
snapPoints={[55, 100]}
I'd expect that the card would cover 55% or 100% of the viewport but that doesn't seem to be the case at all. The size of the card seems to be whatever fits the contents and if the contents is smaller than 55% of the screen then I can't pull the card up to cover 55%/100%. I can pull it up some small, "random" amount. Standalone sample app using 0.71.7:App.tsx:
Initial size:
Fully pulled up size:
The text was updated successfully, but these errors were encountered: