Guest User

Untitled

a guest
Dec 15th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. import React, {Component} from 'react';
  2. import { NativeModules, StyleSheet, Text, View} from 'react-native';
  3.  
  4. export default class App extends Component {
  5. state = {
  6. lowMemory: true,
  7. }
  8.  
  9. render() {
  10. return (
  11. <View style={styles.container}>
  12. {
  13. this.state.lowMemory
  14. ? <Text style={styles.text}>MEMORY INTENSIVE NOT ALLOWED</Text>
  15. : <Text style={styles.text}>YOU CAN DO ANYTHING!</Text>
  16. }
  17. </View>
  18. );
  19. }
  20. }
  21.  
  22. const styles = StyleSheet.create({
  23. container: {
  24. flex: 1,
  25. justifyContent: 'center',
  26. alignItems: 'center',
  27. backgroundColor: '#F5FCFF',
  28. },
  29. text: {
  30. fontSize: 30,
  31. fontWeight: 'bold',
  32. textAlign: 'center',
  33. },
  34. });
Add Comment
Please, Sign In to add comment