Advertisement
zidniryi

flex.js

Jan 29th, 2020
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import * as React from 'react';
  2. import { Text, View, StyleSheet } from 'react-native';
  3.  
  4. export default class App extends React.Component {
  5.   render() {
  6.     return (
  7.       <View style={styles.flex}>
  8.         <Text style={styles.textSize}>
  9.          Size :
  10.         </Text>
  11.          <Text style={styles.textSizeValue}>
  12.          12
  13.         </Text>
  14.       </View>
  15.     );
  16.   }
  17. }
  18.  
  19. const styles = StyleSheet.create({
  20.   flex: {
  21.     flexDirection:'row',
  22.   },
  23.   textSize: {
  24.     fontSize: 10,
  25.     fontWeight: '600',
  26.     textAlign: 'center',
  27.   },
  28.     textSizeValue: {
  29.     fontSize: 10,
  30.     fontWeight: 'bold',
  31.     textAlign: 'center',
  32.     color:'#EE532F',
  33.     marginLeft:5,
  34.   },
  35. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement