Skip to content

Commit fb67e6a

Browse files
committed
Update reproducer to latest React Native version
1 parent 6453620 commit fb67e6a

File tree

8 files changed

+242
-262
lines changed

8 files changed

+242
-262
lines changed

ReproducerApp/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ local.properties
3333
.cxx/
3434
*.keystore
3535
!debug.keystore
36+
.kotlin/
3637

3738
# node.js
3839
#

ReproducerApp/App.tsx

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import React from 'react';
99
import type {PropsWithChildren} from 'react';
1010
import {
11-
SafeAreaView,
1211
ScrollView,
1312
StatusBar,
1413
StyleSheet,
@@ -62,19 +61,33 @@ function App(): React.JSX.Element {
6261
backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
6362
};
6463

64+
/*
65+
* To keep the template simple and small we're adding padding to prevent view
66+
* from rendering under the System UI.
67+
* For bigger apps the reccomendation is to use `react-native-safe-area-context`:
68+
* https://github.com/AppAndFlow/react-native-safe-area-context
69+
*
70+
* You can read more about it here:
71+
* https://github.com/react-native-community/discussions-and-proposals/discussions/827
72+
*/
73+
const safePadding = '5%';
74+
6575
return (
66-
<SafeAreaView style={backgroundStyle}>
76+
<View style={backgroundStyle}>
6777
<StatusBar
6878
barStyle={isDarkMode ? 'light-content' : 'dark-content'}
6979
backgroundColor={backgroundStyle.backgroundColor}
7080
/>
7181
<ScrollView
72-
contentInsetAdjustmentBehavior="automatic"
7382
style={backgroundStyle}>
74-
<Header />
83+
<View style={{paddingRight: safePadding}}>
84+
<Header/>
85+
</View>
7586
<View
7687
style={{
7788
backgroundColor: isDarkMode ? Colors.black : Colors.white,
89+
paddingHorizontal: safePadding,
90+
paddingBottom: safePadding,
7891
}}>
7992
<Section title="Step One">
8093
Edit <Text style={styles.highlight}>App.tsx</Text> to change this
@@ -92,7 +105,7 @@ function App(): React.JSX.Element {
92105
<LearnMoreLinks />
93106
</View>
94107
</ScrollView>
95-
</SafeAreaView>
108+
</View>
96109
);
97110
}
98111

ReproducerApp/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ def enableProguardInReleaseBuilds = false
6363
* The preferred build flavor of JavaScriptCore (JSC)
6464
*
6565
* For example, to use the international variant, you can use:
66-
* `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
66+
* `def jscFlavor = io.github.react-native-community:jsc-android-intl:2026004.+`
6767
*
6868
* The international variant includes ICU i18n library and necessary data
6969
* allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
7070
* give correct results when using with locales other than en-US. Note that
7171
* this variant is about 6MiB larger per architecture than default.
7272
*/
73-
def jscFlavor = 'org.webkit:android-jsc:+'
73+
def jscFlavor = 'io.github.react-native-community:jsc-android:2026004.+'
7474

7575
android {
7676
ndkVersion rootProject.ext.ndkVersion

ReproducerApp/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ buildscript {
33
buildToolsVersion = "35.0.0"
44
minSdkVersion = 24
55
compileSdkVersion = 35
6-
targetSdkVersion = 34
6+
targetSdkVersion = 35
77
ndkVersion = "27.1.12297006"
88
kotlinVersion = "2.0.21"
99
}

ReproducerApp/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-all.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

ReproducerApp/android/gradlew

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ done
8686
# shellcheck disable=SC2034
8787
APP_BASE_NAME=${0##*/}
8888
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89-
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90-
' "$PWD" ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
9190

9291
# Use the maximum available, or set MAX_FD != -1 to use that value.
9392
MAX_FD=maximum

ReproducerApp/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"test": "jest"
1111
},
1212
"dependencies": {
13-
"react": "18.3.1",
14-
"react-native": "0.77.1"
13+
"react": "19.0.0",
14+
"react-native": "0.78.0"
1515
},
1616
"devDependencies": {
1717
"@babel/core": "^7.25.2",
@@ -20,17 +20,17 @@
2020
"@react-native-community/cli": "15.0.1",
2121
"@react-native-community/cli-platform-android": "15.0.1",
2222
"@react-native-community/cli-platform-ios": "15.0.1",
23-
"@react-native/babel-preset": "0.77.1",
24-
"@react-native/eslint-config": "0.77.1",
25-
"@react-native/metro-config": "0.77.1",
26-
"@react-native/typescript-config": "0.77.1",
23+
"@react-native/babel-preset": "0.78.0",
24+
"@react-native/eslint-config": "0.78.0",
25+
"@react-native/metro-config": "0.78.0",
26+
"@react-native/typescript-config": "0.78.0",
2727
"@types/jest": "^29.5.13",
28-
"@types/react": "^18.2.6",
29-
"@types/react-test-renderer": "^18.0.0",
28+
"@types/react": "^19.0.0",
29+
"@types/react-test-renderer": "^19.0.0",
3030
"eslint": "^8.19.0",
3131
"jest": "^29.6.3",
3232
"prettier": "2.8.8",
33-
"react-test-renderer": "18.3.1",
33+
"react-test-renderer": "19.0.0",
3434
"typescript": "5.0.4"
3535
},
3636
"engines": {

0 commit comments

Comments
 (0)