Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.0.12 and 0.0.13 don't work in react native #16

Closed
joeferraro opened this issue Nov 19, 2016 · 1 comment
Closed

0.0.12 and 0.0.13 don't work in react native #16

joeferraro opened this issue Nov 19, 2016 · 1 comment

Comments

@joeferraro
Copy link
Collaborator

in the simulator: self is not defined

in xcode:

2016-11-19 15:04:09.598 [warn][tid:NSOperationQueue 0x618000224800 :: NSOperation 0x61000004ad40 (QOS: DEFAULT)][RCTModuleData.mm:220] RCTBridge required dispatch_sync to load RCTDevLoadingView. This may lead to deadlocks
2016-11-19 15:04:11.239 [warn][tid:main][RCTEventEmitter.m:54] Sending `websocketFailed` with no listeners registered.
2016-11-19 15:04:11.341 [error][tid:com.facebook.react.JavaScript] Can't find variable: self
2016-11-19 15:04:11.342 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: Can't find variable: self
2016-11-19 15:04:11.347 [warn][tid:com.facebook.react.JavaScript] Unable to symbolicate stack trace: fetch is not a function. (In 'fetch(devServer.url+'symbolicate',{
method:'POST',
body:JSON.stringify({stack:stack})})', 'fetch' is undefined)
2016-11-19 15:04:11.387 [info][tid:main][RCTRootView.m:239] Running application PatientSupportMobileAccelerator ({
    initialProps =     {
    };
    rootTag = 1;
})
2016-11-19 15:04:11.388 [error][tid:com.facebook.react.JavaScript] Module AppRegistry is not a registered callable module (calling runApplication)
2016-11-19 15:04:11.389 [warn][tid:com.facebook.react.JavaScript] Unable to symbolicate stack trace: fetch is not a function. (In 'fetch(devServer.url+'symbolicate',{
method:'POST',
body:JSON.stringify({stack:stack})})', 'fetch' is undefined)
2016-11-19 15:04:11.389 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: Module AppRegistry is not a registered callable module (calling runApplication)
@kidtsunami
Copy link
Owner

Ugh, why is this not working?

if (navigator !== undefined && navigator.product !== 'ReactNative') {
    ^
ReferenceError: navigator is not defined

amazingwebdev added a commit to amazingwebdev/react-native-fetch-salesforce that referenced this issue Mar 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants