Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 499 Bytes

25_view,_text,_image,_etc.md

File metadata and controls

30 lines (26 loc) · 499 Bytes

2.2 View, Text, Image, etc

  1. Core Components
..
...
import {
  StyleSheet,
  Text,
  View,
  Image
} from 'react-native';

class Main extends Component {
  render() {
    return (
      <View>
        <Image source={require('./img/bg.png')}>
          <Image source={require('./img/icon.png')}/>
          <Text>
            some text!
          </Text>
        </Image>
      </View>
    );
  }
}