2016-04-05 17 views
1

bir büyük harfle başlamalıdır
alıyorum "Bir bileşen sınıfı bekleniyor, düğme var. Aşağıdaki kodu çalıştırdığımda her bileşen adı bir büyük harf"
ile başlamalıdır. Bu kodda yanlış olan herhangi bir şey varsa, lütfen bana bildirin. enter image description hereReact Bootstrap: Bir bileşen sınıfı bekleniyor, düğme var. Her bileşen adı,

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); 

teşekkürler.

+0

Bize View sınıfının kodunu gösterebilir misiniz? – Nicole

+1

React Bootstrap bileşeni sadece tepki vermiyor - Yerel önerme Yerel bileşen https://github.com/oblador/react-native-vector-icons ve https://github.com/jondot/awesome-react-native – kyunghwanjung

cevap

0

React Bootstrap, React Native ile uyumlu değil.

İlgili konular