之后还会加上默认值和判断非空等逻辑。 import React, { Component } from 'react';import { StyleSheet, View, TextInput, Text, Image,} from 'react-native';const styles = StyleSheet.create({ container: { flexDirection: 'row', al
import React, { Component } from 'react';
import {
StyleSheet,
View,
TextInput,
Text,
Image,
} from 'react-native';
const styles = StyleSheet.create({
container: {
flexDirection: 'row',
alignItems: 'center',
},
icon: {
width: 30,
height: 30,
},
input: {
backgroundColor: 'grey',
flex: 1,
},
});
export default class ImageTextInput extends Component {
render() {
return (
{this.props.title}
);
}
}
