@gorhom/bottom-sheetで何故か常に最大snapPointsで開く
条件はわからないが、snapPointsを
code:sample.tsx
<BottomSheet
ref={ref}
index={-1}
snapPoints={initialSnapPoints}
--------------------------------------------------
このように設定していたとき、expandするたびに90%になる。なぜだ。
解決法
code:component.tsx
bottomSheetRef.current?.expand();
bottomSheetRef.current?.snapToIndex(0);