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:
Родитель
d8f1161c8a
Коммит
e85cd6cd02
|
@ -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'));
|
||||
|
|
Загрузка…
Ссылка в новой задаче