-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
40 lines (36 loc) · 843 Bytes
/
App.tsx
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
40
/* eslint-disable react-native/no-inline-styles */
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* Generated with the TypeScript template
* https://github.com/react-native-community/react-native-template-typescript
*
* @format
*/
import React, {Component} from 'react';
import {View, Text} from 'react-native';
class Greeting extends Component<{name: string}, {}> {
render() {
return (
<View style={{alignItems: 'center'}}>
<Text>Hello {this.props.name}!</Text>
</View>
);
}
}
const App = () => {
return (
<View
style={{
flex: 1,
justifyContent: 'center',
alignItems: 'center',
}}>
<Greeting name="Amina" />
<Greeting name="Georges stinney" />
<Greeting name="Obama" />
</View>
);
};
export default App;