Skip to content

Instantly share code, notes, and snippets.

@hayanisaid
Created February 21, 2021 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hayanisaid/19af2b0993d0f0d08c98b55ca74b93d7 to your computer and use it in GitHub Desktop.
Save hayanisaid/19af2b0993d0f0d08c98b55ca74b93d7 to your computer and use it in GitHub Desktop.
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