Skip to content

Commit 157b8fa

Browse files
PHILLIPS71vonovak
andauthored
chore: upgrade example to React 19, Expo 53, and React Native 0.79.5 (#998)
* chore: upgrade to expo v53 * fix: eslint * chore: upgrade @react-native/metro-config to v0.79.5 * chore: package + yarn upgrade * chrore: upgrade react native ios example * chore: remove unnecessary typescript resolution * refactor: pull request suggestions * Update example/android/gradle/wrapper/gradle-wrapper.properties --------- Co-authored-by: Vojtech Novak <[email protected]>
1 parent 53033d2 commit 157b8fa

File tree

13 files changed

+6181
-8473
lines changed

13 files changed

+6181
-8473
lines changed

.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module.exports = {
22
root: true,
3+
parser: 'hermes-eslint',
34
extends: ['@react-native', 'plugin:jest/recommended'],
5+
ignorePatterns: ['**/*.d.ts'],
46
globals: {
57
expect: true,
68
element: true,

.yarn/releases/yarn-4.1.1.cjs

Lines changed: 0 additions & 893 deletions
This file was deleted.

.yarn/releases/yarn-4.9.2.cjs

Lines changed: 942 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
nodeLinker: node-modules
22

3-
yarnPath: .yarn/releases/yarn-4.1.1.cjs
3+
yarnPath: .yarn/releases/yarn-4.9.2.cjs

example/App.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable react-native/no-inline-styles */
12
import {
23
SafeAreaView,
34
ScrollView,
@@ -170,15 +171,15 @@ export const App = () => {
170171

171172
const renderItem = ({item}) => {
172173
const isNumber = typeof item === 'number';
173-
const title = isNumber
174+
const buttonTitle = isNumber
174175
? item > 0
175176
? `+${item} mins`
176177
: `${item} mins`
177178
: item;
178179
return (
179180
<View style={{marginHorizontal: 1}} testID={`${item}`}>
180181
<Button
181-
title={title || 'undefined'}
182+
title={buttonTitle || 'undefined'}
182183
onPress={() => {
183184
setTzOffsetInMinutes(isNumber ? item : undefined);
184185
setTzName(isNumber ? undefined : item);

example/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.8-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)