react-native-css 3.0.0-preview.3 → 3.0.0-preview.4
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/dist/commonjs/compiler/atRules.js +30 -16
- package/dist/commonjs/compiler/atRules.js.map +1 -1
- package/dist/commonjs/compiler/compiler.js +29 -19
- package/dist/commonjs/compiler/compiler.js.map +1 -1
- package/dist/commonjs/compiler/declarations.js +10 -10
- package/dist/commonjs/compiler/declarations.js.map +1 -1
- package/dist/commonjs/compiler/keyframes.js +1 -1
- package/dist/commonjs/compiler/keyframes.js.map +1 -1
- package/dist/commonjs/compiler/lightningcss-loader.js +40 -0
- package/dist/commonjs/compiler/lightningcss-loader.js.map +1 -0
- package/dist/commonjs/compiler/selector-builder.js +3 -2
- package/dist/commonjs/compiler/selector-builder.js.map +1 -1
- package/dist/commonjs/compiler/stylesheet.js +5 -7
- package/dist/commonjs/compiler/stylesheet.js.map +1 -1
- package/dist/commonjs/components/ActivityIndicator.js.map +1 -1
- package/dist/commonjs/components/Button.js.map +1 -1
- package/dist/commonjs/components/FlatList.js +4 -3
- package/dist/commonjs/components/FlatList.js.map +1 -1
- package/dist/commonjs/components/Image.js.map +1 -1
- package/dist/commonjs/components/ImageBackground.js +22 -0
- package/dist/commonjs/components/ImageBackground.js.map +1 -0
- package/dist/commonjs/components/KeyboardAvoidingView.js +19 -0
- package/dist/commonjs/components/KeyboardAvoidingView.js.map +1 -0
- package/dist/commonjs/components/Pressable.js +17 -0
- package/dist/commonjs/components/Pressable.js.map +1 -0
- package/dist/commonjs/components/ScrollView.js +18 -0
- package/dist/commonjs/components/ScrollView.js.map +1 -0
- package/dist/commonjs/components/TextInput.js +6 -1
- package/dist/commonjs/components/TextInput.js.map +1 -1
- package/dist/commonjs/components/TouchableHighlight.js +17 -0
- package/dist/commonjs/components/TouchableHighlight.js.map +1 -0
- package/dist/commonjs/components/TouchableOpacity.js +17 -0
- package/dist/commonjs/components/TouchableOpacity.js.map +1 -0
- package/dist/commonjs/components/TouchableWithoutFeedback.js +17 -0
- package/dist/commonjs/components/TouchableWithoutFeedback.js.map +1 -0
- package/dist/commonjs/components/VirtualizedList.js +20 -0
- package/dist/commonjs/components/VirtualizedList.js.map +1 -0
- package/dist/commonjs/components/index.cjs +265 -0
- package/dist/commonjs/components/index.cjs.map +1 -0
- package/dist/commonjs/components/index.js +65 -1
- package/dist/commonjs/components/index.js.map +1 -1
- package/dist/commonjs/index.js +0 -11
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/jest/index.js +1 -1
- package/dist/commonjs/jest/index.js.map +1 -1
- package/dist/commonjs/metro/index.js +7 -117
- package/dist/commonjs/metro/index.js.map +1 -1
- package/dist/commonjs/metro/metro-transformer.js +8 -1
- package/dist/commonjs/metro/metro-transformer.js.map +1 -1
- package/dist/commonjs/{native/metro.js → metro/override.js} +1 -1
- package/dist/commonjs/{native/metro.js.map → metro/override.js.map} +1 -1
- package/dist/commonjs/metro/resolver.js +11 -20
- package/dist/commonjs/metro/resolver.js.map +1 -1
- package/dist/commonjs/native/index.js +8 -8
- package/dist/commonjs/native/index.js.map +1 -1
- package/dist/commonjs/{poison.pill.js → native/react-native-css-metro-override.js} +1 -1
- package/dist/commonjs/native/react-native-css-metro-override.js.map +1 -0
- package/dist/commonjs/native/styles/calculate-props.js +1 -1
- package/dist/commonjs/native/styles/resolve.js +0 -1
- package/dist/commonjs/native/styles/resolve.js.map +1 -1
- package/dist/commonjs/native/styles/shorthands/animation.js +6 -2
- package/dist/commonjs/native/styles/shorthands/animation.js.map +1 -1
- package/dist/module/compiler/atRules.js +30 -16
- package/dist/module/compiler/atRules.js.map +1 -1
- package/dist/module/compiler/compiler.js +25 -15
- package/dist/module/compiler/compiler.js.map +1 -1
- package/dist/module/compiler/declarations.js +10 -10
- package/dist/module/compiler/declarations.js.map +1 -1
- package/dist/module/compiler/keyframes.js +1 -1
- package/dist/module/compiler/keyframes.js.map +1 -1
- package/dist/module/compiler/lightningcss-loader.js +36 -0
- package/dist/module/compiler/lightningcss-loader.js.map +1 -0
- package/dist/module/compiler/selector-builder.js +3 -2
- package/dist/module/compiler/selector-builder.js.map +1 -1
- package/dist/module/compiler/stylesheet.js +5 -7
- package/dist/module/compiler/stylesheet.js.map +1 -1
- package/dist/module/components/ActivityIndicator.js.map +1 -1
- package/dist/module/components/Button.js.map +1 -1
- package/dist/module/components/FlatList.js +4 -3
- package/dist/module/components/FlatList.js.map +1 -1
- package/dist/module/components/Image.js.map +1 -1
- package/dist/module/components/ImageBackground.js +17 -0
- package/dist/module/components/ImageBackground.js.map +1 -0
- package/dist/module/components/KeyboardAvoidingView.js +14 -0
- package/dist/module/components/KeyboardAvoidingView.js.map +1 -0
- package/dist/module/components/Pressable.js +12 -0
- package/dist/module/components/Pressable.js.map +1 -0
- package/dist/module/components/ScrollView.js +13 -0
- package/dist/module/components/ScrollView.js.map +1 -0
- package/dist/module/components/TextInput.js +6 -1
- package/dist/module/components/TextInput.js.map +1 -1
- package/dist/module/components/TouchableHighlight.js +12 -0
- package/dist/module/components/TouchableHighlight.js.map +1 -0
- package/dist/module/components/TouchableOpacity.js +12 -0
- package/dist/module/components/TouchableOpacity.js.map +1 -0
- package/dist/module/components/TouchableWithoutFeedback.js +12 -0
- package/dist/module/components/TouchableWithoutFeedback.js.map +1 -0
- package/dist/module/components/VirtualizedList.js +15 -0
- package/dist/module/components/VirtualizedList.js.map +1 -0
- package/dist/module/components/index.cjs +265 -0
- package/dist/module/components/index.cjs.map +1 -0
- package/dist/module/components/index.js +8 -0
- package/dist/module/components/index.js.map +1 -1
- package/dist/module/index.js +0 -1
- package/dist/module/index.js.map +1 -1
- package/dist/module/jest/index.js +1 -1
- package/dist/module/jest/index.js.map +1 -1
- package/dist/module/metro/index.js +7 -116
- package/dist/module/metro/index.js.map +1 -1
- package/dist/module/metro/metro-transformer.js +8 -1
- package/dist/module/metro/metro-transformer.js.map +1 -1
- package/dist/module/metro/override.js +4 -0
- package/dist/module/{native/metro.js.map → metro/override.js.map} +1 -1
- package/dist/module/metro/resolver.js +11 -20
- package/dist/module/metro/resolver.js.map +1 -1
- package/dist/module/native/index.js +1 -1
- package/dist/module/native/index.js.map +1 -1
- package/dist/module/{poison.pill.js → native/react-native-css-metro-override.js} +1 -1
- package/dist/module/native/react-native-css-metro-override.js.map +1 -0
- package/dist/module/native/styles/calculate-props.js +1 -1
- package/dist/module/native/styles/resolve.js +0 -1
- package/dist/module/native/styles/resolve.js.map +1 -1
- package/dist/module/native/styles/shorthands/animation.js +4 -1
- package/dist/module/native/styles/shorthands/animation.js.map +1 -1
- package/dist/typescript/commonjs/.config/eslint.config.d.mts +3 -0
- package/dist/typescript/commonjs/.config/eslint.config.d.mts.map +1 -0
- package/dist/typescript/commonjs/eslint.config.d.mts +2 -0
- package/dist/typescript/commonjs/eslint.config.d.mts.map +1 -0
- package/dist/typescript/commonjs/example/app.config.d.ts.map +1 -1
- package/dist/typescript/commonjs/example/index.d.ts +2 -0
- package/dist/typescript/commonjs/example/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/example/metro.config.d.ts +3 -0
- package/dist/typescript/commonjs/example/metro.config.d.ts.map +1 -0
- package/dist/typescript/commonjs/example/postcss.config.d.mts +7 -0
- package/dist/typescript/commonjs/example/postcss.config.d.mts.map +1 -0
- package/dist/typescript/commonjs/example/src/App.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/compiler.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/declarations.d.ts +1 -1
- package/dist/typescript/commonjs/src/compiler/keyframes.d.ts +1 -1
- package/dist/typescript/commonjs/src/compiler/keyframes.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts +30 -0
- package/dist/typescript/commonjs/src/compiler/lightningcss-loader.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/compiler/selector-builder.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts +2 -1
- package/dist/typescript/commonjs/src/compiler/stylesheet.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts +3 -10
- package/dist/typescript/commonjs/src/components/ActivityIndicator.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Button.d.ts +3 -10
- package/dist/typescript/commonjs/src/components/Button.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/FlatList.d.ts +3 -7
- package/dist/typescript/commonjs/src/components/FlatList.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/Image.d.ts +3 -5
- package/dist/typescript/commonjs/src/components/Image.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/ImageBackground.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/ImageBackground.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/KeyboardAvoidingView.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/Pressable.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/Pressable.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/ScrollView.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/ScrollView.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/TextInput.d.ts +3 -5
- package/dist/typescript/commonjs/src/components/TextInput.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/TouchableHighlight.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/TouchableOpacity.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts +6 -0
- package/dist/typescript/commonjs/src/components/VirtualizedList.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/components/index.d.cts +2 -0
- package/dist/typescript/commonjs/src/components/index.d.cts.map +1 -0
- package/dist/typescript/commonjs/src/components/index.d.ts +8 -0
- package/dist/typescript/commonjs/src/components/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/index.d.ts +0 -1
- package/dist/typescript/commonjs/src/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/metro-transformer.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/metro/override.d.ts +2 -0
- package/dist/typescript/commonjs/src/metro/override.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/metro/resolver.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/index.d.ts +1 -1
- package/dist/typescript/commonjs/src/native/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts +2 -0
- package/dist/typescript/commonjs/src/native/react-native-css-metro-override.d.ts.map +1 -0
- package/dist/typescript/commonjs/src/native/styles/resolve.d.ts.map +1 -1
- package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts +1 -0
- package/dist/typescript/commonjs/src/native/styles/shorthands/animation.d.ts.map +1 -1
- package/dist/typescript/module/.config/eslint.config.d.mts +3 -0
- package/dist/typescript/module/.config/eslint.config.d.mts.map +1 -0
- package/dist/typescript/module/eslint.config.d.mts +2 -0
- package/dist/typescript/module/eslint.config.d.mts.map +1 -0
- package/dist/typescript/module/example/app.config.d.ts.map +1 -1
- package/dist/typescript/module/example/index.d.ts +2 -0
- package/dist/typescript/module/example/index.d.ts.map +1 -0
- package/dist/typescript/module/example/metro.config.d.ts +3 -0
- package/dist/typescript/module/example/metro.config.d.ts.map +1 -0
- package/dist/typescript/module/example/postcss.config.d.mts +7 -0
- package/dist/typescript/module/example/postcss.config.d.mts.map +1 -0
- package/dist/typescript/module/example/src/App.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/compiler.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/declarations.d.ts +1 -1
- package/dist/typescript/module/src/compiler/keyframes.d.ts +1 -1
- package/dist/typescript/module/src/compiler/keyframes.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts +30 -0
- package/dist/typescript/module/src/compiler/lightningcss-loader.d.ts.map +1 -0
- package/dist/typescript/module/src/compiler/selector-builder.d.ts.map +1 -1
- package/dist/typescript/module/src/compiler/stylesheet.d.ts +2 -1
- package/dist/typescript/module/src/compiler/stylesheet.d.ts.map +1 -1
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts +3 -10
- package/dist/typescript/module/src/components/ActivityIndicator.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Button.d.ts +3 -10
- package/dist/typescript/module/src/components/Button.d.ts.map +1 -1
- package/dist/typescript/module/src/components/FlatList.d.ts +3 -7
- package/dist/typescript/module/src/components/FlatList.d.ts.map +1 -1
- package/dist/typescript/module/src/components/Image.d.ts +3 -5
- package/dist/typescript/module/src/components/Image.d.ts.map +1 -1
- package/dist/typescript/module/src/components/ImageBackground.d.ts +6 -0
- package/dist/typescript/module/src/components/ImageBackground.d.ts.map +1 -0
- package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts +6 -0
- package/dist/typescript/module/src/components/KeyboardAvoidingView.d.ts.map +1 -0
- package/dist/typescript/module/src/components/Pressable.d.ts +6 -0
- package/dist/typescript/module/src/components/Pressable.d.ts.map +1 -0
- package/dist/typescript/module/src/components/ScrollView.d.ts +6 -0
- package/dist/typescript/module/src/components/ScrollView.d.ts.map +1 -0
- package/dist/typescript/module/src/components/TextInput.d.ts +3 -5
- package/dist/typescript/module/src/components/TextInput.d.ts.map +1 -1
- package/dist/typescript/module/src/components/TouchableHighlight.d.ts +6 -0
- package/dist/typescript/module/src/components/TouchableHighlight.d.ts.map +1 -0
- package/dist/typescript/module/src/components/TouchableOpacity.d.ts +6 -0
- package/dist/typescript/module/src/components/TouchableOpacity.d.ts.map +1 -0
- package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts +6 -0
- package/dist/typescript/module/src/components/TouchableWithoutFeedback.d.ts.map +1 -0
- package/dist/typescript/module/src/components/VirtualizedList.d.ts +6 -0
- package/dist/typescript/module/src/components/VirtualizedList.d.ts.map +1 -0
- package/dist/typescript/module/src/components/index.d.cts +2 -0
- package/dist/typescript/module/src/components/index.d.cts.map +1 -0
- package/dist/typescript/module/src/components/index.d.ts +8 -0
- package/dist/typescript/module/src/components/index.d.ts.map +1 -1
- package/dist/typescript/module/src/index.d.ts +0 -1
- package/dist/typescript/module/src/index.d.ts.map +1 -1
- package/dist/typescript/module/src/jest/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/index.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/metro-transformer.d.ts.map +1 -1
- package/dist/typescript/module/src/metro/override.d.ts +2 -0
- package/dist/typescript/module/src/metro/override.d.ts.map +1 -0
- package/dist/typescript/module/src/metro/resolver.d.ts.map +1 -1
- package/dist/typescript/module/src/native/index.d.ts +1 -1
- package/dist/typescript/module/src/native/index.d.ts.map +1 -1
- package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts +2 -0
- package/dist/typescript/module/src/native/react-native-css-metro-override.d.ts.map +1 -0
- package/dist/typescript/module/src/native/styles/resolve.d.ts.map +1 -1
- package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts +1 -0
- package/dist/typescript/module/src/native/styles/shorthands/animation.d.ts.map +1 -1
- package/package.json +13 -16
- package/src/compiler/atRules.ts +30 -17
- package/src/compiler/compiler.ts +27 -16
- package/src/compiler/declarations.ts +10 -10
- package/src/compiler/keyframes.ts +2 -2
- package/src/compiler/lightningcss-loader.ts +40 -0
- package/src/compiler/selector-builder.ts +6 -2
- package/src/compiler/stylesheet.ts +5 -7
- package/src/components/ActivityIndicator.tsx +2 -2
- package/src/components/Button.tsx +2 -2
- package/src/components/FlatList.tsx +6 -5
- package/src/components/Image.tsx +2 -2
- package/src/components/ImageBackground.tsx +27 -0
- package/src/components/KeyboardAvoidingView.tsx +24 -0
- package/src/components/Pressable.tsx +17 -0
- package/src/components/ScrollView.tsx +20 -0
- package/src/components/TextInput.tsx +8 -3
- package/src/components/TouchableHighlight.tsx +22 -0
- package/src/components/TouchableOpacity.tsx +22 -0
- package/src/components/TouchableWithoutFeedback.tsx +22 -0
- package/src/components/VirtualizedList.tsx +25 -0
- package/src/components/index.cts +263 -0
- package/src/components/index.ts +17 -0
- package/src/index.ts +0 -2
- package/src/jest/index.ts +2 -1
- package/src/metro/index.ts +7 -165
- package/src/metro/metro-transformer.ts +15 -1
- package/src/metro/override.ts +1 -0
- package/src/metro/resolver.ts +20 -26
- package/src/native/index.ts +1 -2
- package/src/native/styles/calculate-props.ts +1 -1
- package/src/native/styles/resolve.ts +0 -1
- package/src/native/styles/shorthands/animation.ts +10 -2
- package/dist/commonjs/poison.pill.js.map +0 -1
- package/dist/commonjs/runtime/native/injection.js +0 -2
- package/dist/commonjs/runtime/native/injection.js.map +0 -1
- package/dist/module/native/metro.js +0 -5
- package/dist/module/poison.pill.js.map +0 -1
- package/dist/module/runtime/native/injection.js +0 -2
- package/dist/module/runtime/native/injection.js.map +0 -1
- package/dist/typescript/commonjs/src/native/metro.d.ts +0 -2
- package/dist/typescript/commonjs/src/native/metro.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/poison.pill.d.ts +0 -2
- package/dist/typescript/commonjs/src/poison.pill.d.ts.map +0 -1
- package/dist/typescript/commonjs/src/runtime/native/injection.d.ts +0 -1
- package/dist/typescript/commonjs/src/runtime/native/injection.d.ts.map +0 -1
- package/dist/typescript/module/src/native/metro.d.ts +0 -2
- package/dist/typescript/module/src/native/metro.d.ts.map +0 -1
- package/dist/typescript/module/src/poison.pill.d.ts +0 -2
- package/dist/typescript/module/src/poison.pill.d.ts.map +0 -1
- package/dist/typescript/module/src/runtime/native/injection.d.ts +0 -1
- package/dist/typescript/module/src/runtime/native/injection.d.ts.map +0 -1
- package/src/components/index.tsx +0 -10
- package/src/native/metro.ts +0 -2
- package/src/runtime/native/injection.ts +0 -0
- /package/src/{poison.pill.ts → native/react-native-css-metro-override.ts} +0 -0
|
@@ -10,9 +10,9 @@ import type { StylesheetBuilder } from "./stylesheet";
|
|
|
10
10
|
|
|
11
11
|
export function parseIterationCount(
|
|
12
12
|
value: AnimationIterationCount[],
|
|
13
|
-
): number[] {
|
|
13
|
+
): (number | "infinite")[] {
|
|
14
14
|
return value.map((value) => {
|
|
15
|
-
return value.type === "infinite" ?
|
|
15
|
+
return value.type === "infinite" ? value.type : value.value;
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export function lightningcssLoader() {
|
|
2
|
+
let lightningcssPath: string | undefined;
|
|
3
|
+
|
|
4
|
+
// Try to resolve the path to lightningcss from the @expo/metro-config package
|
|
5
|
+
// lightningcss is a direct dependency of @expo/metro-config
|
|
6
|
+
try {
|
|
7
|
+
lightningcssPath = require.resolve("lightningcss", {
|
|
8
|
+
paths: [
|
|
9
|
+
require
|
|
10
|
+
.resolve("@expo/metro-config/package.json")
|
|
11
|
+
.replace("/package.json", ""),
|
|
12
|
+
],
|
|
13
|
+
});
|
|
14
|
+
} catch {
|
|
15
|
+
// Intentionally left empty
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// If @expo/metro-config is not being used (non-metro bundler?), try and resolve it directly
|
|
19
|
+
try {
|
|
20
|
+
lightningcssPath ??= require.resolve("lightningcss");
|
|
21
|
+
} catch {
|
|
22
|
+
// Intentionally left empty
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (!lightningcssPath) {
|
|
26
|
+
throw new Error(
|
|
27
|
+
"react-native-css was unable to determine the path to lightningcss",
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
32
|
+
const { transform: lightningcss, Features } = require(
|
|
33
|
+
lightningcssPath,
|
|
34
|
+
) as typeof import("lightningcss");
|
|
35
|
+
|
|
36
|
+
return {
|
|
37
|
+
lightningcss,
|
|
38
|
+
Features,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -557,9 +557,13 @@ function getMediaQuery(
|
|
|
557
557
|
return mediaQuery;
|
|
558
558
|
}
|
|
559
559
|
|
|
560
|
-
function isRootVariableSelector([first,
|
|
560
|
+
function isRootVariableSelector([first, ...rest]: Selector) {
|
|
561
|
+
rest = rest.filter((item) => item.type !== "nesting");
|
|
561
562
|
return (
|
|
562
|
-
first &&
|
|
563
|
+
first &&
|
|
564
|
+
rest.length === 0 &&
|
|
565
|
+
first.type === "pseudo-class" &&
|
|
566
|
+
first.kind === "root"
|
|
563
567
|
);
|
|
564
568
|
}
|
|
565
569
|
|
|
@@ -56,7 +56,7 @@ export class StylesheetBuilder {
|
|
|
56
56
|
private ruleTemplate: StyleRule = {
|
|
57
57
|
s: [],
|
|
58
58
|
},
|
|
59
|
-
// Any default mapping should be included in the @
|
|
59
|
+
// Any default mapping should be included in the @nativeMapping parsing
|
|
60
60
|
private mapping: StyleRuleMapping = {},
|
|
61
61
|
public descriptorProperty?: string,
|
|
62
62
|
private shared: {
|
|
@@ -263,8 +263,8 @@ export class StylesheetBuilder {
|
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
/** Used by nested declarations (for example @media inside a RuleSet) */
|
|
266
|
-
newNestedRule({ important = false } = {}) {
|
|
267
|
-
this.newRule(
|
|
266
|
+
newNestedRule({ important = false, mapping = this.mapping } = {}) {
|
|
267
|
+
this.newRule(mapping, { important });
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
/** Hack for light-dark, which requires adding a new rule without changing the current rule */
|
|
@@ -403,12 +403,10 @@ export class StylesheetBuilder {
|
|
|
403
403
|
} else {
|
|
404
404
|
forceTuple = true;
|
|
405
405
|
}
|
|
406
|
-
} else if (propPath) {
|
|
407
|
-
forceTuple = true;
|
|
408
|
-
} else {
|
|
409
|
-
propPath = property;
|
|
410
406
|
}
|
|
411
407
|
|
|
408
|
+
propPath ??= property;
|
|
409
|
+
|
|
412
410
|
if (forceTuple && !Array.isArray(propPath)) {
|
|
413
411
|
propPath = [propPath];
|
|
414
412
|
}
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
type StyledProps,
|
|
10
10
|
} from "../runtime";
|
|
11
11
|
|
|
12
|
-
const mapping = {
|
|
12
|
+
const mapping: StyledConfiguration<typeof RNActivityIndicator> = {
|
|
13
13
|
className: {
|
|
14
14
|
target: "style",
|
|
15
15
|
nativeStyleMapping: {
|
|
16
16
|
color: "color",
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
|
-
}
|
|
19
|
+
};
|
|
20
20
|
|
|
21
21
|
export function ActivityIndicator(
|
|
22
22
|
props: StyledProps<ActivityIndicatorProps, typeof mapping>,
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
type StyledProps,
|
|
7
7
|
} from "../runtime";
|
|
8
8
|
|
|
9
|
-
const mapping = {
|
|
9
|
+
const mapping: StyledConfiguration<typeof RNButton> = {
|
|
10
10
|
className: {
|
|
11
11
|
target: false,
|
|
12
12
|
nativeStyleMapping: {
|
|
13
13
|
color: "color",
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
|
-
}
|
|
16
|
+
};
|
|
17
17
|
|
|
18
18
|
export function Button(props: StyledProps<ButtonProps, typeof mapping>) {
|
|
19
19
|
return useCssElement(RNButton, props, mapping);
|
|
@@ -6,11 +6,12 @@ import {
|
|
|
6
6
|
type StyledProps,
|
|
7
7
|
} from "../runtime";
|
|
8
8
|
|
|
9
|
-
const mapping = {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
const mapping: StyledConfiguration<typeof RNFlatList> = {
|
|
10
|
+
ListFooterComponentClassName: "ListFooterComponentStyle",
|
|
11
|
+
ListHeaderComponentClassName: "ListHeaderComponentStyle",
|
|
12
|
+
columnWrapperClassName: "columnWrapperStyle",
|
|
13
|
+
contentContainerClassName: "contentContainerStyle",
|
|
14
|
+
};
|
|
14
15
|
|
|
15
16
|
export function FlatList<ItemT>(
|
|
16
17
|
props: StyledProps<FlatListProps<ItemT>, typeof mapping>,
|
package/src/components/Image.tsx
CHANGED
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
type StyledProps,
|
|
7
7
|
} from "../runtime";
|
|
8
8
|
|
|
9
|
-
const mapping = {
|
|
9
|
+
const mapping: StyledConfiguration<typeof RNImage> = {
|
|
10
10
|
className: "style",
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
12
|
|
|
13
13
|
export function Image(props: StyledProps<ImageProps, typeof mapping>) {
|
|
14
14
|
return useCssElement(RNImage, props, mapping);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ImageBackground as RNImageBackground,
|
|
3
|
+
type ImageBackgroundProps,
|
|
4
|
+
} from "react-native";
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
useCssElement,
|
|
8
|
+
type StyledConfiguration,
|
|
9
|
+
type StyledProps,
|
|
10
|
+
} from "../runtime";
|
|
11
|
+
|
|
12
|
+
const mapping: StyledConfiguration<typeof RNImageBackground> = {
|
|
13
|
+
className: {
|
|
14
|
+
target: "style",
|
|
15
|
+
nativeStyleMapping: {
|
|
16
|
+
backgroundColor: true,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export function ImageBackground(
|
|
22
|
+
props: StyledProps<ImageBackgroundProps, typeof mapping>,
|
|
23
|
+
) {
|
|
24
|
+
return useCssElement(RNImageBackground, props, mapping);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default ImageBackground;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
KeyboardAvoidingView as RNKeyboardAvoidingView,
|
|
3
|
+
type KeyboardAvoidingViewProps,
|
|
4
|
+
} from "react-native";
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
useCssElement,
|
|
8
|
+
type StyledConfiguration,
|
|
9
|
+
type StyledProps,
|
|
10
|
+
} from "../runtime";
|
|
11
|
+
|
|
12
|
+
const mapping: StyledConfiguration<typeof RNKeyboardAvoidingView> = {
|
|
13
|
+
className: {
|
|
14
|
+
target: "style",
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export function KeyboardAvoidingView(
|
|
19
|
+
props: StyledProps<KeyboardAvoidingViewProps, typeof mapping>,
|
|
20
|
+
) {
|
|
21
|
+
return useCssElement(RNKeyboardAvoidingView, props, mapping);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export default KeyboardAvoidingView;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Pressable as RNPressable, type PressableProps } from "react-native";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
useCssElement,
|
|
5
|
+
type StyledConfiguration,
|
|
6
|
+
type StyledProps,
|
|
7
|
+
} from "../runtime";
|
|
8
|
+
|
|
9
|
+
const mapping: StyledConfiguration<typeof RNPressable> = {
|
|
10
|
+
className: "style",
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export function Pressable(props: StyledProps<PressableProps, typeof mapping>) {
|
|
14
|
+
return useCssElement(RNPressable, props, mapping);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default Pressable;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ScrollView as RNScrollView, type ScrollViewProps } from "react-native";
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
useCssElement,
|
|
5
|
+
type StyledConfiguration,
|
|
6
|
+
type StyledProps,
|
|
7
|
+
} from "../runtime";
|
|
8
|
+
|
|
9
|
+
const mapping: StyledConfiguration<typeof RNScrollView> = {
|
|
10
|
+
className: "style",
|
|
11
|
+
contentContainerClassName: "contentContainerStyle",
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export function ScrollView(
|
|
15
|
+
props: StyledProps<ScrollViewProps, typeof mapping>,
|
|
16
|
+
) {
|
|
17
|
+
return useCssElement(RNScrollView, props, mapping);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default ScrollView;
|
|
@@ -6,9 +6,14 @@ import {
|
|
|
6
6
|
type StyledProps,
|
|
7
7
|
} from "../runtime";
|
|
8
8
|
|
|
9
|
-
const mapping = {
|
|
10
|
-
className:
|
|
11
|
-
|
|
9
|
+
const mapping: StyledConfiguration<typeof RNTextInput> = {
|
|
10
|
+
className: {
|
|
11
|
+
target: "style",
|
|
12
|
+
nativeStyleMapping: {
|
|
13
|
+
textAlign: true,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
};
|
|
12
17
|
|
|
13
18
|
export function TextInput(props: StyledProps<TextInputProps, typeof mapping>) {
|
|
14
19
|
return useCssElement(RNTextInput, props, mapping);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TouchableHighlight as RNTouchableHighlight,
|
|
3
|
+
type TouchableHighlightProps,
|
|
4
|
+
} from "react-native";
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
useCssElement,
|
|
8
|
+
type StyledConfiguration,
|
|
9
|
+
type StyledProps,
|
|
10
|
+
} from "../runtime";
|
|
11
|
+
|
|
12
|
+
const mapping: StyledConfiguration<typeof RNTouchableHighlight> = {
|
|
13
|
+
className: "style",
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export function TouchableHighlight(
|
|
17
|
+
props: StyledProps<TouchableHighlightProps, typeof mapping>,
|
|
18
|
+
) {
|
|
19
|
+
return useCssElement(RNTouchableHighlight, props, mapping);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export default TouchableHighlight;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TouchableOpacity as RNTouchableOpacity,
|
|
3
|
+
type TouchableOpacityProps,
|
|
4
|
+
} from "react-native";
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
useCssElement,
|
|
8
|
+
type StyledConfiguration,
|
|
9
|
+
type StyledProps,
|
|
10
|
+
} from "../runtime";
|
|
11
|
+
|
|
12
|
+
const mapping: StyledConfiguration<typeof RNTouchableOpacity> = {
|
|
13
|
+
className: "style",
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export function TouchableOpacity(
|
|
17
|
+
props: StyledProps<TouchableOpacityProps, typeof mapping>,
|
|
18
|
+
) {
|
|
19
|
+
return useCssElement(RNTouchableOpacity, props, mapping);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export default TouchableOpacity;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TouchableWithoutFeedback as RNTouchableWithoutFeedback,
|
|
3
|
+
type TouchableWithoutFeedbackProps,
|
|
4
|
+
} from "react-native";
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
useCssElement,
|
|
8
|
+
type StyledConfiguration,
|
|
9
|
+
type StyledProps,
|
|
10
|
+
} from "../runtime";
|
|
11
|
+
|
|
12
|
+
const mapping: StyledConfiguration<typeof RNTouchableWithoutFeedback> = {
|
|
13
|
+
className: "style",
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export function TouchableWithoutFeedback(
|
|
17
|
+
props: StyledProps<TouchableWithoutFeedbackProps, typeof mapping>,
|
|
18
|
+
) {
|
|
19
|
+
return useCssElement(RNTouchableWithoutFeedback, props, mapping);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export default TouchableWithoutFeedback;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
VirtualizedList as RNVirtualizedList,
|
|
3
|
+
type VirtualizedListProps,
|
|
4
|
+
} from "react-native";
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
useCssElement,
|
|
8
|
+
type StyledConfiguration,
|
|
9
|
+
type StyledProps,
|
|
10
|
+
} from "../runtime";
|
|
11
|
+
|
|
12
|
+
const mapping: StyledConfiguration<typeof RNVirtualizedList> = {
|
|
13
|
+
className: "style",
|
|
14
|
+
ListFooterComponentClassName: "ListFooterComponentStyle",
|
|
15
|
+
ListHeaderComponentClassName: "ListHeaderComponentStyle",
|
|
16
|
+
contentContainerClassName: "contentContainerStyle",
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export function VirtualizedList<ItemT>(
|
|
20
|
+
props: StyledProps<VirtualizedListProps<ItemT>, typeof mapping>,
|
|
21
|
+
) {
|
|
22
|
+
return useCssElement(RNVirtualizedList, props, mapping);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default VirtualizedList;
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
|
3
|
+
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
5
|
+
|
|
6
|
+
module.exports = {
|
|
7
|
+
get ActivityIndicator() {
|
|
8
|
+
return require("./ActivityIndicator").ActivityIndicator;
|
|
9
|
+
},
|
|
10
|
+
get Button() {
|
|
11
|
+
return require("./Button").Button;
|
|
12
|
+
},
|
|
13
|
+
get FlatList() {
|
|
14
|
+
return require("./FlatList").FlatList;
|
|
15
|
+
},
|
|
16
|
+
get Image() {
|
|
17
|
+
return require("./Image").Image;
|
|
18
|
+
},
|
|
19
|
+
get ImageBackground() {
|
|
20
|
+
return require("./ImageBackground").ImageBackground;
|
|
21
|
+
},
|
|
22
|
+
get KeyboardAvoidingView() {
|
|
23
|
+
return require("./KeyboardAvoidingView").KeyboardAvoidingView;
|
|
24
|
+
},
|
|
25
|
+
get Pressable() {
|
|
26
|
+
return require("./Pressable").Pressable;
|
|
27
|
+
},
|
|
28
|
+
get Switch() {
|
|
29
|
+
return require("./Switch").Switch;
|
|
30
|
+
},
|
|
31
|
+
get Text() {
|
|
32
|
+
return require("./Text").Text;
|
|
33
|
+
},
|
|
34
|
+
get TextInput() {
|
|
35
|
+
return require("./TextInput").TextInput;
|
|
36
|
+
},
|
|
37
|
+
get TouchableHighlight() {
|
|
38
|
+
return require("./TouchableHighlight").TouchableHighlight;
|
|
39
|
+
},
|
|
40
|
+
get TouchableOpacity() {
|
|
41
|
+
return require("./TouchableOpacity").TouchableOpacity;
|
|
42
|
+
},
|
|
43
|
+
get View() {
|
|
44
|
+
return require("./View").View;
|
|
45
|
+
},
|
|
46
|
+
get VirtualizedList() {
|
|
47
|
+
return require("./VirtualizedList").VirtualizedList;
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* We need to return
|
|
52
|
+
*/
|
|
53
|
+
get DrawerLayoutAndroid() {
|
|
54
|
+
return require("react-native").DrawerLayoutAndroid;
|
|
55
|
+
},
|
|
56
|
+
get InputAccessoryView() {
|
|
57
|
+
return require("react-native").InputAccessoryView;
|
|
58
|
+
},
|
|
59
|
+
get experimental_LayoutConformance() {
|
|
60
|
+
return require("react-native").experimental_LayoutConformance;
|
|
61
|
+
},
|
|
62
|
+
get Modal() {
|
|
63
|
+
return require("react-native").Modal;
|
|
64
|
+
},
|
|
65
|
+
get ProgressBarAndroid() {
|
|
66
|
+
return require("react-native").ProgressBarAndroid;
|
|
67
|
+
},
|
|
68
|
+
get RefreshControl() {
|
|
69
|
+
return require("react-native").RefreshControl;
|
|
70
|
+
},
|
|
71
|
+
get SafeAreaView() {
|
|
72
|
+
return require("react-native").SafeAreaView;
|
|
73
|
+
},
|
|
74
|
+
get ScrollView() {
|
|
75
|
+
return require("react-native").ScrollView;
|
|
76
|
+
},
|
|
77
|
+
get SectionList() {
|
|
78
|
+
return require("react-native").SectionList;
|
|
79
|
+
},
|
|
80
|
+
get StatusBar() {
|
|
81
|
+
return require("react-native").StatusBar;
|
|
82
|
+
},
|
|
83
|
+
get unstable_TextAncestorContext() {
|
|
84
|
+
return require("react-native").unstable_TextAncestorContext;
|
|
85
|
+
},
|
|
86
|
+
get Touchable() {
|
|
87
|
+
return require("react-native").Touchable;
|
|
88
|
+
},
|
|
89
|
+
get TouchableNativeFeedback() {
|
|
90
|
+
return require("react-native").TouchableNativeFeedback;
|
|
91
|
+
},
|
|
92
|
+
get TouchableWithoutFeedback() {
|
|
93
|
+
return require("react-native").TouchableWithoutFeedback;
|
|
94
|
+
},
|
|
95
|
+
get VirtualizedSectionList() {
|
|
96
|
+
return require("react-native").VirtualizedSectionList;
|
|
97
|
+
},
|
|
98
|
+
get unstable_VirtualView() {
|
|
99
|
+
return require("react-native").unstable_VirtualView;
|
|
100
|
+
},
|
|
101
|
+
get AccessibilityInfo() {
|
|
102
|
+
return require("react-native").AccessibilityInfo;
|
|
103
|
+
},
|
|
104
|
+
get ActionSheetIOS() {
|
|
105
|
+
return require("react-native").ActionSheetIOS;
|
|
106
|
+
},
|
|
107
|
+
get Alert() {
|
|
108
|
+
return require("react-native").Alert;
|
|
109
|
+
},
|
|
110
|
+
get Animated() {
|
|
111
|
+
return require("react-native").Animated;
|
|
112
|
+
},
|
|
113
|
+
get Appearance() {
|
|
114
|
+
return require("react-native").Appearance;
|
|
115
|
+
},
|
|
116
|
+
get AppRegistry() {
|
|
117
|
+
return require("react-native").AppRegistry;
|
|
118
|
+
},
|
|
119
|
+
get AppState() {
|
|
120
|
+
return require("react-native").AppState;
|
|
121
|
+
},
|
|
122
|
+
get BackHandler() {
|
|
123
|
+
return require("react-native").BackHandler;
|
|
124
|
+
},
|
|
125
|
+
get Clipboard() {
|
|
126
|
+
return require("react-native").Clipboard;
|
|
127
|
+
},
|
|
128
|
+
get codegenNativeCommands() {
|
|
129
|
+
return require("react-native").codegenNativeCommands;
|
|
130
|
+
},
|
|
131
|
+
get codegenNativeComponent() {
|
|
132
|
+
return require("react-native").codegenNativeComponent;
|
|
133
|
+
},
|
|
134
|
+
get DeviceEventEmitter() {
|
|
135
|
+
return require("react-native").DeviceEventEmitter;
|
|
136
|
+
},
|
|
137
|
+
get DeviceInfo() {
|
|
138
|
+
return require("react-native").DeviceInfo;
|
|
139
|
+
},
|
|
140
|
+
get DevMenu() {
|
|
141
|
+
return require("react-native").DevMenu;
|
|
142
|
+
},
|
|
143
|
+
get DevSettings() {
|
|
144
|
+
return require("react-native").DevSettings;
|
|
145
|
+
},
|
|
146
|
+
get Dimensions() {
|
|
147
|
+
return require("react-native").Dimensions;
|
|
148
|
+
},
|
|
149
|
+
get DynamicColorIOS() {
|
|
150
|
+
return require("react-native").DynamicColorIOS;
|
|
151
|
+
},
|
|
152
|
+
get Easing() {
|
|
153
|
+
return require("react-native").Easing;
|
|
154
|
+
},
|
|
155
|
+
get findNodeHandle() {
|
|
156
|
+
return require("react-native").findNodeHandle;
|
|
157
|
+
},
|
|
158
|
+
get I18nManager() {
|
|
159
|
+
return require("react-native").I18nManager;
|
|
160
|
+
},
|
|
161
|
+
get InteractionManager() {
|
|
162
|
+
return require("react-native").InteractionManager;
|
|
163
|
+
},
|
|
164
|
+
get Keyboard() {
|
|
165
|
+
return require("react-native").Keyboard;
|
|
166
|
+
},
|
|
167
|
+
get LayoutAnimation() {
|
|
168
|
+
return require("react-native").LayoutAnimation;
|
|
169
|
+
},
|
|
170
|
+
get Linking() {
|
|
171
|
+
return require("react-native").Linking;
|
|
172
|
+
},
|
|
173
|
+
get LogBox() {
|
|
174
|
+
return require("react-native").LogBox;
|
|
175
|
+
},
|
|
176
|
+
get NativeAppEventEmitter() {
|
|
177
|
+
return require("react-native").NativeAppEventEmitter;
|
|
178
|
+
},
|
|
179
|
+
get NativeDialogManagerAndroid() {
|
|
180
|
+
return require("react-native").NativeDialogManagerAndroid;
|
|
181
|
+
},
|
|
182
|
+
get NativeEventEmitter() {
|
|
183
|
+
return require("react-native").NativeEventEmitter;
|
|
184
|
+
},
|
|
185
|
+
get NativeModules() {
|
|
186
|
+
return require("react-native").NativeModules;
|
|
187
|
+
},
|
|
188
|
+
get Networking() {
|
|
189
|
+
return require("react-native").Networking;
|
|
190
|
+
},
|
|
191
|
+
get PanResponder() {
|
|
192
|
+
return require("react-native").PanResponder;
|
|
193
|
+
},
|
|
194
|
+
get PermissionsAndroid() {
|
|
195
|
+
return require("react-native").PermissionsAndroid;
|
|
196
|
+
},
|
|
197
|
+
get PixelRatio() {
|
|
198
|
+
return require("react-native").PixelRatio;
|
|
199
|
+
},
|
|
200
|
+
get Platform() {
|
|
201
|
+
return require("react-native").Platform;
|
|
202
|
+
},
|
|
203
|
+
get PlatformColor() {
|
|
204
|
+
return require("react-native").PlatformColor;
|
|
205
|
+
},
|
|
206
|
+
get PushNotificationIOS() {
|
|
207
|
+
return require("react-native").PushNotificationIOS;
|
|
208
|
+
},
|
|
209
|
+
get processColor() {
|
|
210
|
+
return require("react-native").processColor;
|
|
211
|
+
},
|
|
212
|
+
get registerCallableModule() {
|
|
213
|
+
return require("react-native").registerCallableModule;
|
|
214
|
+
},
|
|
215
|
+
get requireNativeComponent() {
|
|
216
|
+
return require("react-native").requireNativeComponent;
|
|
217
|
+
},
|
|
218
|
+
get RootTagContext() {
|
|
219
|
+
return require("react-native").RootTagContext;
|
|
220
|
+
},
|
|
221
|
+
get Settings() {
|
|
222
|
+
return require("react-native").Settings;
|
|
223
|
+
},
|
|
224
|
+
get Share() {
|
|
225
|
+
return require("react-native").Share;
|
|
226
|
+
},
|
|
227
|
+
get StyleSheet() {
|
|
228
|
+
return require("react-native").StyleSheet;
|
|
229
|
+
},
|
|
230
|
+
get Systrace() {
|
|
231
|
+
return require("react-native").Systrace;
|
|
232
|
+
},
|
|
233
|
+
get ToastAndroid() {
|
|
234
|
+
return require("react-native").ToastAndroid;
|
|
235
|
+
},
|
|
236
|
+
get TurboModuleRegistry() {
|
|
237
|
+
return require("react-native").TurboModuleRegistry;
|
|
238
|
+
},
|
|
239
|
+
get UIManager() {
|
|
240
|
+
return require("react-native").UIManager;
|
|
241
|
+
},
|
|
242
|
+
get unstable_batchedUpdates() {
|
|
243
|
+
return require("react-native").unstable_batchedUpdates;
|
|
244
|
+
},
|
|
245
|
+
get useAnimatedValue() {
|
|
246
|
+
return require("react-native").useAnimatedValue;
|
|
247
|
+
},
|
|
248
|
+
get useColorScheme() {
|
|
249
|
+
return require("react-native").useColorScheme;
|
|
250
|
+
},
|
|
251
|
+
get useWindowDimensions() {
|
|
252
|
+
return require("react-native").useWindowDimensions;
|
|
253
|
+
},
|
|
254
|
+
get UTFSequence() {
|
|
255
|
+
return require("react-native").UTFSequence;
|
|
256
|
+
},
|
|
257
|
+
get Vibration() {
|
|
258
|
+
return require("react-native").Vibration;
|
|
259
|
+
},
|
|
260
|
+
get VirtualViewMode() {
|
|
261
|
+
return require("react-native").VirtualViewMode;
|
|
262
|
+
},
|
|
263
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from "react-native";
|
|
2
|
+
export { ActivityIndicator } from "./ActivityIndicator";
|
|
3
|
+
export { Button } from "./Button";
|
|
4
|
+
export { FlatList } from "./FlatList";
|
|
5
|
+
export { Image } from "./Image";
|
|
6
|
+
export { ImageBackground } from "./ImageBackground";
|
|
7
|
+
export { KeyboardAvoidingView } from "./KeyboardAvoidingView";
|
|
8
|
+
export { Pressable } from "./Pressable";
|
|
9
|
+
export { ScrollView } from "./ScrollView";
|
|
10
|
+
export { Switch } from "./Switch";
|
|
11
|
+
export { Text } from "./Text";
|
|
12
|
+
export { TextInput } from "./TextInput";
|
|
13
|
+
export { TouchableHighlight } from "./TouchableHighlight";
|
|
14
|
+
export { TouchableOpacity } from "./TouchableOpacity";
|
|
15
|
+
export { TouchableWithoutFeedback } from "./TouchableWithoutFeedback";
|
|
16
|
+
export { View } from "./View";
|
|
17
|
+
export { VirtualizedList } from "./VirtualizedList";
|
package/src/index.ts
CHANGED
package/src/jest/index.ts
CHANGED
|
@@ -27,7 +27,8 @@ beforeEach(() => {
|
|
|
27
27
|
|
|
28
28
|
const debugDefault = Boolean(
|
|
29
29
|
process.env.REACT_NATIVE_CSS_TEST_DEBUG &&
|
|
30
|
-
process.env.NODE_OPTIONS
|
|
30
|
+
typeof process.env.NODE_OPTIONS === "string" &&
|
|
31
|
+
process.env.NODE_OPTIONS.includes("--inspect"),
|
|
31
32
|
);
|
|
32
33
|
|
|
33
34
|
export function registerCSS(
|