-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
App.js
39 lines (37 loc) · 1022 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import * as React from 'react';
import { Alert, StatusBar, View, StyleSheet } from 'react-native';
import Constants from 'expo-constants';
import TextAnimator from './components/TextAnimator';
export default function App() {
const _onFinish = () => {
// Alert.alert('Animation', 'It is done!');
};
return (
<View style={styles.container}>
<StatusBar hidden />
<TextAnimator
content='For the things we have to learn before we can do them, we learn by doing them. ️️️️️️REACT NATIVE ❤️️️️'
textStyle={styles.textStyle}
style={styles.containerStyle}
duration={500}
onFinish={_onFinish}
/>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
paddingTop: Constants.statusBarHeight,
backgroundColor: '#ecf0f1',
padding: 8
},
containerStyle: {},
textStyle: {
fontSize: 28,
fontWeight: 'bold',
fontFamily: 'Menlo',
marginBottom: 14
}
});