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:
Adam Miskiewicz 2016-02-02 09:24:30 -08:00 committed by facebook-github-bot-8
parent 804b23811b
commit fb29a95e01
1 changed files with 1 additions and 1 deletions

View File

@ -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.