Skip to content

Commit cac4195

Browse files
authored
chore: update dependencies in lib and example (#4000)
1 parent 16d2c24 commit cac4195

File tree

120 files changed

+14074
-15132
lines changed

Some content is hidden

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

120 files changed

+14074
-15132
lines changed

docs/src/components/DynamicColorTheme.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import Color from 'color';
44
//@ts-ignore
55
import { BlockPicker } from 'react-color';
66

7+
import Switch from './Switch';
78
import {
89
getMatchingColor,
910
getPreviewColors,
1011
hexThemeFromColor,
1112
prepareThemes,
1213
} from '../utils/themes';
13-
import Switch from './Switch';
1414

1515
type ColorProps = {
1616
color?: string;

docs/src/components/PropTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default function PropTable({
6767
}) {
6868
const doc = useDoc(componentLink);
6969

70-
if (!doc || !doc.data || !doc.data.props) {
70+
if (!doc?.data?.props) {
7171
return null;
7272
}
7373

example/android/app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: "com.android.application"
2+
apply plugin: "com.facebook.react"
23

34
import com.android.build.OutputFile
45

example/android/gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,5 @@ expo.webp.enabled=true
5151
# Enable animated webp support (~3.4 MB increase)
5252
# Disabled by default because iOS doesn't support animated webp
5353
expo.webp.animated=false
54+
55+
hermesEnabled=false

example/app.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"slug": "react-native-paper-example",
66
"privacy": "public",
77
"version": "3.9.0",
8-
"entryPoint": "App.js",
98
"orientation": "default",
109
"primaryColor": "#6200EE",
1110
"userInterfaceStyle": "automatic",

example/package.json

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Example for React Native Paper",
55
"author": "",
66
"private": true,
7+
"main": "App.js",
78
"scripts": {
89
"eas-build-pre-install": "cd .. && yarn",
910
"start": "EXPO_NO_TYPESCRIPT_SETUP=1 expo start",
@@ -14,36 +15,39 @@
1415
},
1516
"dependencies": {
1617
"@expo/vector-icons": "^13.0.0",
18+
"@expo/webpack-config": "^18.0.1",
1719
"@pchmn/expo-material3-theme": "^1.0.1",
18-
"@react-native-async-storage/async-storage": "~1.17.10",
20+
"@react-native-async-storage/async-storage": "1.17.11",
1921
"@react-native-masked-view/masked-view": "0.2.8",
2022
"@react-navigation/bottom-tabs": "^6.5.3",
2123
"@react-navigation/drawer": "^6.5.7",
2224
"@react-navigation/native": "^6.1.2",
2325
"@react-navigation/stack": "^6.3.11",
24-
"expo": "^47.0.0",
25-
"expo-dev-client": "~2.0.1",
26-
"expo-font": "~11.0.1",
27-
"expo-keep-awake": "~11.0.1",
28-
"expo-splash-screen": "~0.17.5",
29-
"expo-status-bar": "~1.4.2",
30-
"expo-updates": "~0.15.6",
26+
"expo": "^48.0.0",
27+
"expo-dev-client": "~2.2.1",
28+
"expo-font": "~11.1.1",
29+
"expo-keep-awake": "~12.0.1",
30+
"expo-splash-screen": "~0.18.2",
31+
"expo-status-bar": "~1.4.4",
32+
"expo-updates": "~0.16.4",
3133
"file-loader": "^6.2.0",
32-
"react": "18.1.0",
33-
"react-dom": "18.1.0",
34-
"react-native": "0.70.8",
35-
"react-native-gesture-handler": "~2.8.0",
36-
"react-native-reanimated": "~2.12.0",
37-
"react-native-safe-area-context": "4.4.1",
38-
"react-native-screens": "~3.18.0",
34+
"react": "18.2.0",
35+
"react-dom": "18.2.0",
36+
"react-native": "0.71.6",
37+
"react-native-gesture-handler": "~2.9.0",
38+
"react-native-reanimated": "~2.14.4",
39+
"react-native-safe-area-context": "4.5.0",
40+
"react-native-screens": "~3.20.0",
3941
"react-native-vector-icons": "^9.2.0",
4042
"react-native-web": "~0.18.7",
4143
"typeface-roboto": "^1.1.13"
4244
},
4345
"devDependencies": {
4446
"@babel/core": "^7.12.9",
4547
"babel-plugin-module-resolver": "^5.0.0",
46-
"babel-preset-expo": "~9.2.1",
47-
"expo-cli": "^6.1.0"
48+
"babel-preset-expo": "^9.3.0"
49+
},
50+
"resolutions": {
51+
"expo/expo-asset": "8.9.1"
4852
}
4953
}

example/src/ExampleList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ type Props = {
123123

124124
type Item = {
125125
id: string;
126-
data: typeof mainExamples[string];
126+
data: (typeof mainExamples)[string];
127127
};
128128

129129
const data = Object.keys(mainExamples).map(

example/src/Examples/AnimatedFABExample/AnimatedFABExample.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ import {
1111
} from 'react-native-paper';
1212
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
1313

14-
import { useExampleTheme } from '../..';
15-
import { animatedFABExampleData } from '../../../utils';
1614
import CustomFAB from './CustomFAB';
1715
import CustomFABControls, {
1816
Controls,
1917
initialControls,
2018
} from './CustomFABControls';
19+
import { useExampleTheme } from '../..';
20+
import { animatedFABExampleData } from '../../../utils';
2121

2222
type Item = {
2323
id: string;

example/src/Examples/AnimatedFABExample/CustomFABControls.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const CustomControl = ({
4343
const { isV3 } = useExampleTheme();
4444

4545
const _renderItem = React.useCallback(
46-
({ item }: ListRenderItemInfo<typeof options[number]>) => {
46+
({ item }: ListRenderItemInfo<(typeof options)[number]>) => {
4747
const TextComponent = isV3 ? Text : Paragraph;
4848

4949
return (
@@ -65,7 +65,7 @@ const CustomControl = ({
6565
);
6666

6767
const _keyExtractor = React.useCallback(
68-
(item: typeof options[number]) => item,
68+
(item: (typeof options)[number]) => item,
6969
[]
7070
);
7171
const TextComponent = isV3 ? Text : Paragraph;

example/src/Examples/DialogExample.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ import { Platform, StyleSheet } from 'react-native';
33

44
import { Button } from 'react-native-paper';
55

6-
import { useExampleTheme } from '..';
7-
import ScreenWrapper from '../ScreenWrapper';
86
import {
97
DialogWithCustomColors,
108
DialogWithDismissableBackButton,
@@ -14,6 +12,8 @@ import {
1412
DialogWithRadioBtns,
1513
UndismissableDialog,
1614
} from './Dialogs';
15+
import { useExampleTheme } from '..';
16+
import ScreenWrapper from '../ScreenWrapper';
1717

1818
type ButtonVisibility = {
1919
[key: string]: boolean | undefined;

0 commit comments

Comments
 (0)