2017-04-25 6 views
7

मैं प्रतिक्रिया-मूल में ऐप बनाने के लिए मूल आधार का उपयोग कर रहा हूं। मैं दोनों चीजों के लिए नया हूँ।मॉड्यूल ऐप रजिस्ट्री पंजीकृत कॉल करने योग्य मॉड्यूल (कॉलिंग रन एप्लिकेशन)

enter image description here

यहाँ मेरी कोड है:: जब मैं अनुप्रयोग चलाने यह मुझे इस त्रुटि देता है

export default class Point extends Component { 

    render() { 
     return (
      <Container> 
       <Header> 
        <Left> 
         <Button transparent> 
          <Icon name='menu' /> 
         </Button> 
        </Left> 
        <Body> 
         <Title>Header</Title> 
        </Body> 
        <Right /> 
       </Header> 
      </Container> 
     ); 
    } 
} 

यहाँ मेरी संस्करणों का स्क्रीनशॉट है

enter image description here

और nativebase संस्करण "native-base": "^2.1.2"

+1

शेयर कोड को चलाने के लिए यह करने के लिए किया है। यह भी जांचें कि क्या कोई अन्य पैकेजर –

उत्तर

1

आयात AppRegistry मैं अपने ऐप के लिए देशी आधार उपयोग कर रहा था यहाँ लिंक native base

है और आप देख सकते हैं कि वहाँ कोई एप्लिकेशन रजिस्ट्री है इस

AppRegistry.registerComponent('Point',() => Point) 

की तरह है लेकिन मैं अपने एप्लिकेशन `index.ios.js` की

5
है

आप index.ios.js फ़ाइल के तल पर यह करना चाहिए था AppRegistry.registerComponent('Point',() => Point); और यह भी से react-native

+0

चला रहा है Im देशीबेस link का उपयोग कर यहां जाएं – Asad

संबंधित मुद्दे