Skip to content

Commit

Permalink
Hello World
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewGable committed Aug 6, 2020
1 parent 8061126 commit 945aa8b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 116 deletions.
114 changes: 0 additions & 114 deletions App.js

This file was deleted.

2 changes: 1 addition & 1 deletion __tests__/App-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import 'react-native';
import React from 'react';
import App from '../App';
import App from '../js/App';

// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

import {AppRegistry} from 'react-native';
import App from './App';
import App from './js/App';
import {name as appName} from './app.json';

AppRegistry.registerComponent(appName, () => App);
20 changes: 20 additions & 0 deletions js/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* @format
* @flow strict-local
*/

import React from 'react';
import {SafeAreaView, Text, StatusBar} from 'react-native';

const App: () => React$Node = () => {
return (
<>
<StatusBar barStyle="dark-content" />
<SafeAreaView>
<Text style={{textAlign: 'center', fontSize: 36}}>Hello World!</Text>
</SafeAreaView>
</>
);
};

export default App;

0 comments on commit 945aa8b

Please sign in to comment.