Skip to content

Commit 77d3af7

Browse files
BogiKaysatya164
andauthored
feat: New architecture support (#4574)
* feat: update deps & enable new arch * chore: migrate Menu to functional component * fix: get rid of a few rerenders of Menu * fix: fix Modal flickering & cleanup * fix: dynamic update of Button styles * chore: update yarn * fix: fix scrolling on ExampleList screen (web) * fix: update runtimeVersion * fix: workaround for fixing textinput styling * chore: circleCI config update * chore: Update AnimatedText's props type Co-authored-by: Satyajit Sahoo <[email protected]> * fix: get rid of setting yarn version from circleCI config * fix: setting top offset of Menu based on anchorPosition --------- Co-authored-by: Satyajit Sahoo <[email protected]>
1 parent 2827b9c commit 77d3af7

40 files changed

+44567
-32168
lines changed

.circleci/config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ jobs:
2929
- run:
3030
name: Install dependencies
3131
command: |
32-
yarn install --cwd example --frozen-lockfile
33-
yarn install --cwd docs --frozen-lockfile
34-
yarn install --frozen-lockfile
32+
sudo corepack enable
33+
yarn --cwd example --immutable
34+
yarn --cwd docs --immutable
35+
yarn --immutable
3536
- save_cache:
3637
key: dependencies-{{ checksum "package.json" }}
3738
paths:

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,6 @@ CHANGELOG.md
6464
lib/
6565

6666
.expo
67+
68+
# Yarn
69+
.yarn/*

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

docs/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ docs/components
2525
# legacy
2626
dist/
2727
.linaria-cache/
28+
29+
# Yarn
30+
.yarn/*

docs/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
},
1818
"dependencies": {
1919
"@callstack/react-theme-provider": "^3.0.9",
20-
"@docusaurus/core": "^2.3.1",
21-
"@docusaurus/preset-classic": "^2.3.1",
22-
"@docusaurus/remark-plugin-npm2yarn": "^2.3.1",
20+
"@docusaurus/core": "^2.3.6",
21+
"@docusaurus/preset-classic": "^2.3.6",
22+
"@docusaurus/remark-plugin-npm2yarn": "^2.3.6",
2323
"@easyops-cn/docusaurus-search-local": "^0.33.4",
2424
"@material/material-color-utilities": "0.2.4",
2525
"@mdx-js/react": "^1.6.22",
@@ -37,7 +37,7 @@
3737
"use-latest-callback": "^0.1.7"
3838
},
3939
"devDependencies": {
40-
"@docusaurus/module-type-aliases": "^2.3.1",
40+
"@docusaurus/module-type-aliases": "^2.3.6",
4141
"@tsconfig/docusaurus": "^1.0.6",
4242
"@types/marked": "^4.0.7",
4343
"@types/react-color": "^3.0.6",
@@ -58,7 +58,7 @@
5858
]
5959
},
6060
"engines": {
61-
"node": ">=16.14"
61+
"node": ">=18"
6262
},
6363
"resolutions": {
6464
"@types/react": "18.0.8",

docs/yarn.lock

Lines changed: 15183 additions & 10619 deletions
Large diffs are not rendered by default.

example/.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
# XDE
22
#
33
.expo/
4-
/coverage
4+
/coverage
5+
6+
# Yarn
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/sdks
12+
!.yarn/versions

example/android/app/build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ react {
6666
//
6767
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
6868
// hermesFlags = ["-O", "-output-source-map"]
69+
70+
autolinkLibrariesWithApp()
6971
}
7072

7173
// Override `hermesEnabled` by `expo.jsEngine`
@@ -221,9 +223,6 @@ dependencies {
221223
}
222224

223225
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.0.0")
224-
225-
implementation("com.facebook.react:flipper-integration")
226-
227226

228227
if (hermesEnabled.toBoolean()) {
229228
implementation("com.facebook.react:hermes-android")
@@ -232,5 +231,4 @@ dependencies {
232231
}
233232
}
234233

235-
apply from: new File(["node", "--print", "require.resolve('@react-native-community/cli-platform-android/package.json')"].execute(null, rootDir).text.trim(), "../native_modules.gradle");
236234
applyNativeModulesAppBuildGradle(project)

example/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
android:allowBackup="true"
2121
android:theme="@style/AppTheme"
2222
android:usesCleartextTraffic="true"
23+
android:supportsRtl="true"
2324
>
2425

2526
<meta-data android:name="expo.modules.updates.ENABLED" android:value="true"/>

example/android/app/src/main/java/com/callstack/reactnativepaperexample/MainApplication.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import com.facebook.react.ReactPackage;
1111
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint;
1212
import com.facebook.react.defaults.DefaultReactNativeHost;
13-
import com.facebook.react.flipper.ReactNativeFlipper;
13+
import com.facebook.react.soloader.OpenSourceMergedSoMapping;
1414
import com.facebook.soloader.SoLoader;
1515

1616
import expo.modules.ApplicationLifecycleDispatcher;
@@ -60,7 +60,7 @@ public ReactNativeHost getReactNativeHost() {
6060
@Override
6161
public void onCreate() {
6262
super.onCreate();
63-
SoLoader.init(this, /* native exopackage */ false);
63+
SoLoader.init(this, OpenSourceMergedSoMapping)
6464
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
6565
// If you opted-in for the New Architecture, we load the native entry point for this app.
6666
DefaultNewArchitectureEntryPoint.load();

0 commit comments

Comments
 (0)