-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Issue-1780] Update react-native version 0.75
- Loading branch information
dominhquang
committed
Sep 9, 2024
1 parent
573ea8a
commit bdb661a
Showing
6 changed files
with
3,217 additions
and
3,007 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,262 @@ | ||
diff --git a/node_modules/react-native/React/Fabric/RCTThirdPartyFabricComponentsProvider.h b/node_modules/react-native/React/Fabric/RCTThirdPartyFabricComponentsProvider.h | ||
new file mode 100644 | ||
index 0000000..d8804a5 | ||
--- /dev/null | ||
+++ b/node_modules/react-native/React/Fabric/RCTThirdPartyFabricComponentsProvider.h | ||
@@ -0,0 +1,83 @@ | ||
+ | ||
+/* | ||
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). | ||
+ * | ||
+ * Do not edit this file as changes may cause incorrect behavior and will be lost | ||
+ * once the code is regenerated. | ||
+ * | ||
+ * @generated by GenerateRCTThirdPartyFabricComponentsProviderH | ||
+ */ | ||
+ | ||
+#pragma GCC diagnostic push | ||
+#pragma GCC diagnostic ignored "-Wreturn-type-c-linkage" | ||
+ | ||
+#import <React/RCTComponentViewProtocol.h> | ||
+ | ||
+#ifdef __cplusplus | ||
+extern "C" { | ||
+#endif | ||
+ | ||
+Class<RCTComponentViewProtocol> RCTThirdPartyFabricComponentsProvider(const char *name); | ||
+#if RCT_NEW_ARCH_ENABLED | ||
+#ifndef RCT_DYNAMIC_FRAMEWORKS | ||
+ | ||
+ | ||
+#if !TARGET_OS_OSX && !TARGET_OS_TV && !TARGET_OS_VISION | ||
+ | ||
+#endif | ||
+ | ||
+#if !TARGET_OS_OSX && !TARGET_OS_TV && !TARGET_OS_VISION | ||
+Class<RCTComponentViewProtocol> RNGoogleSigninButtonCls(void) __attribute__((used)); // 2 | ||
+#endif | ||
+ | ||
+Class<RCTComponentViewProtocol> RNGestureHandlerButtonCls(void) __attribute__((used)); // 3 | ||
+Class<RCTComponentViewProtocol> RNGestureHandlerRootViewCls(void) __attribute__((used)); // 3 | ||
+ | ||
+#if !TARGET_OS_OSX | ||
+Class<RCTComponentViewProtocol> RNSFullWindowOverlayCls(void) __attribute__((used)); // 5 | ||
+Class<RCTComponentViewProtocol> RNSModalScreenCls(void) __attribute__((used)); // 5 | ||
+Class<RCTComponentViewProtocol> RNSScreenContainerCls(void) __attribute__((used)); // 5 | ||
+Class<RCTComponentViewProtocol> RNSScreenCls(void) __attribute__((used)); // 5 | ||
+Class<RCTComponentViewProtocol> RNSScreenNavigationContainerCls(void) __attribute__((used)); // 5 | ||
+Class<RCTComponentViewProtocol> RNSScreenStackHeaderConfigCls(void) __attribute__((used)); // 5 | ||
+Class<RCTComponentViewProtocol> RNSScreenStackHeaderSubviewCls(void) __attribute__((used)); // 5 | ||
+Class<RCTComponentViewProtocol> RNSScreenStackCls(void) __attribute__((used)); // 5 | ||
+Class<RCTComponentViewProtocol> RNSSearchBarCls(void) __attribute__((used)); // 5 | ||
+#endif | ||
+ | ||
+Class<RCTComponentViewProtocol> RNSVGCircleCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGClipPathCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGDefsCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGEllipseCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGFeColorMatrixCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGFeGaussianBlurCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGFeMergeCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGFeOffsetCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGFilterCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGForeignObjectCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGGroupCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGImageCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGSvgViewCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGLinearGradientCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGLineCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGMarkerCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGMaskCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGPathCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGPatternCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGRadialGradientCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGRectCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGSymbolCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGTextCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGTextPathCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGTSpanCls(void) __attribute__((used)); // 6 | ||
+Class<RCTComponentViewProtocol> RNSVGUseCls(void) __attribute__((used)); // 6 | ||
+ | ||
+#endif | ||
+#endif | ||
+ | ||
+#ifdef __cplusplus | ||
+} | ||
+#endif | ||
+ | ||
+#pragma GCC diagnostic pop | ||
+ | ||
diff --git a/node_modules/react-native/React/Fabric/RCTThirdPartyFabricComponentsProvider.mm b/node_modules/react-native/React/Fabric/RCTThirdPartyFabricComponentsProvider.mm | ||
new file mode 100644 | ||
index 0000000..adf2d19 | ||
--- /dev/null | ||
+++ b/node_modules/react-native/React/Fabric/RCTThirdPartyFabricComponentsProvider.mm | ||
@@ -0,0 +1,120 @@ | ||
+ | ||
+/** | ||
+ * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). | ||
+ * | ||
+ * Do not edit this file as changes may cause incorrect behavior and will be lost | ||
+ * once the code is regenerated. | ||
+ * | ||
+ * @generated by GenerateRCTThirdPartyFabricComponentsProviderCpp | ||
+ */ | ||
+ | ||
+// OSS-compatibility layer | ||
+ | ||
+#import "RCTThirdPartyFabricComponentsProvider.h" | ||
+ | ||
+#import <string> | ||
+#import <unordered_map> | ||
+ | ||
+Class<RCTComponentViewProtocol> RCTThirdPartyFabricComponentsProvider(const char *name) { | ||
+ static std::unordered_map<std::string, Class (*)(void)> sFabricComponentsClassMap = { | ||
+ #if RCT_NEW_ARCH_ENABLED | ||
+ #ifndef RCT_DYNAMIC_FRAMEWORKS | ||
+ | ||
+#if !TARGET_OS_OSX && !TARGET_OS_TV && !TARGET_OS_VISION | ||
+ | ||
+#endif | ||
+ | ||
+#if !TARGET_OS_OSX && !TARGET_OS_TV && !TARGET_OS_VISION | ||
+ | ||
+ {"RNGoogleSigninButton", RNGoogleSigninButtonCls}, // 2 | ||
+#endif | ||
+ | ||
+ | ||
+ {"RNGestureHandlerButton", RNGestureHandlerButtonCls}, // 3 | ||
+ | ||
+ {"RNGestureHandlerRootView", RNGestureHandlerRootViewCls}, // 3 | ||
+ | ||
+#if !TARGET_OS_OSX | ||
+ | ||
+ {"RNSFullWindowOverlay", RNSFullWindowOverlayCls}, // 5 | ||
+ | ||
+ {"RNSModalScreen", RNSModalScreenCls}, // 5 | ||
+ | ||
+ {"RNSScreenContainer", RNSScreenContainerCls}, // 5 | ||
+ | ||
+ {"RNSScreen", RNSScreenCls}, // 5 | ||
+ | ||
+ {"RNSScreenNavigationContainer", RNSScreenNavigationContainerCls}, // 5 | ||
+ | ||
+ {"RNSScreenStackHeaderConfig", RNSScreenStackHeaderConfigCls}, // 5 | ||
+ | ||
+ {"RNSScreenStackHeaderSubview", RNSScreenStackHeaderSubviewCls}, // 5 | ||
+ | ||
+ {"RNSScreenStack", RNSScreenStackCls}, // 5 | ||
+ | ||
+ {"RNSSearchBar", RNSSearchBarCls}, // 5 | ||
+#endif | ||
+ | ||
+ | ||
+ {"RNSVGCircle", RNSVGCircleCls}, // 6 | ||
+ | ||
+ {"RNSVGClipPath", RNSVGClipPathCls}, // 6 | ||
+ | ||
+ {"RNSVGDefs", RNSVGDefsCls}, // 6 | ||
+ | ||
+ {"RNSVGEllipse", RNSVGEllipseCls}, // 6 | ||
+ | ||
+ {"RNSVGFeColorMatrix", RNSVGFeColorMatrixCls}, // 6 | ||
+ | ||
+ {"RNSVGFeGaussianBlur", RNSVGFeGaussianBlurCls}, // 6 | ||
+ | ||
+ {"RNSVGFeMerge", RNSVGFeMergeCls}, // 6 | ||
+ | ||
+ {"RNSVGFeOffset", RNSVGFeOffsetCls}, // 6 | ||
+ | ||
+ {"RNSVGFilter", RNSVGFilterCls}, // 6 | ||
+ | ||
+ {"RNSVGForeignObject", RNSVGForeignObjectCls}, // 6 | ||
+ | ||
+ {"RNSVGGroup", RNSVGGroupCls}, // 6 | ||
+ | ||
+ {"RNSVGImage", RNSVGImageCls}, // 6 | ||
+ | ||
+ {"RNSVGSvgView", RNSVGSvgViewCls}, // 6 | ||
+ | ||
+ {"RNSVGLinearGradient", RNSVGLinearGradientCls}, // 6 | ||
+ | ||
+ {"RNSVGLine", RNSVGLineCls}, // 6 | ||
+ | ||
+ {"RNSVGMarker", RNSVGMarkerCls}, // 6 | ||
+ | ||
+ {"RNSVGMask", RNSVGMaskCls}, // 6 | ||
+ | ||
+ {"RNSVGPath", RNSVGPathCls}, // 6 | ||
+ | ||
+ {"RNSVGPattern", RNSVGPatternCls}, // 6 | ||
+ | ||
+ {"RNSVGRadialGradient", RNSVGRadialGradientCls}, // 6 | ||
+ | ||
+ {"RNSVGRect", RNSVGRectCls}, // 6 | ||
+ | ||
+ {"RNSVGSymbol", RNSVGSymbolCls}, // 6 | ||
+ | ||
+ {"RNSVGText", RNSVGTextCls}, // 6 | ||
+ | ||
+ {"RNSVGTextPath", RNSVGTextPathCls}, // 6 | ||
+ | ||
+ {"RNSVGTSpan", RNSVGTSpanCls}, // 6 | ||
+ | ||
+ {"RNSVGUse", RNSVGUseCls}, // 6 | ||
+ #endif | ||
+ #endif | ||
+ }; | ||
+ | ||
+ auto p = sFabricComponentsClassMap.find(name); | ||
+ if (p != sFabricComponentsClassMap.end()) { | ||
+ auto classFunc = p->second; | ||
+ return classFunc(); | ||
+ } | ||
+ return nil; | ||
+} | ||
diff --git a/node_modules/react-native/ReactAndroid/api/ReactAndroid.api b/node_modules/react-native/ReactAndroid/api/ReactAndroid.api | ||
index e647de2..6a14ffd 100644 | ||
--- a/node_modules/react-native/ReactAndroid/api/ReactAndroid.api | ||
+++ b/node_modules/react-native/ReactAndroid/api/ReactAndroid.api | ||
@@ -6459,9 +6459,9 @@ public class com/facebook/react/views/imagehelper/ImageSource { | ||
public final fun getSize ()D | ||
public final fun getSource ()Ljava/lang/String; | ||
public static final fun getTransparentBitmapImageSource (Landroid/content/Context;)Lcom/facebook/react/views/imagehelper/ImageSource; | ||
- public final fun getUri ()Landroid/net/Uri; | ||
+ public fun getUri ()Landroid/net/Uri; | ||
public fun hashCode ()I | ||
- public final fun isResource ()Z | ||
+ public fun isResource ()Z | ||
} | ||
|
||
public final class com/facebook/react/views/imagehelper/ImageSource$Companion { | ||
diff --git a/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ImageSource.kt b/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ImageSource.kt | ||
index 583b4a0..947044c 100644 | ||
--- a/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ImageSource.kt | ||
+++ b/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/views/imagehelper/ImageSource.kt | ||
@@ -23,12 +23,14 @@ constructor( | ||
) { | ||
|
||
/** Get the URI for this image - can be either a parsed network URI or a resource URI. */ | ||
- public val uri: Uri = computeUri(context) | ||
+ public open val uri: Uri = computeUri(context) | ||
/** Get the area of this image. */ | ||
public val size: Double = width * height | ||
/** Get whether this image source represents an Android resource or a network URI. */ | ||
- public var isResource: Boolean = false | ||
- private set | ||
+ public open val isResource: Boolean | ||
+ get() = _isResource | ||
+ | ||
+ private var _isResource: Boolean = false | ||
|
||
override fun equals(other: Any?): Boolean { | ||
if (this === other) { | ||
@@ -58,7 +60,7 @@ constructor( | ||
} | ||
|
||
private fun computeLocalUri(context: Context): Uri { | ||
- isResource = true | ||
+ _isResource = true | ||
return ResourceDrawableIdHelper.instance.getResourceDrawableUri(context, source) | ||
} | ||
|
Oops, something went wrong.