mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 03:26:07 +00:00
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 RCTLinkingManager = require('NativeModules').LinkingManager;
|
||||||
var invariant = require('invariant');
|
var invariant = require('invariant');
|
||||||
|
|
||||||
var _initialURL = RCTLinkingManager.initialURL;
|
var _initialURL = RCTLinkingManager && RCTLinkingManager.initialURL;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NOTE: `LinkingIOS` is being deprecated. Use `Linking` instead.
|
* NOTE: `LinkingIOS` is being deprecated. Use `Linking` instead.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user