Skip to content

Instantly share code, notes, and snippets.

@PrasathRavichandran
Created June 8, 2022 03:15
Show Gist options
  • Save PrasathRavichandran/5ec1821cca4c309f750e1f3a2adeb3d9 to your computer and use it in GitHub Desktop.
Save PrasathRavichandran/5ec1821cca4c309f750e1f3a2adeb3d9 to your computer and use it in GitHub Desktop.
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