Skip to content

Commit eed1c11

Browse files
committed
Approach working upgrade.
1 parent 878b609 commit eed1c11

File tree

51 files changed

+1651
-4301
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1651
-4301
lines changed

jest.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ jest.mock('react-native/Libraries/Linking/Linking', () => ({
1515
openURL: jest.fn()
1616
}))
1717

18-
jest.mock('sentry-expo', () => {
18+
jest.mock('@sentry/react-native', () => {
1919
return {
20-
Native: {
21-
captureException: jest.fn()
22-
}
20+
captureException: jest.fn()
2321
}
2422
})
2523

package-lock.json

Lines changed: 1507 additions & 4159 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
"license": "MIT",
1818
"devDependencies": {
1919
"@types/jest": "^29.5.4",
20-
"@types/react": "~18.3.12",
21-
"@types/react-test-renderer": "^18.0.0",
20+
"@types/react": "~19.0.10",
2221
"@typescript-eslint/eslint-plugin": "^6.4.1",
2322
"del-cli": "^5.0.0",
2423
"eslint": "^8.47.0",
@@ -30,13 +29,12 @@
3029
"eslint-plugin-react": "^7.33.2",
3130
"expo-doctor": "^1.1.2",
3231
"jest": "^29.4.0",
33-
"jest-expo": "~52.0.3",
32+
"jest-expo": "~53.0.7",
3433
"metro-react-native-babel-preset": "0.67.0",
3534
"npm-run-all": "^4.1.5",
36-
"react": "18.3.1",
37-
"react-native": "0.76.6",
38-
"react-test-renderer": "18.2.0",
39-
"typescript": "~5.3.3"
35+
"react": "19.0.0",
36+
"react-native": "0.79.3",
37+
"typescript": "~5.8.3"
4038
},
4139
"peerDependencies": {
4240
"react": "*",
@@ -58,18 +56,20 @@
5856
"types": "index.d.ts",
5957
"sideEffects": false,
6058
"dependencies": {
59+
"@sentry/react-native": "6.14.0",
60+
"@types/react-test-renderer": "^19.1.0",
6161
"events": "3.3.0",
62-
"expo": "^52.0.27",
63-
"expo-constants": "~17.0.4",
64-
"expo-crypto": "~14.0.2",
65-
"expo-file-system": "~18.0.7",
66-
"expo-image-picker": "~16.0.4",
67-
"expo-intent-launcher": "~12.0.2",
68-
"expo-media-library": "~17.0.5",
69-
"expo-secure-store": "~14.0.1",
62+
"expo": "^53.0.11",
63+
"expo-constants": "~17.1.6",
64+
"expo-crypto": "~14.1.5",
65+
"expo-file-system": "~18.1.10",
66+
"expo-image-picker": "~16.1.4",
67+
"expo-intent-launcher": "~12.1.5",
68+
"expo-media-library": "~17.1.7",
69+
"expo-secure-store": "~14.2.3",
7070
"filter-validate-email": "^1.1.3",
71-
"react-native-gesture-handler": "~2.20.2",
72-
"react-native-safe-area-context": "4.12.0",
73-
"sentry-expo": "~7.0.0"
71+
"react-native-gesture-handler": "~2.24.0",
72+
"react-native-safe-area-context": "5.4.0",
73+
"react-test-renderer": "19.0.x"
7474
}
7575
}

react-native/components/createCreatableSelectComponent/createCreatableSelectChildrenComponent/unit.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1873,9 +1873,9 @@ test('accepts button presses within the flat list', () => {
18731873
unhighlight: stub,
18741874
updateProps: stub
18751875
}
1876-
})
1876+
});
18771877

1878-
unselectedItem?.props.onPress()
1878+
(unselectedItem as { readonly props: { onPress: () => void } }).props.onPress()
18791879

18801880
renderer.unmount()
18811881
expect(onChange).toHaveBeenCalledTimes(1)

react-native/components/createFileStoreManagerComponent/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,22 @@ export const createFileStoreManagerComponent = (
2222
/**
2323
* A React element to display when nothing is to be loaded.
2424
*/
25-
readonly unloaded: null | JSX.Element
25+
readonly unloaded: null | React.JSX.Element
2626

2727
/**
2828
* A React element to display when loading is in progress.
2929
*/
30-
readonly loading: null | JSX.Element
30+
readonly loading: null | React.JSX.Element
3131

3232
/**
3333
* A React element to display when loading has completed.
3434
*/
35-
readonly ready: null | JSX.Element
35+
readonly ready: null | React.JSX.Element
3636

3737
/**
3838
* A React element to display when unloading is in progress.
3939
*/
40-
readonly unloading: null | JSX.Element
40+
readonly unloading: null | React.JSX.Element
4141
}> => {
4242
return ({ subdirectoryName, unloaded, loading, ready, unloading }) => {
4343
const state = React.useRef<

react-native/components/createFullHeightPopoverComponent/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type Instance = React.FunctionComponent<{
4141
* @param close Invoke to close the pop-over.
4242
* @returns The contents of the pop-over.
4343
*/
44-
children: (close: () => void) => null | JSX.Element
44+
children: (close: () => void) => null | React.JSX.Element
4545
}>
4646

4747
/**

react-native/components/createHorizontalSplitButtonComponent/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ export const createHorizontalSplitButtonComponent = <
253253
width: 'fitsContent' | 'fillsContainer',
254254
distribution: 'even' | 'proportional',
255255
allButtonValues: readonly TValue[]
256-
) => JSX.Element;
256+
) => React.JSX.Element;
257257
} = {}
258258

259259
for (const typeKey in splitButtonStyle.types) {
@@ -938,7 +938,7 @@ export const createHorizontalSplitButtonComponent = <
938938
width: 'fitsContent' | 'fillsContainer',
939939
distribution: 'even' | 'proportional',
940940
allButtonValues: readonly TValue[]
941-
) => JSX.Element;
941+
) => React.JSX.Element;
942942
} = partialButtonFactories as {
943943
[TTypeItem in TType]: (
944944
value: readonly TValue[],
@@ -950,7 +950,7 @@ export const createHorizontalSplitButtonComponent = <
950950
width: 'fitsContent' | 'fillsContainer',
951951
distribution: 'even' | 'proportional',
952952
allButtonValues: readonly TValue[]
953-
) => JSX.Element;
953+
) => React.JSX.Element;
954954
}
955955

956956
const SplitButton: Instance<TValue> & {
@@ -965,7 +965,7 @@ export const createHorizontalSplitButtonComponent = <
965965
return (
966966
<View style={styles.view}>
967967
{childrenArray
968-
.filter((element): element is JSX.Element => element !== null)
968+
.filter((element): element is React.JSX.Element => element !== null)
969969
.map((element, i) => {
970970
if (typeof element === 'object' && 'type' in element) {
971971
for (const typeKey in segments) {

react-native/components/createInputComponent/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ type Instance<TValue, TContext> = React.FunctionComponent<{
1212
/**
1313
* The icon to show on the left side, if any, else, null.
1414
*/
15-
readonly leftIcon: null | React.ReactNode | JSX.Element
15+
readonly leftIcon: null | React.ReactNode | React.JSX.Element
1616

1717
/**
1818
* The icon to show on the right side, if any, else, null.
1919
*/
20-
readonly rightIcon: null | React.ReactNode | JSX.Element
20+
readonly rightIcon: null | React.ReactNode | React.JSX.Element
2121

2222
/**
2323
* The value to edit. When undefined, it is treated as an invalid empty

react-native/components/createMigratorManagerComponent/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ export const createMigratorManagerComponent = <T extends Readonly<Record<string
2828
/**
2929
* The JSX to display while the state is migrated.
3030
*/
31-
readonly migrating: JSX.Element
31+
readonly migrating: React.JSX.Element
3232

3333
/**
3434
* The JSX to display once the state is migrated.
3535
*/
36-
readonly ready: JSX.Element
36+
readonly ready: React.JSX.Element
3737
}> => {
3838
return ({ state, setState, migrating, ready }) => {
3939
const executionRequired = migrator.executionRequired(state)

react-native/components/createNullableEmailInputComponent/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import type { NullableEmailInputProps } from '../../types/NullableEmailInputProp
1717
*/
1818
export const createNullableEmailInputComponent = (
1919
controlStyle: ControlStyle,
20-
leftIcon: null | React.ReactNode | JSX.Element,
21-
rightIcon: null | React.ReactNode | JSX.Element,
20+
leftIcon: null | React.ReactNode | React.JSX.Element,
21+
rightIcon: null | React.ReactNode | React.JSX.Element,
2222
minimumLength: null | number,
2323
maximumLength: null | number
2424
): React.FunctionComponent<NullableEmailInputProps> => {

0 commit comments

Comments
 (0)