babel-plugin-react-native-direct-imports 0.0.0-stage → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +101 -2
- package/index.js +134 -0
- package/maps/0.70.0.json +330 -0
- package/maps/0.70.1.json +330 -0
- package/maps/0.70.10.json +330 -0
- package/maps/0.70.11.json +330 -0
- package/maps/0.70.12.json +330 -0
- package/maps/0.70.13.json +330 -0
- package/maps/0.70.14.json +330 -0
- package/maps/0.70.15.json +330 -0
- package/maps/0.70.2.json +330 -0
- package/maps/0.70.3.json +330 -0
- package/maps/0.70.4.json +330 -0
- package/maps/0.70.5.json +330 -0
- package/maps/0.70.6.json +330 -0
- package/maps/0.70.7.json +330 -0
- package/maps/0.70.8.json +330 -0
- package/maps/0.70.9.json +330 -0
- package/maps/0.71.0.json +338 -0
- package/maps/0.71.1.json +338 -0
- package/maps/0.71.10.json +338 -0
- package/maps/0.71.11.json +338 -0
- package/maps/0.71.12.json +338 -0
- package/maps/0.71.13.json +338 -0
- package/maps/0.71.14.json +338 -0
- package/maps/0.71.15.json +338 -0
- package/maps/0.71.16.json +338 -0
- package/maps/0.71.17.json +338 -0
- package/maps/0.71.18.json +338 -0
- package/maps/0.71.19.json +338 -0
- package/maps/0.71.2.json +338 -0
- package/maps/0.71.3.json +338 -0
- package/maps/0.71.4.json +338 -0
- package/maps/0.71.5.json +338 -0
- package/maps/0.71.6.json +338 -0
- package/maps/0.71.7.json +338 -0
- package/maps/0.71.8.json +338 -0
- package/maps/0.71.9.json +338 -0
- package/maps/0.72.0.json +326 -0
- package/maps/0.72.1.json +326 -0
- package/maps/0.72.10.json +326 -0
- package/maps/0.72.11.json +326 -0
- package/maps/0.72.12.json +326 -0
- package/maps/0.72.13.json +326 -0
- package/maps/0.72.14.json +326 -0
- package/maps/0.72.15.json +326 -0
- package/maps/0.72.17.json +326 -0
- package/maps/0.72.2.json +326 -0
- package/maps/0.72.3.json +326 -0
- package/maps/0.72.4.json +326 -0
- package/maps/0.72.5.json +326 -0
- package/maps/0.72.6.json +326 -0
- package/maps/0.72.7.json +326 -0
- package/maps/0.72.8.json +326 -0
- package/maps/0.72.9.json +326 -0
- package/maps/0.73.0.json +326 -0
- package/maps/0.73.1.json +326 -0
- package/maps/0.73.10.json +326 -0
- package/maps/0.73.11.json +326 -0
- package/maps/0.73.2.json +326 -0
- package/maps/0.73.3.json +326 -0
- package/maps/0.73.4.json +326 -0
- package/maps/0.73.5.json +326 -0
- package/maps/0.73.6.json +326 -0
- package/maps/0.73.7.json +326 -0
- package/maps/0.73.8.json +326 -0
- package/maps/0.73.9.json +326 -0
- package/maps/0.74.0.json +314 -0
- package/maps/0.74.1.json +314 -0
- package/maps/0.74.2.json +314 -0
- package/maps/0.74.3.json +314 -0
- package/maps/0.74.4.json +314 -0
- package/maps/0.74.5.json +314 -0
- package/maps/0.74.6.json +314 -0
- package/maps/0.74.7.json +314 -0
- package/maps/0.75.0.json +314 -0
- package/maps/0.75.1.json +314 -0
- package/maps/0.75.2.json +314 -0
- package/maps/0.75.3.json +314 -0
- package/maps/0.75.4.json +314 -0
- package/maps/0.75.5.json +314 -0
- package/maps/0.76.0.json +314 -0
- package/maps/0.76.1.json +314 -0
- package/maps/0.76.2.json +314 -0
- package/maps/0.76.3.json +314 -0
- package/maps/0.76.4.json +314 -0
- package/maps/0.76.5.json +314 -0
- package/maps/0.76.6.json +314 -0
- package/maps/0.76.7.json +314 -0
- package/maps/0.76.8.json +314 -0
- package/maps/0.76.9.json +314 -0
- package/maps/0.77.0.json +318 -0
- package/maps/0.77.1.json +318 -0
- package/maps/0.77.2.json +318 -0
- package/maps/0.77.3.json +318 -0
- package/maps/0.78.0.json +322 -0
- package/maps/0.78.1.json +322 -0
- package/maps/0.78.2.json +322 -0
- package/maps/0.78.3.json +322 -0
- package/maps/0.79.0.json +318 -0
- package/maps/0.79.1.json +318 -0
- package/maps/0.79.2.json +318 -0
- package/maps/0.79.3.json +318 -0
- package/maps/0.79.4.json +318 -0
- package/maps/0.79.5.json +318 -0
- package/maps/0.79.6.json +318 -0
- package/maps/0.79.7.json +318 -0
- package/maps/0.80.0.json +326 -0
- package/maps/0.80.1.json +326 -0
- package/maps/0.80.2.json +326 -0
- package/maps/0.80.3.json +326 -0
- package/maps/0.81.0.json +338 -0
- package/maps/0.81.1.json +338 -0
- package/maps/0.81.2.json +338 -0
- package/maps/0.81.3.json +338 -0
- package/maps/0.81.4.json +338 -0
- package/maps/0.81.5.json +338 -0
- package/maps/0.81.6.json +338 -0
- package/maps/0.82.0.json +346 -0
- package/maps/0.82.1.json +346 -0
- package/maps/0.83.0.json +354 -0
- package/maps/0.83.1.json +354 -0
- package/maps/0.83.10.json +354 -0
- package/maps/0.83.2.json +354 -0
- package/maps/0.83.3.json +354 -0
- package/maps/0.83.4.json +354 -0
- package/maps/0.83.5.json +354 -0
- package/maps/0.83.6.json +354 -0
- package/maps/0.83.7.json +354 -0
- package/maps/0.83.8.json +354 -0
- package/maps/0.83.9.json +354 -0
- package/maps/0.84.0.json +358 -0
- package/maps/0.84.1.json +358 -0
- package/maps/0.85.0.json +370 -0
- package/maps/0.85.1.json +370 -0
- package/maps/0.85.2.json +370 -0
- package/maps/0.85.3.json +370 -0
- package/maps/0.86.0.json +394 -0
- package/maps/0.86.2.json +394 -0
- package/maps/0.86.3.json +394 -0
- package/maps/0.87.0.json +390 -0
- package/maps/0.87.1.json +390 -0
- package/package.json +38 -4
package/README.md
CHANGED
|
@@ -1,3 +1,102 @@
|
|
|
1
|
-
#
|
|
1
|
+
# babel-plugin-react-native-direct-imports
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/babel-plugin-react-native-direct-imports)
|
|
4
|
+
[](https://www.npmtrends.com/babel-plugin-react-native-direct-imports)
|
|
5
|
+
[](https://www.npmjs.com/package/babel-plugin-react-native-direct-imports)
|
|
6
|
+
|
|
7
|
+
Babel plugin that rewrites named imports from `react-native` into direct imports of the underlying modules, so Metro doesn't have to load the whole `react-native` barrel file.
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
import { View, AppRegistry, Systrace } from 'react-native';
|
|
11
|
+
|
|
12
|
+
// ↓ becomes
|
|
13
|
+
|
|
14
|
+
import View from 'react-native/Libraries/Components/View/View';
|
|
15
|
+
import { AppRegistry } from 'react-native/Libraries/ReactNative/AppRegistry';
|
|
16
|
+
import * as Systrace from 'react-native/Libraries/Performance/Systrace';
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Why
|
|
20
|
+
|
|
21
|
+
React Native's entry file (`react-native/index.js`) is a CommonJS barrel: one `module.exports` object with a lazy `require()` getter for every public API. The getters only delay running a module. Every module they reference still ends up in your bundle.
|
|
22
|
+
|
|
23
|
+
Bundlers can't tree-shake CommonJS getters. Metro doesn't tree-shake at all, and even [Re.Pack](https://re-pack.dev) with tree-shaking enabled can't remove them. So a single `import { View } from 'react-native'` pulls in all of React Native's public API, including modules your app probably never uses, like `VirtualView`, `UTFSequence` or `PushNotificationIOS`.
|
|
24
|
+
|
|
25
|
+
This plugin skips the barrel and imports each module directly, so only the modules you actually import end up in the bundle.
|
|
26
|
+
|
|
27
|
+
For example, here is a bundle that only does `import { ReactNativeVersion } from 'react-native'`, before and after:
|
|
28
|
+
|
|
29
|
+

|
|
30
|
+
|
|
31
|
+
## Install
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
npm install --save-dev babel-plugin-react-native-direct-imports
|
|
35
|
+
# or
|
|
36
|
+
yarn add -D babel-plugin-react-native-direct-imports
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Usage
|
|
40
|
+
|
|
41
|
+
Add the plugin to your `babel.config.js`:
|
|
42
|
+
|
|
43
|
+
```js
|
|
44
|
+
const isTest = process.env.NODE_ENV === 'test';
|
|
45
|
+
|
|
46
|
+
module.exports = {
|
|
47
|
+
presets: [
|
|
48
|
+
[
|
|
49
|
+
'module:@react-native/babel-preset',
|
|
50
|
+
{
|
|
51
|
+
disableDeepImportWarnings: true, // <-- add this, the plugin generates deep imports on purpose
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
],
|
|
55
|
+
plugins: [
|
|
56
|
+
// Skip the plugin in test environments
|
|
57
|
+
!isTest && [
|
|
58
|
+
'react-native-direct-imports',
|
|
59
|
+
{ reactNativeVersion: require('react-native/package.json').version },
|
|
60
|
+
],
|
|
61
|
+
].filter(Boolean),
|
|
62
|
+
};
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Then clear the Metro cache once:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
npx react-native start --reset-cache
|
|
69
|
+
# or, with Expo
|
|
70
|
+
npx expo start --clear
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Options
|
|
74
|
+
|
|
75
|
+
| Option | Type | Default | Description |
|
|
76
|
+
| -------------------- | -------- | ----------------------------- | -------------------------------------------------------------------- |
|
|
77
|
+
| `reactNativeVersion` | `string` | latest map in [`maps/`](maps) | React Native version to use. Loads `maps/<reactNativeVersion>.json`. |
|
|
78
|
+
|
|
79
|
+
Maps are available for every stable React Native release from `0.70.0` on. The version must match a map exactly. If it doesn't, the build fails with an error listing the available versions. After upgrading React Native to a release that has no map yet, update this plugin as well.
|
|
80
|
+
|
|
81
|
+
## Notes
|
|
82
|
+
|
|
83
|
+
- Only names listed in the map are rewritten. Unknown names stay on the original `react-native` import.
|
|
84
|
+
- Type-only imports (`import type { ... }`, `import { type ... }`) are left untouched.
|
|
85
|
+
- `Platform` always stays on the `react-native` import. Metro's `Platform.OS` / `Platform.select` dead-code elimination (`inlinePlatform`) only recognizes `Platform` imported from `'react-native'`.
|
|
86
|
+
- Aliases are preserved: `import { Text as RNText }` → `import RNText from 'react-native/Libraries/Text/Text'`.
|
|
87
|
+
- `import * as RN from 'react-native'` throws a build error. Use named imports instead.
|
|
88
|
+
- The generated paths point to React Native internals (`Libraries/...`, `src/private/...`). They are not public API, which is why every React Native version has its own map.
|
|
89
|
+
|
|
90
|
+
## Generating maps (development)
|
|
91
|
+
|
|
92
|
+
Maps are generated from each version's `react-native/index.js`:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
yarn generate-maps
|
|
96
|
+
# or for specific versions:
|
|
97
|
+
yarn generate-maps 0.87.1 0.86.3
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## License
|
|
101
|
+
|
|
102
|
+
MIT
|
package/index.js
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rewrites named imports from `react-native` to direct imports of the
|
|
3
|
+
* underlying modules, so Metro doesn't need to go through the barrel file.
|
|
4
|
+
*
|
|
5
|
+
* import { View, AppRegistry, Systrace } from 'react-native';
|
|
6
|
+
* // ->
|
|
7
|
+
* import View from 'react-native/Libraries/Components/View/View';
|
|
8
|
+
* import { AppRegistry } from 'react-native/Libraries/ReactNative/AppRegistry';
|
|
9
|
+
* import * as Systrace from 'react-native/Libraries/Performance/Systrace';
|
|
10
|
+
*
|
|
11
|
+
* Map value format: [path, exportName]
|
|
12
|
+
* 'default' -> default import
|
|
13
|
+
* '*' -> namespace import (module is used as a whole, no `.default`)
|
|
14
|
+
* other -> named import
|
|
15
|
+
*
|
|
16
|
+
* Unknown names, type-only imports and `Platform` are left untouched.
|
|
17
|
+
* `Platform` stays on `react-native` because Metro's inline-platform
|
|
18
|
+
* optimization (Platform.OS / Platform.select dead-code elimination) only
|
|
19
|
+
* recognizes it when imported from 'react-native' directly.
|
|
20
|
+
*
|
|
21
|
+
* Options:
|
|
22
|
+
* reactNativeVersion - picks `maps/<version>.json` (defaults to the latest map)
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
const fs = require('fs');
|
|
26
|
+
const nodePath = require('path');
|
|
27
|
+
|
|
28
|
+
const RN = 'react-native';
|
|
29
|
+
|
|
30
|
+
// Kept on the `react-native` import so Metro can still inline them.
|
|
31
|
+
const KEEP = new Set(['Platform']);
|
|
32
|
+
|
|
33
|
+
const MAPS_DIR = nodePath.join(__dirname, 'maps');
|
|
34
|
+
|
|
35
|
+
const compareVersions = (a, b) => {
|
|
36
|
+
const pa = a.split('.').map(Number);
|
|
37
|
+
const pb = b.split('.').map(Number);
|
|
38
|
+
for (let i = 0; i < Math.max(pa.length, pb.length); i++) {
|
|
39
|
+
const diff = (pa[i] || 0) - (pb[i] || 0);
|
|
40
|
+
if (diff !== 0) return diff;
|
|
41
|
+
}
|
|
42
|
+
return 0;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
const availableVersions = () =>
|
|
46
|
+
fs
|
|
47
|
+
.readdirSync(MAPS_DIR)
|
|
48
|
+
.filter((file) => file.endsWith('.json'))
|
|
49
|
+
.map((file) => file.slice(0, -'.json'.length))
|
|
50
|
+
.sort(compareVersions);
|
|
51
|
+
|
|
52
|
+
const loadMap = (version) => {
|
|
53
|
+
const versions = availableVersions();
|
|
54
|
+
const selected = version ?? versions[versions.length - 1];
|
|
55
|
+
|
|
56
|
+
if (!versions.includes(selected)) {
|
|
57
|
+
throw new Error(
|
|
58
|
+
`[react-native-direct-imports] No map for react-native ${selected}. Available versions: ${versions.join(', ')}`,
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return require(nodePath.join(MAPS_DIR, `${selected}.json`));
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
module.exports = function reactNativeDirectImports(
|
|
66
|
+
{ types: t },
|
|
67
|
+
{ reactNativeVersion } = {},
|
|
68
|
+
) {
|
|
69
|
+
const MAP = loadMap(reactNativeVersion);
|
|
70
|
+
|
|
71
|
+
const buildSpecifier = (exportName, local) => {
|
|
72
|
+
if (exportName === 'default') return t.importDefaultSpecifier(local);
|
|
73
|
+
if (exportName === '*') return t.importNamespaceSpecifier(local);
|
|
74
|
+
return t.importSpecifier(local, t.identifier(exportName));
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
name: 'react-native-direct-imports',
|
|
79
|
+
visitor: {
|
|
80
|
+
ImportDeclaration(path) {
|
|
81
|
+
const { node } = path;
|
|
82
|
+
if (node.source.value !== RN || node.importKind === 'type') return;
|
|
83
|
+
|
|
84
|
+
if (
|
|
85
|
+
node.specifiers.some((spec) => t.isImportNamespaceSpecifier(spec))
|
|
86
|
+
) {
|
|
87
|
+
throw path.buildCodeFrameError(
|
|
88
|
+
"`import * as ... from 'react-native'` is not allowed, use named imports instead: `import { View } from 'react-native'`",
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const kept = [];
|
|
93
|
+
const direct = [];
|
|
94
|
+
|
|
95
|
+
for (const spec of node.specifiers) {
|
|
96
|
+
const importedName =
|
|
97
|
+
t.isImportSpecifier(spec) &&
|
|
98
|
+
(t.isIdentifier(spec.imported)
|
|
99
|
+
? spec.imported.name
|
|
100
|
+
: spec.imported.value);
|
|
101
|
+
const entry =
|
|
102
|
+
importedName &&
|
|
103
|
+
spec.importKind !== 'type' &&
|
|
104
|
+
!KEEP.has(importedName) &&
|
|
105
|
+
MAP[importedName];
|
|
106
|
+
|
|
107
|
+
if (!entry) {
|
|
108
|
+
kept.push(spec);
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
const [modulePath, exportName] = entry;
|
|
113
|
+
direct.push(
|
|
114
|
+
t.importDeclaration(
|
|
115
|
+
[buildSpecifier(exportName, t.identifier(spec.local.name))],
|
|
116
|
+
t.stringLiteral(`${RN}/${modulePath}`),
|
|
117
|
+
),
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (direct.length === 0) return;
|
|
122
|
+
|
|
123
|
+
if (kept.length > 0) {
|
|
124
|
+
node.specifiers = kept;
|
|
125
|
+
path.insertAfter(direct);
|
|
126
|
+
} else {
|
|
127
|
+
path.replaceWithMultiple(direct);
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
module.exports.loadMap = loadMap;
|
package/maps/0.70.0.json
ADDED
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AccessibilityInfo": [
|
|
3
|
+
"Libraries/Components/AccessibilityInfo/AccessibilityInfo",
|
|
4
|
+
"default"
|
|
5
|
+
],
|
|
6
|
+
"ActivityIndicator": [
|
|
7
|
+
"Libraries/Components/ActivityIndicator/ActivityIndicator",
|
|
8
|
+
"default"
|
|
9
|
+
],
|
|
10
|
+
"Button": [
|
|
11
|
+
"Libraries/Components/Button",
|
|
12
|
+
"default"
|
|
13
|
+
],
|
|
14
|
+
"DatePickerIOS": [
|
|
15
|
+
"Libraries/Components/DatePicker/DatePickerIOS",
|
|
16
|
+
"default"
|
|
17
|
+
],
|
|
18
|
+
"DrawerLayoutAndroid": [
|
|
19
|
+
"Libraries/Components/DrawerAndroid/DrawerLayoutAndroid",
|
|
20
|
+
"default"
|
|
21
|
+
],
|
|
22
|
+
"FlatList": [
|
|
23
|
+
"Libraries/Lists/FlatList",
|
|
24
|
+
"default"
|
|
25
|
+
],
|
|
26
|
+
"Image": [
|
|
27
|
+
"Libraries/Image/Image",
|
|
28
|
+
"default"
|
|
29
|
+
],
|
|
30
|
+
"ImageBackground": [
|
|
31
|
+
"Libraries/Image/ImageBackground",
|
|
32
|
+
"default"
|
|
33
|
+
],
|
|
34
|
+
"InputAccessoryView": [
|
|
35
|
+
"Libraries/Components/TextInput/InputAccessoryView",
|
|
36
|
+
"default"
|
|
37
|
+
],
|
|
38
|
+
"KeyboardAvoidingView": [
|
|
39
|
+
"Libraries/Components/Keyboard/KeyboardAvoidingView",
|
|
40
|
+
"default"
|
|
41
|
+
],
|
|
42
|
+
"MaskedViewIOS": [
|
|
43
|
+
"Libraries/Components/MaskedView/MaskedViewIOS",
|
|
44
|
+
"default"
|
|
45
|
+
],
|
|
46
|
+
"Modal": [
|
|
47
|
+
"Libraries/Modal/Modal",
|
|
48
|
+
"default"
|
|
49
|
+
],
|
|
50
|
+
"Pressable": [
|
|
51
|
+
"Libraries/Components/Pressable/Pressable",
|
|
52
|
+
"default"
|
|
53
|
+
],
|
|
54
|
+
"ProgressBarAndroid": [
|
|
55
|
+
"Libraries/Components/ProgressBarAndroid/ProgressBarAndroid",
|
|
56
|
+
"default"
|
|
57
|
+
],
|
|
58
|
+
"ProgressViewIOS": [
|
|
59
|
+
"Libraries/Components/ProgressViewIOS/ProgressViewIOS",
|
|
60
|
+
"default"
|
|
61
|
+
],
|
|
62
|
+
"RefreshControl": [
|
|
63
|
+
"Libraries/Components/RefreshControl/RefreshControl",
|
|
64
|
+
"default"
|
|
65
|
+
],
|
|
66
|
+
"SafeAreaView": [
|
|
67
|
+
"Libraries/Components/SafeAreaView/SafeAreaView",
|
|
68
|
+
"default"
|
|
69
|
+
],
|
|
70
|
+
"ScrollView": [
|
|
71
|
+
"Libraries/Components/ScrollView/ScrollView",
|
|
72
|
+
"default"
|
|
73
|
+
],
|
|
74
|
+
"SectionList": [
|
|
75
|
+
"Libraries/Lists/SectionList",
|
|
76
|
+
"default"
|
|
77
|
+
],
|
|
78
|
+
"Slider": [
|
|
79
|
+
"Libraries/Components/Slider/Slider",
|
|
80
|
+
"default"
|
|
81
|
+
],
|
|
82
|
+
"StatusBar": [
|
|
83
|
+
"Libraries/Components/StatusBar/StatusBar",
|
|
84
|
+
"default"
|
|
85
|
+
],
|
|
86
|
+
"Switch": [
|
|
87
|
+
"Libraries/Components/Switch/Switch",
|
|
88
|
+
"default"
|
|
89
|
+
],
|
|
90
|
+
"Text": [
|
|
91
|
+
"Libraries/Text/Text",
|
|
92
|
+
"default"
|
|
93
|
+
],
|
|
94
|
+
"TextInput": [
|
|
95
|
+
"Libraries/Components/TextInput/TextInput",
|
|
96
|
+
"default"
|
|
97
|
+
],
|
|
98
|
+
"Touchable": [
|
|
99
|
+
"Libraries/Components/Touchable/Touchable",
|
|
100
|
+
"default"
|
|
101
|
+
],
|
|
102
|
+
"TouchableHighlight": [
|
|
103
|
+
"Libraries/Components/Touchable/TouchableHighlight",
|
|
104
|
+
"default"
|
|
105
|
+
],
|
|
106
|
+
"TouchableNativeFeedback": [
|
|
107
|
+
"Libraries/Components/Touchable/TouchableNativeFeedback",
|
|
108
|
+
"default"
|
|
109
|
+
],
|
|
110
|
+
"TouchableOpacity": [
|
|
111
|
+
"Libraries/Components/Touchable/TouchableOpacity",
|
|
112
|
+
"default"
|
|
113
|
+
],
|
|
114
|
+
"TouchableWithoutFeedback": [
|
|
115
|
+
"Libraries/Components/Touchable/TouchableWithoutFeedback",
|
|
116
|
+
"default"
|
|
117
|
+
],
|
|
118
|
+
"View": [
|
|
119
|
+
"Libraries/Components/View/View",
|
|
120
|
+
"default"
|
|
121
|
+
],
|
|
122
|
+
"VirtualizedList": [
|
|
123
|
+
"Libraries/Lists/VirtualizedList",
|
|
124
|
+
"default"
|
|
125
|
+
],
|
|
126
|
+
"VirtualizedSectionList": [
|
|
127
|
+
"Libraries/Lists/VirtualizedSectionList",
|
|
128
|
+
"default"
|
|
129
|
+
],
|
|
130
|
+
"ActionSheetIOS": [
|
|
131
|
+
"Libraries/ActionSheetIOS/ActionSheetIOS",
|
|
132
|
+
"default"
|
|
133
|
+
],
|
|
134
|
+
"Alert": [
|
|
135
|
+
"Libraries/Alert/Alert",
|
|
136
|
+
"default"
|
|
137
|
+
],
|
|
138
|
+
"Animated": [
|
|
139
|
+
"Libraries/Animated/Animated",
|
|
140
|
+
"default"
|
|
141
|
+
],
|
|
142
|
+
"Appearance": [
|
|
143
|
+
"Libraries/Utilities/Appearance",
|
|
144
|
+
"default"
|
|
145
|
+
],
|
|
146
|
+
"AppRegistry": [
|
|
147
|
+
"Libraries/ReactNative/AppRegistry",
|
|
148
|
+
"default"
|
|
149
|
+
],
|
|
150
|
+
"AppState": [
|
|
151
|
+
"Libraries/AppState/AppState",
|
|
152
|
+
"default"
|
|
153
|
+
],
|
|
154
|
+
"AsyncStorage": [
|
|
155
|
+
"Libraries/Storage/AsyncStorage",
|
|
156
|
+
"default"
|
|
157
|
+
],
|
|
158
|
+
"BackHandler": [
|
|
159
|
+
"Libraries/Utilities/BackHandler",
|
|
160
|
+
"default"
|
|
161
|
+
],
|
|
162
|
+
"Clipboard": [
|
|
163
|
+
"Libraries/Components/Clipboard/Clipboard",
|
|
164
|
+
"default"
|
|
165
|
+
],
|
|
166
|
+
"DeviceInfo": [
|
|
167
|
+
"Libraries/Utilities/DeviceInfo",
|
|
168
|
+
"default"
|
|
169
|
+
],
|
|
170
|
+
"DevSettings": [
|
|
171
|
+
"Libraries/Utilities/DevSettings",
|
|
172
|
+
"default"
|
|
173
|
+
],
|
|
174
|
+
"Dimensions": [
|
|
175
|
+
"Libraries/Utilities/Dimensions",
|
|
176
|
+
"default"
|
|
177
|
+
],
|
|
178
|
+
"Easing": [
|
|
179
|
+
"Libraries/Animated/Easing",
|
|
180
|
+
"default"
|
|
181
|
+
],
|
|
182
|
+
"findNodeHandle": [
|
|
183
|
+
"Libraries/Renderer/shims/ReactNative",
|
|
184
|
+
"findNodeHandle"
|
|
185
|
+
],
|
|
186
|
+
"I18nManager": [
|
|
187
|
+
"Libraries/ReactNative/I18nManager",
|
|
188
|
+
"default"
|
|
189
|
+
],
|
|
190
|
+
"ImagePickerIOS": [
|
|
191
|
+
"Libraries/Image/ImagePickerIOS",
|
|
192
|
+
"default"
|
|
193
|
+
],
|
|
194
|
+
"InteractionManager": [
|
|
195
|
+
"Libraries/Interaction/InteractionManager",
|
|
196
|
+
"default"
|
|
197
|
+
],
|
|
198
|
+
"Keyboard": [
|
|
199
|
+
"Libraries/Components/Keyboard/Keyboard",
|
|
200
|
+
"default"
|
|
201
|
+
],
|
|
202
|
+
"LayoutAnimation": [
|
|
203
|
+
"Libraries/LayoutAnimation/LayoutAnimation",
|
|
204
|
+
"default"
|
|
205
|
+
],
|
|
206
|
+
"Linking": [
|
|
207
|
+
"Libraries/Linking/Linking",
|
|
208
|
+
"default"
|
|
209
|
+
],
|
|
210
|
+
"LogBox": [
|
|
211
|
+
"Libraries/LogBox/LogBox",
|
|
212
|
+
"default"
|
|
213
|
+
],
|
|
214
|
+
"NativeDialogManagerAndroid": [
|
|
215
|
+
"Libraries/NativeModules/specs/NativeDialogManagerAndroid",
|
|
216
|
+
"default"
|
|
217
|
+
],
|
|
218
|
+
"NativeEventEmitter": [
|
|
219
|
+
"Libraries/EventEmitter/NativeEventEmitter",
|
|
220
|
+
"default"
|
|
221
|
+
],
|
|
222
|
+
"Networking": [
|
|
223
|
+
"Libraries/Network/RCTNetworking",
|
|
224
|
+
"default"
|
|
225
|
+
],
|
|
226
|
+
"PanResponder": [
|
|
227
|
+
"Libraries/Interaction/PanResponder",
|
|
228
|
+
"default"
|
|
229
|
+
],
|
|
230
|
+
"PermissionsAndroid": [
|
|
231
|
+
"Libraries/PermissionsAndroid/PermissionsAndroid",
|
|
232
|
+
"default"
|
|
233
|
+
],
|
|
234
|
+
"PixelRatio": [
|
|
235
|
+
"Libraries/Utilities/PixelRatio",
|
|
236
|
+
"default"
|
|
237
|
+
],
|
|
238
|
+
"PushNotificationIOS": [
|
|
239
|
+
"Libraries/PushNotificationIOS/PushNotificationIOS",
|
|
240
|
+
"default"
|
|
241
|
+
],
|
|
242
|
+
"Settings": [
|
|
243
|
+
"Libraries/Settings/Settings",
|
|
244
|
+
"default"
|
|
245
|
+
],
|
|
246
|
+
"Share": [
|
|
247
|
+
"Libraries/Share/Share",
|
|
248
|
+
"default"
|
|
249
|
+
],
|
|
250
|
+
"StyleSheet": [
|
|
251
|
+
"Libraries/StyleSheet/StyleSheet",
|
|
252
|
+
"default"
|
|
253
|
+
],
|
|
254
|
+
"Systrace": [
|
|
255
|
+
"Libraries/Performance/Systrace",
|
|
256
|
+
"default"
|
|
257
|
+
],
|
|
258
|
+
"ToastAndroid": [
|
|
259
|
+
"Libraries/Components/ToastAndroid/ToastAndroid",
|
|
260
|
+
"default"
|
|
261
|
+
],
|
|
262
|
+
"TurboModuleRegistry": [
|
|
263
|
+
"Libraries/TurboModule/TurboModuleRegistry",
|
|
264
|
+
"*"
|
|
265
|
+
],
|
|
266
|
+
"UIManager": [
|
|
267
|
+
"Libraries/ReactNative/UIManager",
|
|
268
|
+
"default"
|
|
269
|
+
],
|
|
270
|
+
"unstable_batchedUpdates": [
|
|
271
|
+
"Libraries/Renderer/shims/ReactNative",
|
|
272
|
+
"unstable_batchedUpdates"
|
|
273
|
+
],
|
|
274
|
+
"useColorScheme": [
|
|
275
|
+
"Libraries/Utilities/useColorScheme",
|
|
276
|
+
"default"
|
|
277
|
+
],
|
|
278
|
+
"useWindowDimensions": [
|
|
279
|
+
"Libraries/Utilities/useWindowDimensions",
|
|
280
|
+
"default"
|
|
281
|
+
],
|
|
282
|
+
"UTFSequence": [
|
|
283
|
+
"Libraries/UTFSequence",
|
|
284
|
+
"default"
|
|
285
|
+
],
|
|
286
|
+
"Vibration": [
|
|
287
|
+
"Libraries/Vibration/Vibration",
|
|
288
|
+
"default"
|
|
289
|
+
],
|
|
290
|
+
"YellowBox": [
|
|
291
|
+
"Libraries/YellowBox/YellowBoxDeprecated",
|
|
292
|
+
"default"
|
|
293
|
+
],
|
|
294
|
+
"DeviceEventEmitter": [
|
|
295
|
+
"Libraries/EventEmitter/RCTDeviceEventEmitter",
|
|
296
|
+
"default"
|
|
297
|
+
],
|
|
298
|
+
"DynamicColorIOS": [
|
|
299
|
+
"Libraries/StyleSheet/PlatformColorValueTypesIOS",
|
|
300
|
+
"DynamicColorIOS"
|
|
301
|
+
],
|
|
302
|
+
"NativeAppEventEmitter": [
|
|
303
|
+
"Libraries/EventEmitter/RCTNativeAppEventEmitter",
|
|
304
|
+
"default"
|
|
305
|
+
],
|
|
306
|
+
"NativeModules": [
|
|
307
|
+
"Libraries/BatchedBridge/NativeModules",
|
|
308
|
+
"default"
|
|
309
|
+
],
|
|
310
|
+
"Platform": [
|
|
311
|
+
"Libraries/Utilities/Platform",
|
|
312
|
+
"default"
|
|
313
|
+
],
|
|
314
|
+
"PlatformColor": [
|
|
315
|
+
"Libraries/StyleSheet/PlatformColorValueTypes",
|
|
316
|
+
"PlatformColor"
|
|
317
|
+
],
|
|
318
|
+
"processColor": [
|
|
319
|
+
"Libraries/StyleSheet/processColor",
|
|
320
|
+
"default"
|
|
321
|
+
],
|
|
322
|
+
"requireNativeComponent": [
|
|
323
|
+
"Libraries/ReactNative/requireNativeComponent",
|
|
324
|
+
"default"
|
|
325
|
+
],
|
|
326
|
+
"RootTagContext": [
|
|
327
|
+
"Libraries/ReactNative/RootTag",
|
|
328
|
+
"RootTagContext"
|
|
329
|
+
]
|
|
330
|
+
}
|