Fix import of LinkingIOS on Android
Summary: We need to check the existence of RCTLinkingManager (which doesn't exist on Android) because this code is called on require. Closes https://github.com/facebook/react-native/pull/5680 Reviewed By: svcscm Differential Revision: D2887260 Pulled By: androidtrunkagent fb-gh-sync-id: 4a5843ea6a5898d0f2810ad9ddb5b2078054e9f1
This commit is contained in:
parent
804b23811b
commit
fb29a95e01
|
@ -15,7 +15,7 @@ var Linking = require('Linking');
|
|||
var RCTLinkingManager = require('NativeModules').LinkingManager;
|
||||
var invariant = require('invariant');
|
||||
|
||||
var _initialURL = RCTLinkingManager.initialURL;
|
||||
var _initialURL = RCTLinkingManager && RCTLinkingManager.initialURL;
|
||||
|
||||
/**
|
||||
* NOTE: `LinkingIOS` is being deprecated. Use `Linking` instead.
|
||||
|
|
Loading…
Reference in New Issue