Only use IntentAndroid on android

Summary:
For other platforms such as React VR it doesn't make sense to use `IntentAndroid` native module and it should use `LinkingManager` instead.

The code used to be:

```
const LinkingManager =
  Platform.OS === 'android'
    ? NativeModules.IntentAndroid
    : NativeModules.LinkingManager;
```

This diff changes the behaviour back to what it used to be.

Reviewed By: cpojer

Differential Revision: D16561073

fbshipit-source-id: 544551f8ff1affca5a71835133e8a9e7abc75e1a
This commit is contained in:
Martin Sherburn 2019-07-31 05:36:08 -07:00 коммит произвёл Facebook Github Bot
Родитель d8f1161c8a
Коммит e85cd6cd02
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -32,6 +32,6 @@ export interface Spec extends TurboModule {
+removeListeners: (count: number) => void;
}
export default (Platform.OS === 'ios'
? TurboModuleRegistry.getEnforcing<Spec>('LinkingManager')
: TurboModuleRegistry.getEnforcing<Spec>('IntentAndroid'));
export default (Platform.OS === 'android'
? TurboModuleRegistry.getEnforcing<Spec>('IntentAndroid')
: TurboModuleRegistry.getEnforcing<Spec>('LinkingManager'));