By click “Sign up for rwandachamber.org”, friend agree come our terms of service and privacy statement. We’ll periodically send friend account related emails.
currently on rwandachamber.org? authorize in to her account
You are watching: React native undefined is not an object

DescriptionPassing data params to another components and also unfortunately i challenge this error TypeError: undefined is not things (evaluating "this.state.dataset.Image<0>"), if i operation console.log(this.state.dataset); the data is there yet i can"t with them.I collection a problem in render and also it makes me access the data if (this.state.dataset && this.state.dataset),would you please give me more info around this error. ThanksReact indigenous version:System:OS: Linux 4.15 Ubuntu 18.04.4 LTS (Bionic Beaver)CPU: (4) x64 Intel(R) Core(TM) i5-3570 CPU Steps to Reproduce1.render() console.log(this.state.dataset.Image<0>.Src) ... Expected Resultsaccessing to data Extra informationexport default class Detail extends ingredient { constructor(props) super(props); this.state = dataset:"", async componentDidMount() this.setState( dataset: this.props.router.params.data, ); render() console.log(this.state.dataset.Image<0>.Src) . . |