Skip to content

Commit 273491c

Browse files
authored
chore: Bump example apps to RN 0.80 (#397)
## Description This PR bumps example apps to latest stable release of react-native.
1 parent a7b0ff0 commit 273491c

File tree

28 files changed

+3037
-2375
lines changed

28 files changed

+3037
-2375
lines changed

.yarn/patches/@shopify-flash-list-npm-1.8.0-54e02d8f74.patch

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/android/src/main/kotlin/com/shopify/reactnative/flash_list/BlankAreaEvent.kt b/android/src/main/kotlin/com/shopify/reactnative/flash_list/BlankAreaEvent.kt
2+
index ed74c43582af56b6dc541460d91d1ede53156d9e..dd34130a6f0be48ddecb3e322b1614013b46140e 100644
3+
--- a/android/src/main/kotlin/com/shopify/reactnative/flash_list/BlankAreaEvent.kt
4+
+++ b/android/src/main/kotlin/com/shopify/reactnative/flash_list/BlankAreaEvent.kt
5+
@@ -20,7 +20,7 @@ class BlankAreaEvent(
6+
}
7+
8+
override fun dispatch(rctEventEmitter: RCTEventEmitter) {
9+
- rctEventEmitter.receiveEvent(viewTag, eventName, eventData)
10+
+ rctEventEmitter.receiveEvent(viewTag, eventName, getEventData())
11+
}
12+
13+
companion object {
File renamed without changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import { View } from 'react-native';
2+
export default View;

example/app/jest.setup.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
import 'react-native-gesture-handler/jestSetup';
22

3+
// Adds missing mock in RN 0.80.0
4+
// https://github.com/facebook/react-native/issues/51993#issuecomment-2970614900
5+
jest.mock(
6+
'react-native/Libraries/Components/RefreshControl/RefreshControl',
7+
() => ({
8+
__esModule: true,
9+
default: require('./__mocks__/RefreshControlMock')
10+
})
11+
);
12+
313
jest.mock('@react-native-async-storage/async-storage', () =>
414
require('@react-native-async-storage/async-storage/jest/async-storage-mock')
515
);

example/app/package.json

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
{
22
"name": "example-app",
33
"dependencies": {
4-
"@fortawesome/fontawesome-svg-core": "^6.5.2",
5-
"@fortawesome/free-solid-svg-icons": "^6.5.2",
6-
"@fortawesome/react-native-fontawesome": "^0.3.2",
7-
"@react-native-async-storage/async-storage": "^1.24.0",
8-
"@react-navigation/bottom-tabs": "^7.3.10",
4+
"@fortawesome/fontawesome-svg-core": "6.5.2",
5+
"@fortawesome/free-solid-svg-icons": "6.5.2",
6+
"@fortawesome/react-native-fontawesome": "0.3.2",
7+
"@react-native-async-storage/async-storage": "2.2.0",
8+
"@react-navigation/bottom-tabs": "7.3.10",
99
"@react-navigation/native": "7.0.14",
1010
"@react-navigation/native-stack": "7.2.0",
11-
"@shopify/flash-list": "patch:@shopify/flash-list@npm%3A1.8.0#~/.yarn/patches/@shopify-flash-list-npm-1.8.0-54e02d8f74.patch",
12-
"react": "19.0.0",
13-
"react-native": "0.79.0",
14-
"react-native-gesture-handler": "2.25.0",
15-
"react-native-haptic-feedback": "^2.3.3",
16-
"react-native-reanimated": "patch:react-native-reanimated@npm%3A3.17.4#~/.yarn/patches/react-native-reanimated-npm-3.17.4-d7caed9b50.patch",
11+
"@shopify/flash-list": "patch:@shopify/flash-list@npm%3A2.0.0-rc.8#~/.yarn/patches/@shopify-flash-list-npm-2.0.0-rc.8-96ca0285c9.patch",
12+
"react": "19.1.0",
13+
"react-native": "0.80.0",
14+
"react-native-gesture-handler": "2.26.0",
15+
"react-native-haptic-feedback": "2.3.3",
16+
"react-native-reanimated": "patch:react-native-reanimated@npm%3A3.18.0#~/.yarn/patches/react-native-reanimated-npm-3.18.0-3e0f9f00d6.patch",
1717
"react-native-safe-area-context": "5.3.0",
18-
"react-native-screens": "4.10.0",
18+
"react-native-screens": "4.11.1",
1919
"react-native-sortables": "workspace:*",
20-
"react-native-svg": "15.11.2"
20+
"react-native-svg": "15.12.0"
2121
},
2222
"devDependencies": {
2323
"@babel/core": "^7.25.2",
2424
"@babel/preset-env": "^7.25.3",
2525
"@babel/runtime": "^7.25.0",
2626
"@gorhom/portal": "^1.0.14",
27-
"@react-native-community/cli": "18.0.0",
28-
"@react-native-community/cli-platform-android": "18.0.0",
29-
"@react-native-community/cli-platform-ios": "18.0.0",
30-
"@react-native/babel-preset": "0.79.0",
31-
"@react-native/metro-config": "0.79.0",
27+
"@react-native-community/cli": "19.0.0",
28+
"@react-native-community/cli-platform-android": "19.0.0",
29+
"@react-native-community/cli-platform-ios": "19.0.0",
30+
"@react-native/babel-preset": "0.80.0",
31+
"@react-native/metro-config": "0.80.0",
3232
"@testing-library/react-hooks": "^8.0.1",
3333
"@testing-library/react-native": "^12.5.1",
34-
"@types/react": "^19.0.0",
35-
"@types/react-test-renderer": "^19.0.0",
34+
"@types/react": "^19.1.0",
35+
"@types/react-test-renderer": "^19.1.0",
3636
"babel-plugin-module-resolver": "^5.0.2",
3737
"eslint": "^9.28.0",
3838
"jest": "^29.7.0",
3939
"lint-staged": "^15.5.0",
4040
"madge": "^8.0.0",
4141
"prettier": "^3.3.2",
42-
"react-test-renderer": "19.0.0",
42+
"react-test-renderer": "19.1.0",
4343
"typescript": "^5.8.3"
4444
},
4545
"lint-staged": {

example/expo/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"name": "example-expo",
33
"version": "1.0.0",
44
"dependencies": {
5-
"expo": "^53.0.0-preview.7",
6-
"expo-status-bar": "~2.2.0",
5+
"expo": "53.0.11",
6+
"expo-status-bar": "~2.2.3",
77
"react": "19.0.0",
8-
"react-native": "0.79.0",
8+
"react-native": "0.79.3",
99
"react-native-gesture-handler": "~2.24.0",
10-
"react-native-reanimated": "~3.17.3"
10+
"react-native-reanimated": "~3.17.4"
1111
},
1212
"devDependencies": {
1313
"@babel/core": "^7.25.2",

example/fabric/android/app/src/main/java/com/example/MainApplication.kt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ import android.app.Application
44
import com.facebook.react.PackageList
55
import com.facebook.react.ReactApplication
66
import com.facebook.react.ReactHost
7+
import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
78
import com.facebook.react.ReactNativeHost
89
import com.facebook.react.ReactPackage
9-
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
1010
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
1111
import com.facebook.react.defaults.DefaultReactNativeHost
12-
import com.facebook.react.soloader.OpenSourceMergedSoMapping
13-
import com.facebook.soloader.SoLoader
1412

1513
class MainApplication : Application(), ReactApplication {
1614

@@ -35,10 +33,6 @@ class MainApplication : Application(), ReactApplication {
3533

3634
override fun onCreate() {
3735
super.onCreate()
38-
SoLoader.init(this, OpenSourceMergedSoMapping)
39-
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
40-
// If you opted-in for the New Architecture, we load the native entry point for this app.
41-
load()
42-
}
36+
loadReactNative(this)
4337
}
4438
}

example/fabric/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
compileSdkVersion = 35
66
targetSdkVersion = 35
77
ndkVersion = "27.1.12297006"
8-
kotlinVersion = "2.0.21"
8+
kotlinVersion = "2.1.20"
99
}
1010
repositories {
1111
google()
59 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)