Created
June 8, 2022 03:15
-
-
Save PrasathRavichandran/5ec1821cca4c309f750e1f3a2adeb3d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { useSharedValue } from 'react-native-reanimated'; | |
... | |
const CustomTextInput = () => { | |
const InputLength = useSharedValue({width: '100%'}); | |
const SearchTextPlacement = useSharedValue({ | |
transformX: (Dimensions.get('window').width - 140) / 2, | |
}); | |
const CancelBtn = useSharedValue({transformX: 100}); | |
..... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment