Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jgcmarins/b207866037fad1209aa2d8cb28a04bdf to your computer and use it in GitHub Desktop.
Save jgcmarins/b207866037fad1209aa2d8cb28a04bdf to your computer and use it in GitHub Desktop.
const AnimatedTextInput = styled(Animated.createAnimatedComponent(RNTextInput))`
backgroundColor: transparent;
color: #000;
height: 48;
marginTop: 20;
paddingHorizontal: 0;
`;
//...
<AnimatedTextInput
style={{
opacity: typingInput.interpolate({
inputRange: [0, 1],
outputRange: [0.2, 0.6],
}),
// ...
}}
defaultValue={label}
underlineColorAndroid="transparent"
useNativeDriver
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment