STYLING REACT NATIVE
import React from 'react';
import { AppRegistry, StyleSheet, View, Text } from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
hello: {
fontSize: 20,
textAlign: 'center',
margin: 10,
color: 'red',
},
});
class MyComponent extends React.Component {
render() {
return (
Hello world!
);
}
}
AppRegistry.registerComponent('MyComponent', () => MyComponent);