2016-04-05 17 views
1

私は
"コンポーネントクラスを期待して、ボタンを持っています。次のコードを実行すると、各コンポーネント名は大文字"
で始まる必要があります。このコードに間違っているものは、教えてください。 enter image description hereReact 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); 

感謝。

+0

Viewクラスのコードを教えてください。 – Nicole

+1

React Bootstrapコンポーネントは反応しません - ネイティブ reactネイティブコンポーネント https://github.com/oblador/react-native-vector-iconsおよびhttps://github.com/jondot/awesome-react-native – kyunghwanjung

答えて

0

React BootstrapはReact Nativeと互換性がありません。

関連する問題