We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dear,
I'm using this package, but unfortunately the snapTo ref func not working for me,
it's giving me snapPoint.tension error
snapPoint.tension error
below is the screenshot, I'm testing in IOS 16.4 iPhone 14.
using below package "react-native-bottomsheet-reanimated": "^0.3.1"
"react-native-bottomsheet-reanimated": "^0.3.1"
with this package installed in separately was giving error
"react-native-interactable-reanimated": "0.0.15"
Component Code below
import React, {useRef, useState} from 'react' import {Text} from 'react-native' import BSheet from 'react-native-bottomsheet-reanimated' import Ripple from 'react-native-material-ripple' const BottomSheet = () => { const bottomRef = useRef(null) const onPress = () => { // calling below func on press bottomRef.current.snapTo(['16%', '80%']) } return ( <BSheet keyboardAware ref={bottomRef} // here is the ref attached initialPosition={'16%'} snapPoints={['16%', '80%']} isRoundBorderWithTipHeader={true} header={ <> <Ripple onPress={onPress}> <Text> Drag Me </Text> </Ripple> </> } body={ <View><Text>Body</Text></View> } /> ) } else { return null } }
Screenshot
https://ibb.co/nkG7RK7
The text was updated successfully, but these errors were encountered:
@adilsaeed31 please try like this bottomRef.current.snapTo(0);
bottomRef.current.snapTo(0);
Sorry, something went wrong.
Thanks, it's fixed.
No branches or pull requests
Dear,
I'm using this package, but unfortunately the snapTo ref func not working for me,
it's giving me
snapPoint.tension error
below is the screenshot, I'm testing in IOS 16.4 iPhone 14.
using below package
"react-native-bottomsheet-reanimated": "^0.3.1"
with this package installed in separately was giving error
"react-native-interactable-reanimated": "0.0.15"
Component Code below
Screenshot
https://ibb.co/nkG7RK7
The text was updated successfully, but these errors were encountered: