Skip to content

Commit 0fa61f1

Browse files
author
Alex Lavrov
committed
Create react-native app
1 parent bf9c941 commit 0fa61f1

File tree

6 files changed

+11853
-0
lines changed

6 files changed

+11853
-0
lines changed

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#npm
2+
node_modules/
3+
4+
#IDE
5+
.idea
6+
7+
#expo
8+
.expo

App.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import React from 'react';
2+
import { StyleSheet, Text, View } from 'react-native';
3+
4+
export default class App extends React.Component {
5+
render() {
6+
return (
7+
<View style={styles.container}>
8+
<Text>Open up App.js to start working on your app!</Text>
9+
<Text>Changes you make will automatically reload.</Text>
10+
<Text>Shake your phone to open the developer menu.</Text>
11+
</View>
12+
);
13+
}
14+
}
15+
16+
const styles = StyleSheet.create({
17+
container: {
18+
flex: 1,
19+
backgroundColor: '#fff',
20+
alignItems: 'center',
21+
justifyContent: 'center',
22+
},
23+
});

App.test.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import React from 'react';
2+
import App from './App';
3+
4+
import renderer from 'react-test-renderer';
5+
6+
it('renders without crashing', () => {
7+
const rendered = renderer.create(<App />).toJSON();
8+
expect(rendered).toBeTruthy();
9+
});

app.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"expo": {
3+
"sdkVersion": "27.0.0"
4+
}
5+
}

0 commit comments

Comments
 (0)