reactNative第一个class组件 import React, { Component } from 'react'; import { Text } from 'react-native'; class Cat extends Component { render() { return ( <Text>Hello, I am your cat!</Text> ); } } export default Cat;