Skip to content

Commit

Permalink
fixed android issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dabit3 committed May 5, 2017
1 parent 880dd96 commit f61b9db
Showing 1 changed file with 1 addition and 53 deletions.
54 changes: 1 addition & 53 deletions index.android.js
Original file line number Diff line number Diff line change
@@ -1,53 +1 @@
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/

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

export default class reactXPTest extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</Text>
<Text style={styles.instructions}>
To get started, edit index.android.js
</Text>
<Text style={styles.instructions}>
Double tap R on your keyboard to reload,{'\n'}
Shake or press menu button for dev menu
</Text>
</View>
);
}
}

const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
});

AppRegistry.registerComponent('reactXPTest', () => reactXPTest);
require('./dist/index');

0 comments on commit f61b9db

Please sign in to comment.