Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Import the React library and it's 'Component'
- import React, { Component } from 'react';
- // Import the required components from the React Native library
- import { View, Text } from 'react-native';
- // Create class
- class MyAwesomeClass extends Component {
- render() {
- return (
- <View>
- <Text>Something</Text>
- </View>
- );
- }
- }
- // Export class so it's accessible to other files in the project
- export default MyAwesomeClass;
Add Comment
Please, Sign In to add comment