Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Update react native paper dependency to latest (#12740)

Calinteodorc76439799453
diff --git a/package-lock.json b/package-lock.json
index 3fc52c4d91..82a9484e9b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -102,7 +102,7 @@
"react-native-keep-awake": "4.0.0",
"react-native-orientation-locker": "1.5.0",
"react-native-pager-view": "5.4.9",
- "react-native-paper": "4.11.1",
+ "react-native-paper": "5.1.2",
"react-native-performance": "2.1.0",
"react-native-safe-area-context": "3.3.2",
"react-native-screens": "3.13.1",
@@ -2928,9 +2928,9 @@
}
},
"node_modules/@callstack/react-theme-provider": {
- "version": "3.0.7",
- "resolved": "https://registry.npmjs.org/@callstack/react-theme-provider/-/react-theme-provider-3.0.7.tgz",
- "integrity": "sha512-Ab6rbD2w4u9W3yf7LQQ8evx9m8fZNsoWxt+MFm3AyZnyKQNCJf4K7ip9tHHZgSs+HTdoj38lEqPehvFOVQKvAg==",
+ "version": "3.0.8",
+ "resolved": "https://registry.npmjs.org/@callstack/react-theme-provider/-/react-theme-provider-3.0.8.tgz",
+ "integrity": "sha512-5U231sYY2sqQOaELX0WBCn+iluV8bFaXIS7em03k4W5Xz0AhGvKlnpLIhDGFP8im/SvNW7/2XoR0BsClhn9t6Q==",
"dependencies": {
"deepmerge": "^3.2.0",
"hoist-non-react-statics": "^3.3.0"
@@ -16281,14 +16281,6 @@
"react-native": ">=0.47.0"
}
},
- "node_modules/react-native-iphone-x-helper": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/react-native-iphone-x-helper/-/react-native-iphone-x-helper-1.3.1.tgz",
- "integrity": "sha512-HOf0jzRnq2/aFUcdCJ9w9JGzN3gdEg0zFE4FyYlp4jtidqU03D5X7ZegGKfT1EWteR0gPBGp9ye5T5FvSWi9Yg==",
- "peerDependencies": {
- "react-native": ">=0.42.0"
- }
- },
"node_modules/react-native-keep-awake": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/react-native-keep-awake/-/react-native-keep-awake-4.0.0.tgz",
@@ -16314,17 +16306,18 @@
}
},
"node_modules/react-native-paper": {
- "version": "4.11.1",
- "resolved": "https://registry.npmjs.org/react-native-paper/-/react-native-paper-4.11.1.tgz",
- "integrity": "sha512-mAQ74KUrOIcMEg1crrIsA7eXDaPk/fjvKFDLcN7gBBeV/zhhQiqc+/y6t+8STKsZutRA2U5/eB+0MBisybokmQ==",
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/react-native-paper/-/react-native-paper-5.1.2.tgz",
+ "integrity": "sha512-muf70CPtji6gTukV+9ecvzOYFOflK2hi4t4GLt9y4Ynhf/YQCvXsefPTp45n7RS6bz9+ueG4jtuGg64oOY8dxA==",
"dependencies": {
- "@callstack/react-theme-provider": "^3.0.7",
+ "@callstack/react-theme-provider": "^3.0.8",
"color": "^3.1.2",
- "react-native-iphone-x-helper": "^1.3.1"
+ "use-event-callback": "^0.1.0"
},
"peerDependencies": {
"react": "*",
"react-native": "*",
+ "react-native-safe-area-context": "*",
"react-native-vector-icons": "*"
}
},
@@ -19366,6 +19359,14 @@
"react": "^16.8.0 || ^17.0.0"
}
},
+ "node_modules/use-event-callback": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/use-event-callback/-/use-event-callback-0.1.0.tgz",
+ "integrity": "sha512-5fTzY5UEXHMK5UR0NRkUz6TPfWmmX9fO8Tx3SnHrfMPdrQ7Rna0gDBy0r56SP68TwsP9DgwSBzeysCu3A/Z2NA==",
+ "peerDependencies": {
+ "react": ">=16.8"
+ }
+ },
"node_modules/use-isomorphic-layout-effect": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.1.tgz",
@@ -22492,9 +22493,9 @@
}
},
"@callstack/react-theme-provider": {
- "version": "3.0.7",
- "resolved": "https://registry.npmjs.org/@callstack/react-theme-provider/-/react-theme-provider-3.0.7.tgz",
- "integrity": "sha512-Ab6rbD2w4u9W3yf7LQQ8evx9m8fZNsoWxt+MFm3AyZnyKQNCJf4K7ip9tHHZgSs+HTdoj38lEqPehvFOVQKvAg==",
+ "version": "3.0.8",
+ "resolved": "https://registry.npmjs.org/@callstack/react-theme-provider/-/react-theme-provider-3.0.8.tgz",
+ "integrity": "sha512-5U231sYY2sqQOaELX0WBCn+iluV8bFaXIS7em03k4W5Xz0AhGvKlnpLIhDGFP8im/SvNW7/2XoR0BsClhn9t6Q==",
"requires": {
"deepmerge": "^3.2.0",
"hoist-non-react-statics": "^3.3.0"
@@ -32638,11 +32639,6 @@
"resolved": "https://registry.npmjs.org/react-native-immersive/-/react-native-immersive-2.0.0.tgz",
"integrity": "sha512-9TL05nTHN/x9sN1wbUlBoGyzH4NCuZ/7WEEUp5CvOoKuUABvdYosov0O0SAMbm/5J913RRoy98VB6tGNi9lRSw=="
},
- "react-native-iphone-x-helper": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/react-native-iphone-x-helper/-/react-native-iphone-x-helper-1.3.1.tgz",
- "integrity": "sha512-HOf0jzRnq2/aFUcdCJ9w9JGzN3gdEg0zFE4FyYlp4jtidqU03D5X7ZegGKfT1EWteR0gPBGp9ye5T5FvSWi9Yg=="
- },
"react-native-keep-awake": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/react-native-keep-awake/-/react-native-keep-awake-4.0.0.tgz",
@@ -32659,13 +32655,13 @@
"integrity": "sha512-D6tzxpwMGdl6CXgtskGWhKRc5cJakCazESRGt7PkqnpyiH3N35ft1KmR82pCSQetAFlytFiToeu3a/dG5CELvA=="
},
"react-native-paper": {
- "version": "4.11.1",
- "resolved": "https://registry.npmjs.org/react-native-paper/-/react-native-paper-4.11.1.tgz",
- "integrity": "sha512-mAQ74KUrOIcMEg1crrIsA7eXDaPk/fjvKFDLcN7gBBeV/zhhQiqc+/y6t+8STKsZutRA2U5/eB+0MBisybokmQ==",
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/react-native-paper/-/react-native-paper-5.1.2.tgz",
+ "integrity": "sha512-muf70CPtji6gTukV+9ecvzOYFOflK2hi4t4GLt9y4Ynhf/YQCvXsefPTp45n7RS6bz9+ueG4jtuGg64oOY8dxA==",
"requires": {
- "@callstack/react-theme-provider": "^3.0.7",
+ "@callstack/react-theme-provider": "^3.0.8",
"color": "^3.1.2",
- "react-native-iphone-x-helper": "^1.3.1"
+ "use-event-callback": "^0.1.0"
}
},
"react-native-performance": {
@@ -34949,6 +34945,11 @@
"resolved": "https://registry.npmjs.org/use-composed-ref/-/use-composed-ref-1.2.1.tgz",
"integrity": "sha512-6+X1FLlIcjvFMAeAD/hcxDT8tmyrWnbSPMU0EnxQuDLIxokuFzWliXBiYZuGIx+mrAMLBw0WFfCkaPw8ebzAhw=="
},
+ "use-event-callback": {
+ "version": "0.1.0",
+ "resolved": "https://registry.npmjs.org/use-event-callback/-/use-event-callback-0.1.0.tgz",
+ "integrity": "sha512-5fTzY5UEXHMK5UR0NRkUz6TPfWmmX9fO8Tx3SnHrfMPdrQ7Rna0gDBy0r56SP68TwsP9DgwSBzeysCu3A/Z2NA=="
+ },
"use-isomorphic-layout-effect": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.1.tgz",
diff --git a/package.json b/package.json
index b521efc211..229911ae27 100644
--- a/package.json
+++ b/package.json
@@ -107,7 +107,7 @@
"react-native-keep-awake": "4.0.0",
"react-native-orientation-locker": "1.5.0",
"react-native-pager-view": "5.4.9",
- "react-native-paper": "4.11.1",
+ "react-native-paper": "5.1.2",
"react-native-performance": "2.1.0",
"react-native-safe-area-context": "3.3.2",
"react-native-screens": "3.13.1",
diff --git a/react/features/base/ui/components/native/Button.tsx b/react/features/base/ui/components/native/Button.tsx
index a48bb6e538..07515cb366 100644
--- a/react/features/base/ui/components/native/Button.tsx
+++ b/react/features/base/ui/components/native/Button.tsx
@@ -90,8 +90,8 @@ const Button: React.FC<IProps> = ({
return (
<NativePaperButton
accessibilityLabel = { t(accessibilityLabel ?? '') }
+ buttonColor = { color }
children = { t(labelKey ?? '') }
- color = { color }
contentStyle = { [
styles.buttonContent,
contentStyle
diff --git a/react/features/settings/components/native/SettingsView.tsx b/react/features/settings/components/native/SettingsView.tsx
index dfdade92a1..b56531dcf1 100644
--- a/react/features/settings/components/native/SettingsView.tsx
+++ b/react/features/settings/components/native/SettingsView.tsx
@@ -315,6 +315,7 @@ class SettingsView extends Component<IProps, IState> {
placeholder = { t('settingsView.displayNamePlaceholderText') }
textContentType = { 'name' } // iOS only
value = { displayName } />
+ {/* @ts-ignore */}
<Divider style = { styles.fieldSeparator } />
<Input
// @ts-ignore
@@ -341,6 +342,7 @@ class SettingsView extends Component<IProps, IState> {
placeholder = { this.props._serverURL }
textContentType = { 'URL' } // iOS only
value = { serverURL } />
+ {/* @ts-ignore */}
<Divider style = { styles.fieldSeparator } />
<FormRow label = 'settingsView.startCarModeInLowBandwidthMode'>
<Switch
@@ -348,6 +350,7 @@ class SettingsView extends Component<IProps, IState> {
// @ts-ignore
onChange = { this._onStartCarmodeInLowBandwidthMode } />
</FormRow>
+ {/* @ts-ignore */}
<Divider style = { styles.fieldSeparator } />
<FormRow
label = 'settingsView.startWithAudioMuted'>
@@ -356,6 +359,7 @@ class SettingsView extends Component<IProps, IState> {
// @ts-ignore
onChange = { this._onStartAudioMutedChange } />
</FormRow>
+ {/* @ts-ignore */}
<Divider style = { styles.fieldSeparator } />
<FormRow label = 'settingsView.startWithVideoMuted'>
<Switch
@@ -363,6 +367,7 @@ class SettingsView extends Component<IProps, IState> {
// @ts-ignore
onChange = { this._onStartVideoMutedChange } />
</FormRow>
+ {/* @ts-ignore */}
<Divider style = { styles.fieldSeparator } />
<FormRow label = 'videothumbnail.hideSelfView'>
<Switch
@@ -378,12 +383,14 @@ class SettingsView extends Component<IProps, IState> {
labelKey = 'settingsView.help'
onClick = { this._onShowHelpPressed }
type = { BUTTON_TYPES.TERTIARY } />
+ {/* @ts-ignore */}
<Divider style = { styles.fieldSeparator } />
<Button
accessibilityLabel = 'settingsView.terms'
labelKey = 'settingsView.terms'
onClick = { this._onShowTermsPressed }
type = { BUTTON_TYPES.TERTIARY } />
+ {/* @ts-ignore */}
<Divider style = { styles.fieldSeparator } />
<Button
accessibilityLabel = 'settingsView.privacy'
@@ -411,6 +418,7 @@ class SettingsView extends Component<IProps, IState> {
// @ts-ignore
onChange = { this._onDisableCallIntegration } />
</FormRow>
+ {/* @ts-ignore */}
<Divider style = { styles.fieldSeparator } />
</>
)}
@@ -421,6 +429,7 @@ class SettingsView extends Component<IProps, IState> {
// @ts-ignore
onChange = { this._onDisableP2P } />
</FormRow>
+ {/* @ts-ignore */}
<Divider style = { styles.fieldSeparator } />
{AppInfo.GOOGLE_SERVICES_ENABLED && (
<FormRow