Hai,could you please help me in react native android simulator issue is:
undefined is not an object (evaluating ‘_react 3.default.proptypes.shape’)
how to solve this problem in react native,please help me…
Could you post the code you’re trying to get working?
App.js
import React, { Component } from 'react';
import { AppRegistry, Text, View} from 'react-native';
import {Navigator} from 'react-native-deprecated-custom-components';
import Component5 from './app/components/Component5/Component5';
import Component6 from './app/components/Component6/Component6';
export default class myappl extends Component{
renderScene(route, navigator){
switch(route.id){
case 'component5':
return (<Component5 navigator={navigator} title="component5" />)
case 'component6':
return (<Component6 navigator={navigator} title="component6" />)
}
}
render(){
return(
<Navigator
initialRoute={{id: 'component5'}}
renderScene={this.renderScene}
configureScreen={(route, routeStack) => Navigator.SceneConfigs.FloatFromBottom}
/>
);
}
}
AppRegistry.registerComponent('myappl',()=>myappl);
component6.js
import React, { Component} from 'react';
import { AppRegistry, Text, View } from 'react-native';
export default class Component6 extends Component{
constructor(props){
super(props);
this.state={
name:this.props.user.name,
email:this.props.user.email
}
}
render(){
return(
<View>
<Text>{this.state.name}}</Text>
<Text>{this.state.email}</Text>
</View>
);
}
}
AppRegistry.registerComponent('Component6', () => Component6);