react-native-macos 0.0.0-dd8ec0d8a → 0.0.0-ddcc38f1b
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/AddressSanitizerCrash/RCTAddressSanitizerCrash.js +25 -0
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js +22 -12
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/StyleSheet/PlatformColorValueTypes.macos.js +16 -1
- package/Libraries/StyleSheet/PlatformColorValueTypesMacOS.js +2 -0
- package/Libraries/StyleSheet/PlatformColorValueTypesMacOS.macos.js +8 -1
- package/Libraries/Text/RawText/RCTRawTextShadowView.m +2 -0
- package/Libraries/Text/Text/RCTTextView.m +7 -9
- package/Libraries/Text/TextInput/Multiline/RCTUITextView.m +10 -8
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegate.h +2 -0
- package/Libraries/Text/TextInput/RCTBackedTextInputDelegateAdapter.m +15 -3
- package/Libraries/Text/TextInput/RCTBaseTextInputView.m +10 -1
- package/Libraries/WebSocket/RCTSRWebSocket.m +23 -0
- package/README.md +18 -42
- package/React/Base/RCTBridgeModule.h +1 -1
- package/React/Base/RCTConvert.m +23 -6
- package/React/Base/RCTImageSource.m +2 -0
- package/React/Base/RCTJSStackFrame.m +2 -0
- package/React/Base/RCTJavaScriptLoader.mm +2 -0
- package/React/Base/RCTKeyCommands.m +2 -0
- package/React/Base/RCTModuleData.mm +2 -0
- package/React/Base/RCTModuleMethod.mm +2 -0
- package/React/Base/RCTTouchEvent.m +2 -0
- package/React/Base/RCTVersion.m +1 -1
- package/React/Base/macOS/RCTPlatformDisplayLink.m +4 -1
- package/React/CoreModules/RCTActionSheetManager.mm +4 -0
- package/React/CoreModules/RCTAddressSanitizerCrashManager.h +12 -0
- package/React/CoreModules/RCTAddressSanitizerCrashManager.mm +18 -0
- package/React/CoreModules/RCTAppearance.mm +5 -1
- package/React/CoreModules/RCTDevLoadingView.mm +14 -9
- package/React/CxxModule/RCTCxxMethod.mm +2 -0
- package/React/DevSupport/RCTInspectorDevServerHelper.mm +12 -0
- package/React/Modules/RCTLayoutAnimation.m +2 -0
- package/React/Modules/RCTLayoutAnimationGroup.m +2 -0
- package/React/Views/RCTShadowView.m +3 -1
- package/React/Views/RCTView.h +5 -2
- package/React/Views/RCTView.m +22 -10
- package/React/Views/RCTViewManager.m +9 -8
- package/React/Views/SafeAreaView/RCTSafeAreaView.m +2 -0
- package/React/Views/ScrollView/MacOS/RCTScrollContentLocalData.h +2 -2
- package/React/Views/ScrollView/MacOS/RCTScrollContentLocalData.m +4 -4
- package/React/Views/ScrollView/RCTScrollContentView.m +10 -24
- package/React/Views/ScrollView/RCTScrollView.m +1 -5
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManager.java +27 -15
- package/ReactAndroid/src/main/java/com/facebook/react/ReactInstanceManagerBuilder.java +12 -0
- package/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java +6 -0
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/ReactCommon/hermes/inspector/tools/msggen/package.json +1 -1
- package/ReactCommon/hermes/inspector/tools/msggen/yarn.lock +1225 -1481
- package/package.json +20 -12
- package/template/ios/HelloWorld.xcodeproj/project.pbxproj +2 -0
- package/template/package.json +2 -2
- package/React/Base/macOS/RCTDynamicColor.h +0 -28
- package/React/Base/macOS/RCTDynamicColor.m +0 -217
|
@@ -45,6 +45,7 @@ public class ReactInstanceManagerBuilder {
|
|
|
45
45
|
private @Nullable NotThreadSafeBridgeIdleDebugListener mBridgeIdleDebugListener;
|
|
46
46
|
private @Nullable Application mApplication;
|
|
47
47
|
private boolean mUseDeveloperSupport;
|
|
48
|
+
private boolean mRequireActivity;
|
|
48
49
|
private @Nullable LifecycleState mInitialLifecycleState;
|
|
49
50
|
private @Nullable UIImplementationProvider mUIImplementationProvider;
|
|
50
51
|
private @Nullable NativeModuleCallExceptionHandler mNativeModuleCallExceptionHandler;
|
|
@@ -171,6 +172,16 @@ public class ReactInstanceManagerBuilder {
|
|
|
171
172
|
return this;
|
|
172
173
|
}
|
|
173
174
|
|
|
175
|
+
/**
|
|
176
|
+
* When {@code false}, indicates that correct usage of React Native will NOT involve an Activity.
|
|
177
|
+
* For the vast majority of Android apps in the ecosystem, this will not need to change. Unless
|
|
178
|
+
* you really know what you're doing, you should probably not change this!
|
|
179
|
+
*/
|
|
180
|
+
public ReactInstanceManagerBuilder setRequireActivity(boolean requireActivity) {
|
|
181
|
+
mRequireActivity = requireActivity;
|
|
182
|
+
return this;
|
|
183
|
+
}
|
|
184
|
+
|
|
174
185
|
/**
|
|
175
186
|
* Sets the initial lifecycle state of the host. For example, if the host is already resumed at
|
|
176
187
|
* creation time, we wouldn't expect an onResume call until we get an onPause call.
|
|
@@ -283,6 +294,7 @@ public class ReactInstanceManagerBuilder {
|
|
|
283
294
|
mJSMainModulePath,
|
|
284
295
|
mPackages,
|
|
285
296
|
mUseDeveloperSupport,
|
|
297
|
+
mRequireActivity,
|
|
286
298
|
mBridgeIdleDebugListener,
|
|
287
299
|
Assertions.assertNotNull(mInitialLifecycleState, "Initial lifecycle state was not set"),
|
|
288
300
|
mUIImplementationProvider,
|
|
@@ -68,6 +68,7 @@ public abstract class ReactNativeHost {
|
|
|
68
68
|
.setApplication(mApplication)
|
|
69
69
|
.setJSMainModulePath(getJSMainModuleName())
|
|
70
70
|
.setUseDeveloperSupport(getUseDeveloperSupport())
|
|
71
|
+
.setRequireActivity(getShouldRequireActivity())
|
|
71
72
|
.setRedBoxHandler(getRedBoxHandler())
|
|
72
73
|
.setJavaScriptExecutorFactory(getJavaScriptExecutorFactory())
|
|
73
74
|
.setUIImplementationProvider(getUIImplementationProvider())
|
|
@@ -124,6 +125,11 @@ public abstract class ReactNativeHost {
|
|
|
124
125
|
return null;
|
|
125
126
|
}
|
|
126
127
|
|
|
128
|
+
/** Returns whether or not to treat it as normal if Activity is null. */
|
|
129
|
+
public boolean getShouldRequireActivity() {
|
|
130
|
+
return true;
|
|
131
|
+
}
|
|
132
|
+
|
|
127
133
|
/**
|
|
128
134
|
* Returns the name of the main module. Determines the URL used to fetch the JS bundle from Metro.
|
|
129
135
|
* It is only used when dev support is enabled. This is the first file to be executed once the
|