1
私は
"コンポーネントクラスを期待して、ボタンを持っています。次のコードを実行すると、各コンポーネント名は大文字"
で始まる必要があります。このコードに間違っているものは、教えてください。 React Bootstrap:コンポーネントクラスのgotボタン。各コンポーネントの名前は大文字で始まる必要があります
import { Button } from 'react-bootstrap';
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View,
} from 'react-native';
class LayoutApp extends Component {
render() {
return (
<View style={styles.container}>
<Button >Close</Button>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
});
AppRegistry.registerComponent('LayoutApp',() => LayoutApp);
感謝。
Viewクラスのコードを教えてください。 – Nicole
React Bootstrapコンポーネントは反応しません - ネイティブ reactネイティブコンポーネント https://github.com/oblador/react-native-vector-iconsおよびhttps://github.com/jondot/awesome-react-native – kyunghwanjung