Created
February 21, 2021 18:30
-
-
Save hayanisaid/19af2b0993d0f0d08c98b55ca74b93d7 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 React from 'react'; | |
import { | |
SafeAreaView, | |
StyleSheet, | |
ScrollView, | |
View, | |
Text, | |
StatusBar, | |
TouchableHighlight, | |
} from 'react-native'; | |
import * as Animatable from 'react-native-animatable'; | |
const App: () => React$Node = () => { | |
const phoneRef = React.useRef(null); | |
return ( | |
<> | |
<StatusBar barStyle="dark-content" /> | |
<SafeAreaView> | |
<ScrollView> | |
<View | |
style={{ | |
borderColor: 'red', | |
flex: 1, | |
alignItems: 'center', | |
justifyContent: 'center', | |
}}> | |
{/* <LiteCreditCardInput onChange={_onChange} /> */} | |
{/* <PhoneInput ref={phoneRef} /> */} | |
<Animatable.View animation="slideInDown"> | |
<TouchableHighlight | |
style={{ | |
width: 160, | |
height: 160, | |
borderRadius: 8, | |
backgroundColor: '#6155a6', | |
alignItems: 'center', | |
justifyContent: 'center', | |
}}> | |
<Text | |
style={{ | |
color: '#fff', | |
}}> | |
SlideInDown | |
</Text> | |
</TouchableHighlight> | |
</Animatable.View> | |
<Animatable.View animation="slideInLeft"> | |
<TouchableHighlight | |
style={{ | |
width: 160, | |
height: 160, | |
borderRadius: 8, | |
backgroundColor: '#fdb827', | |
alignItems: 'center', | |
justifyContent: 'center', | |
}}> | |
<Text | |
style={{ | |
color: '#fff', | |
}}> | |
SlideInLeft | |
</Text> | |
</TouchableHighlight> | |
</Animatable.View> | |
<Animatable.View animation="bounce"> | |
<TouchableHighlight | |
style={{ | |
width: 160, | |
height: 160, | |
borderRadius: 8, | |
backgroundColor: '#ff4646', | |
alignItems: 'center', | |
justifyContent: 'center', | |
}}> | |
<Text | |
style={{ | |
color: '#fff', | |
}}> | |
Bounce | |
</Text> | |
</TouchableHighlight> | |
</Animatable.View> | |
</View> | |
</ScrollView> | |
</SafeAreaView> | |
</> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment