GoEvaCom / eosjs-react-native

This is a simple react-native project in which the steps to configure eosjs on react-native are shown.
http://eva.coop/
MIT License
33 stars 7 forks source link

EOSJS - ReactNative -- undefined is not an object (evaluating 'self.fetch') #11

Open amolmaid opened 6 years ago

amolmaid commented 6 years ago

Hi, I have been following instructions from link https://github.com/EvaCoop/eosjs-react-native , to setup eosjs on already-build react-native app. I have installed related dependencies as well like react-native-browser-polyfill and react-native-hockeyapp

My build completes successfully and runs fine But I am facing following error when I open my app in mobile. undefined is not an object (evaluating 'self.fetch')

image

Kindly guide for the same.

raphaelgodro commented 6 years ago

Create a variable var self = this; before the declaration.