Have a question around this project? authorize up for a totally free rwandachamber.org account to open an issue and also contact that maintainers and also the community.

choose a username Email deal with Password authorize up for rwandachamber.org

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

peterrz commented Sep 26, 2020


Passing 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. Thanks

React indigenous version:

System:OS: Linux 4.15 Ubuntu 18.04.4 LTS (Bionic Beaver)CPU: (4) x64 Intel(R) Core(TM) i5-3570 CPU
3.40GHzMemory: 165.87 MB / 7.67 GBShell: 4.4.20 - /bin/bashBinaries:Node: 12.18.3 - ~/.nvm/versions/node/v12.18.3/bin/nodeYarn: not Foundnpm: 6.14.8 - ~/react/SEC/node_modules/.bin/npmWatchman: no FoundSDKs:Android SDK:API Levels: 23, 28, 29Build Tools: 23.0.1, 28.0.3, 29.0.2, 29.0.3System Images: android-28 | Intel x86 Atom_64, android-28 | Google beat Intel x86 AtomAndroid NDK: not FoundIDEs:Android Studio: no FoundLanguages:Java: 1.8.0_252 - /usr/bin/javacPython: 2.7.17 - /usr/bin/pythonnpmPackages:
react-native-community/cli: no Foundreact: 16.13.1 => 16.13.1react-native: 0.63.2 => 0.63.2npmGlobalPackages:react-native: no Found

Steps to Reproduce

1.render() console.log(this.state.dataset.Image<0>.Src) ...

Expected Results

accessing to data

Extra information

export 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) . .
<br> <img class=Nes Multi Cartridge ' Super Games 150 In 1 50 In 1' (Region