react-native-tvos 0.76.0-0rc0 → 0.76.0-0rc2
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/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +3 -0
- package/Libraries/Components/TextInput/RCTTextInputViewConfig.js +10 -0
- package/Libraries/Components/View/ReactNativeStyleAttributes.js +2 -2
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/NativeComponent/BaseViewConfig.android.js +2 -2
- package/Libraries/NativeComponent/BaseViewConfig.ios.js +11 -2
- package/Libraries/ReactNative/getNativeComponentAttributes.js +4 -0
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +98 -5
- package/Libraries/StyleSheet/StyleSheetTypes.js +5 -5
- package/Libraries/StyleSheet/processBoxShadow.js +5 -7
- package/Libraries/StyleSheet/processFilter.js +4 -4
- package/React/Base/RCTVersion.m +1 -1
- package/React/Fabric/Mounting/ComponentViews/ScrollView/RCTScrollViewComponentView.mm +23 -0
- package/React/Views/RCTViewManager.m +10 -9
- package/React/Views/ScrollView/RCTScrollView.m +20 -0
- package/ReactAndroid/api/ReactAndroid.api +27 -0
- package/ReactAndroid/build.gradle.kts +17 -8
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/hermes-engine/build.gradle.kts +0 -2
- package/ReactAndroid/publish.gradle +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/jstasks/HeadlessJsTaskContext.java +13 -14
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/BridgelessDevSupportManager.java +14 -9
- package/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.java +26 -21
- package/{sdks/ossonly-soloader/src/main/java/com/facebook/soloader/MergedSoMapping.kt → ReactAndroid/src/main/java/com/facebook/react/soloader/OpenSourceMergedSoMapping.kt} +6 -4
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewProps.kt +2 -2
- package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.java +18 -0
- package/ReactAndroid/src/main/jni/first-party/jni-lib-merge/jni_lib_merge.c +2 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/react/renderer/components/view/BaseViewProps.cpp +4 -4
- package/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTHermesInstance.h +3 -0
- package/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTHermesInstance.mm +7 -0
- package/cli.js +9 -5
- package/gradle/libs.versions.toml +2 -0
- package/jest-preset.js +5 -1
- package/package.json +12 -11
- package/scripts/cocoapods/privacy_manifest_utils.rb +23 -8
- package/scripts/cocoapods/utils.rb +10 -2
- package/scripts/react-native-xcode.sh +2 -0
- package/sdks/hermes-engine/hermes-engine.podspec +1 -1
- package/sdks/hermes-engine/utils/build-apple-framework.sh +0 -12
- package/sdks/hermes-engine/utils/build-ios-framework.sh +21 -4
- package/sdks/hermesc/osx-bin/hermes +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/src/private/components/SafeAreaView_INTERNAL_DO_NOT_USE.js +11 -9
- package/types/experimental.d.ts +12 -98
- package/sdks/ossonly-soloader/src/main/java/com/facebook/soloader/DoNotOptimize.kt +0 -10
- package/sdks/ossonly-soloader/src/main/java/com/facebook/soloader/SoLoader.kt +0 -53
- package/sdks/ossonly-soloader/src/main/java/com/facebook/soloader/nativeloader/NativeLoader.kt +0 -28
- package/sdks/ossonly-soloader/src/main/java/com/facebook/soloader/nativeloader/NativeLoaderDelegate.kt +0 -23
- package/sdks/ossonly-soloader/src/main/java/com/facebook/soloader/nativeloader/SystemDelegate.kt +0 -10
package/types/experimental.d.ts
CHANGED
|
@@ -32,108 +32,14 @@
|
|
|
32
32
|
* Either the import or the reference only needs to appear once, anywhere in the project.
|
|
33
33
|
*/
|
|
34
34
|
|
|
35
|
-
import {
|
|
35
|
+
import {
|
|
36
|
+
GradientValue,
|
|
37
|
+
BlendMode,
|
|
38
|
+
} from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
|
|
36
39
|
|
|
37
40
|
export {};
|
|
38
41
|
|
|
39
42
|
declare module '.' {
|
|
40
|
-
export interface FlexStyle {
|
|
41
|
-
/**
|
|
42
|
-
* Equivalent to `top`, `bottom`, `right` and `left`
|
|
43
|
-
*/
|
|
44
|
-
inset?: DimensionValue | undefined;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Equivalent to `top`, `bottom`
|
|
48
|
-
*/
|
|
49
|
-
insetBlock?: DimensionValue | undefined;
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Equivalent to `bottom`
|
|
53
|
-
*/
|
|
54
|
-
insetBlockEnd?: DimensionValue | undefined;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Equivalent to `top`
|
|
58
|
-
*/
|
|
59
|
-
insetBlockStart?: DimensionValue | undefined;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Equivalent to `right` and `left`
|
|
63
|
-
*/
|
|
64
|
-
insetInline?: DimensionValue | undefined;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Equivalent to `right` or `left`
|
|
68
|
-
*/
|
|
69
|
-
insetInlineEnd?: DimensionValue | undefined;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Equivalent to `right` or `left`
|
|
73
|
-
*/
|
|
74
|
-
insetInlineStart?: DimensionValue | undefined;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Equivalent to `marginVertical`
|
|
78
|
-
*/
|
|
79
|
-
marginBlock?: DimensionValue | undefined;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Equivalent to `marginBottom`
|
|
83
|
-
*/
|
|
84
|
-
marginBlockEnd?: DimensionValue | undefined;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Equivalent to `marginTop`
|
|
88
|
-
*/
|
|
89
|
-
marginBlockStart?: DimensionValue | undefined;
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Equivalent to `marginHorizontal`
|
|
93
|
-
*/
|
|
94
|
-
marginInline?: DimensionValue | undefined;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Equivalent to `marginEnd`
|
|
98
|
-
*/
|
|
99
|
-
marginInlineEnd?: DimensionValue | undefined;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Equivalent to `marginStart`
|
|
103
|
-
*/
|
|
104
|
-
marginInlineStart?: DimensionValue | undefined;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Equivalent to `paddingVertical`
|
|
108
|
-
*/
|
|
109
|
-
paddingBlock?: DimensionValue | undefined;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Equivalent to `paddingBottom`
|
|
113
|
-
*/
|
|
114
|
-
paddingBlockEnd?: DimensionValue | undefined;
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Equivalent to `paddingTop`
|
|
118
|
-
*/
|
|
119
|
-
paddingBlockStart?: DimensionValue | undefined;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Equivalent to `paddingHorizontal`
|
|
123
|
-
*/
|
|
124
|
-
paddingInline?: DimensionValue | undefined;
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Equivalent to `paddingEnd`
|
|
128
|
-
*/
|
|
129
|
-
paddingInlineEnd?: DimensionValue | undefined;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Equivalent to `paddingStart`
|
|
133
|
-
*/
|
|
134
|
-
paddingInlineStart?: DimensionValue | undefined;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
43
|
export interface ViewProps {
|
|
138
44
|
/**
|
|
139
45
|
* Contols whether this view, and its transitive children, are laid in a way
|
|
@@ -142,4 +48,12 @@ declare module '.' {
|
|
|
142
48
|
*/
|
|
143
49
|
experimental_layoutConformance?: 'strict' | 'classic' | undefined;
|
|
144
50
|
}
|
|
51
|
+
|
|
52
|
+
export interface ViewStyle {
|
|
53
|
+
experimental_mixBlendMode?: BlendMode | undefined;
|
|
54
|
+
experimental_backgroundImage?:
|
|
55
|
+
| ReadonlyArray<GradientValue>
|
|
56
|
+
| string
|
|
57
|
+
| undefined;
|
|
58
|
+
}
|
|
145
59
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
package com.facebook.soloader
|
|
9
|
-
|
|
10
|
-
public annotation class DoNotOptimize {}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
@file:Suppress("UNUSED_EXPRESSION", "ControlFlowWithEmptyBody", "UNUSED_PARAMETER")
|
|
9
|
-
|
|
10
|
-
package com.facebook.soloader
|
|
11
|
-
|
|
12
|
-
import android.content.Context
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* This class is a stub of SoLoader used ONLY by React Native OSS.
|
|
16
|
-
*
|
|
17
|
-
* This allows us to do not mutate the SoLoader.init and SoLoader.loadLibrary methods, which are
|
|
18
|
-
* used by the React Native, while also allowing us to implement custom JNI_OnLoad calling which
|
|
19
|
-
* enables merging of SOs.
|
|
20
|
-
*/
|
|
21
|
-
public object SoLoader {
|
|
22
|
-
|
|
23
|
-
private val loadedLibraries = mutableSetOf<String>()
|
|
24
|
-
|
|
25
|
-
private fun mapLibName(input: String) = MergedSoMapping.mapLibName(input)
|
|
26
|
-
|
|
27
|
-
private fun invokeJniOnload(libraryName: String) = MergedSoMapping.invokeJniOnload(libraryName)
|
|
28
|
-
|
|
29
|
-
@Deprecated("This method is a no-op and you should not be calling it")
|
|
30
|
-
@JvmStatic
|
|
31
|
-
public fun init(context: Context, exoPackage: Boolean) {
|
|
32
|
-
// Do nothing
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@JvmStatic
|
|
36
|
-
public fun loadLibrary(libraryName: String): Boolean {
|
|
37
|
-
if (libraryName in loadedLibraries) {
|
|
38
|
-
return false
|
|
39
|
-
}
|
|
40
|
-
val mapLibraryName = mapLibName(libraryName)
|
|
41
|
-
System.loadLibrary(mapLibraryName)
|
|
42
|
-
loadedLibraries.add(libraryName)
|
|
43
|
-
if (libraryName != mapLibraryName) {
|
|
44
|
-
invokeJniOnload(libraryName)
|
|
45
|
-
}
|
|
46
|
-
return true
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@JvmStatic
|
|
50
|
-
public fun setInTestMode() {
|
|
51
|
-
// Do nothing
|
|
52
|
-
}
|
|
53
|
-
}
|
package/sdks/ossonly-soloader/src/main/java/com/facebook/soloader/nativeloader/NativeLoader.kt
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
package com.facebook.soloader.nativeloader
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* This class is a stub of NativeLoader used ONLY by React Native OSS.
|
|
12
|
-
*
|
|
13
|
-
* Fresco in OSS depends on NativeLoader, but we don't want to include the real
|
|
14
|
-
* NativeLoader/SoLoader in React Native OSS. This stub is used to make Fresco work properly for us.
|
|
15
|
-
*/
|
|
16
|
-
public object NativeLoader {
|
|
17
|
-
|
|
18
|
-
@JvmStatic
|
|
19
|
-
public fun loadLibrary(libraryName: String): Boolean {
|
|
20
|
-
System.loadLibrary(libraryName)
|
|
21
|
-
return true
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@JvmStatic public fun isInitialized(): Boolean = true
|
|
25
|
-
|
|
26
|
-
@Suppress("UNUSED_PARAMETER")
|
|
27
|
-
public fun initIfUninitialized(systemDelegate: SystemDelegate): Unit = Unit
|
|
28
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
package com.facebook.soloader.nativeloader
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* This class is a stub of NativeLoaderDelegate used ONLY by React Native OSS.
|
|
12
|
-
*
|
|
13
|
-
* Fresco in OSS depends on NativeLoader, but we don't want to include the real
|
|
14
|
-
* NativeLoader/SoLoader in React Native OSS. This stub is used to make Fresco work properly for us.
|
|
15
|
-
*/
|
|
16
|
-
public interface NativeLoaderDelegate {
|
|
17
|
-
|
|
18
|
-
public fun loadLibrary(shortName: String?, flags: Int): Boolean
|
|
19
|
-
|
|
20
|
-
public fun getLibraryPath(libName: String?): String
|
|
21
|
-
|
|
22
|
-
public fun getSoSourcesVersion(): Int
|
|
23
|
-
}
|
package/sdks/ossonly-soloader/src/main/java/com/facebook/soloader/nativeloader/SystemDelegate.kt
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
package com.facebook.soloader.nativeloader
|
|
9
|
-
|
|
10
|
-
public class SystemDelegate {}
|