-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathAutolinkingCompat.h
More file actions
34 lines (20 loc) · 1.01 KB
/
AutolinkingCompat.h
File metadata and controls
34 lines (20 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef REACTAPP_JNI_AUTOLINKINGCOMPAT_H_
#define REACTAPP_JNI_AUTOLINKINGCOMPAT_H_
#if __has_include(<FBReactNativeSpec.h>) // >= 0.81
#include <FBReactNativeSpec.h>
#define rncore_ModuleProvider facebook::react::FBReactNativeSpec_ModuleProvider
#else // < 0.81
#include <rncore.h>
#endif // __has_include(<FBReactNativeSpec.h>) // >= 0.81
#if __has_include(<autolinking.h>) // >= 0.75
#include <autolinking.h>
#define autolinking_ModuleProvider facebook::react::autolinking_ModuleProvider
#define autolinking_cxxModuleProvider facebook::react::autolinking_cxxModuleProvider
#define autolinking_registerProviders facebook::react::autolinking_registerProviders
#else // < 0.75
#include <rncli.h>
#define autolinking_ModuleProvider facebook::react::rncli_ModuleProvider
#define autolinking_cxxModuleProvider facebook::react::rncli_cxxModuleProvider
#define autolinking_registerProviders facebook::react::rncli_registerProviders
#endif // __has_include(<autolinking.h>)
#endif // REACTAPP_JNI_AUTOLINKINGCOMPAT_H_