Skip to content

Commit

Permalink
Update main app screens
Browse files Browse the repository at this point in the history
  • Loading branch information
shaneosullivan committed Sep 7, 2017
1 parent a34731b commit c30b53a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 23 deletions.
10 changes: 4 additions & 6 deletions index.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,13 @@ export default class ReactNativeExampleBrowserExtension extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</Text>
Text style={styles.welcome}>Welcome to ReactNativeExampleBrowserExtension!</Text>
<Text style={styles.instructions}>
To get started, edit index.android.js
This app shows how to create a browser extension using React Native
</Text>
<Text style={styles.instructions}>
Double tap R on your keyboard to reload,{'\n'}
Shake or press menu button for dev menu
Ignore Android for now, all initial work is on iOS. We'll get to
Android when iOS works.
</Text>
</View>
);
Expand Down
30 changes: 13 additions & 17 deletions index.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,19 @@
*/

import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import { AppRegistry, StyleSheet, Text, View } from 'react-native';

export default class ReactNativeExampleBrowserExtension extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</Text>
<Text style={styles.welcome}>Welcome to ReactNativeExampleBrowserExtension!</Text>
<Text style={styles.instructions}>
To get started, edit index.ios.js
This app shows how to create a browser extension using React Native
</Text>
<Text style={styles.instructions}>
Press Cmd+R to reload,{'\n'}
Cmd+D or shake for dev menu
You can mostly ignore this main app code, all the fun is in the extension and the README,
which contains the instructions you should follow
</Text>
</View>
);
Expand All @@ -36,18 +29,21 @@ const styles = StyleSheet.create({
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
backgroundColor: '#F5FCFF'
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
margin: 10
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
marginBottom: 5
}
});

AppRegistry.registerComponent('ReactNativeExampleBrowserExtension', () => ReactNativeExampleBrowserExtension);
AppRegistry.registerComponent(
'ReactNativeExampleBrowserExtension',
() => ReactNativeExampleBrowserExtension
);

0 comments on commit c30b53a

Please sign in to comment.