skip to content
Andrei Calazans

React Native Weekly - W45 2021

/ 2 min read

Welcome to the 33rd edition of React Native Weekly!

The week 45 of 2021 was a slower than usual week, it contains all the work in-between: November 1st to 7th.

Workflow for version labels

Lucas Bento lucas.bsilva@outlook.com’s commit added Github actions to 1) create a label for each released version and 2) automatically apply this label version when an issue is opened mentioning the given version.

If you want to take a look at the Github Actions Lucas created you can find them here: Create version label and Apply version label.

Add workflow to create version labels on new releases (#32508)

Changelog moved back to core repo

This commit adds the release changelog back to the core repo. It was previously hosted a React Native Community repo.

Improvements to Codegen

Ramanpreet Nara ramanpreet@fb.com and Héctor Ramos hramos@fb.com made a few changes to the Codegen logic.

Most notable Ramanpreet refactored the use of string replace for the use of templates.

Fix split-screen app reconstruct

somena1 sophiaesiri.ee@gmail.com fixed an issue related to split screen Android devices.

When switching between split screen or resizing the screen window on Android causes a restart by reconstructing the app components as described on this issue https://github.com/facebook/react-native/issues/25040

The fix is to add screenLayout and smallestScreenSize to AndroidManifest’s android:configChanges

Remove iOS 11 availability check

This commit by Ken Tominaga ken.for.develop@gmail.com is a good reminder that React Native mininum iOS deployment target is iOS 11.

Check for double dispose when sending touch event [Android]

Andrei Shikov ashikov@fb.com found a double dispatching issue with touch events on Android.

-      TouchesHelper.sendTouchEventModern(rctEventEmitter, this, /* useDispatchV2 */ true);
+      if (verifyMotionEvent()) {
+        TouchesHelper.sendTouchEventModern(rctEventEmitter, this, /* useDispatchV2 */ true);
+      }

Ensure WritableMap is copied before consuming object

In another commit Andrei Shikov ashikov@fb.com also fixed an issue with touch events where the touch objects would cause crash in production due to high-firing conditions for CANCEL events.

And this was caused by the WritableMap object not being properly copied over.

Allow setting architecture in RNTester and release builds

Commit by Neil Dhar neildhar@fb.com

You can now do specify the native debug architecture when building the rn-tester:

./gradlew -PreactNativeDebugArchitectures=x86_64 :packages:rn-tester:android:app:installJscDebug

Community

Done

That’s it for this week. If you want to see more checkout the previous week’s posts here. Subscribe to get notified when new posts are out = )