Update react native paper dependency to latest (#12740)
* Update react-native-paper to latest
This commit is contained in:
parent
0ad7b3db55
commit
c764397994
|
@ -102,7 +102,7 @@
|
||||||
"react-native-keep-awake": "4.0.0",
|
"react-native-keep-awake": "4.0.0",
|
||||||
"react-native-orientation-locker": "1.5.0",
|
"react-native-orientation-locker": "1.5.0",
|
||||||
"react-native-pager-view": "5.4.9",
|
"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-performance": "2.1.0",
|
||||||
"react-native-safe-area-context": "3.3.2",
|
"react-native-safe-area-context": "3.3.2",
|
||||||
"react-native-screens": "3.13.1",
|
"react-native-screens": "3.13.1",
|
||||||
|
@ -2928,9 +2928,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@callstack/react-theme-provider": {
|
"node_modules/@callstack/react-theme-provider": {
|
||||||
"version": "3.0.7",
|
"version": "3.0.8",
|
||||||
"resolved": "https://registry.npmjs.org/@callstack/react-theme-provider/-/react-theme-provider-3.0.7.tgz",
|
"resolved": "https://registry.npmjs.org/@callstack/react-theme-provider/-/react-theme-provider-3.0.8.tgz",
|
||||||
"integrity": "sha512-Ab6rbD2w4u9W3yf7LQQ8evx9m8fZNsoWxt+MFm3AyZnyKQNCJf4K7ip9tHHZgSs+HTdoj38lEqPehvFOVQKvAg==",
|
"integrity": "sha512-5U231sYY2sqQOaELX0WBCn+iluV8bFaXIS7em03k4W5Xz0AhGvKlnpLIhDGFP8im/SvNW7/2XoR0BsClhn9t6Q==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"deepmerge": "^3.2.0",
|
"deepmerge": "^3.2.0",
|
||||||
"hoist-non-react-statics": "^3.3.0"
|
"hoist-non-react-statics": "^3.3.0"
|
||||||
|
@ -16281,14 +16281,6 @@
|
||||||
"react-native": ">=0.47.0"
|
"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": {
|
"node_modules/react-native-keep-awake": {
|
||||||
"version": "4.0.0",
|
"version": "4.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/react-native-keep-awake/-/react-native-keep-awake-4.0.0.tgz",
|
"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": {
|
"node_modules/react-native-paper": {
|
||||||
"version": "4.11.1",
|
"version": "5.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/react-native-paper/-/react-native-paper-4.11.1.tgz",
|
"resolved": "https://registry.npmjs.org/react-native-paper/-/react-native-paper-5.1.2.tgz",
|
||||||
"integrity": "sha512-mAQ74KUrOIcMEg1crrIsA7eXDaPk/fjvKFDLcN7gBBeV/zhhQiqc+/y6t+8STKsZutRA2U5/eB+0MBisybokmQ==",
|
"integrity": "sha512-muf70CPtji6gTukV+9ecvzOYFOflK2hi4t4GLt9y4Ynhf/YQCvXsefPTp45n7RS6bz9+ueG4jtuGg64oOY8dxA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@callstack/react-theme-provider": "^3.0.7",
|
"@callstack/react-theme-provider": "^3.0.8",
|
||||||
"color": "^3.1.2",
|
"color": "^3.1.2",
|
||||||
"react-native-iphone-x-helper": "^1.3.1"
|
"use-event-callback": "^0.1.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "*",
|
"react": "*",
|
||||||
"react-native": "*",
|
"react-native": "*",
|
||||||
|
"react-native-safe-area-context": "*",
|
||||||
"react-native-vector-icons": "*"
|
"react-native-vector-icons": "*"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -19366,6 +19359,14 @@
|
||||||
"react": "^16.8.0 || ^17.0.0"
|
"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": {
|
"node_modules/use-isomorphic-layout-effect": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.1.tgz",
|
"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": {
|
"@callstack/react-theme-provider": {
|
||||||
"version": "3.0.7",
|
"version": "3.0.8",
|
||||||
"resolved": "https://registry.npmjs.org/@callstack/react-theme-provider/-/react-theme-provider-3.0.7.tgz",
|
"resolved": "https://registry.npmjs.org/@callstack/react-theme-provider/-/react-theme-provider-3.0.8.tgz",
|
||||||
"integrity": "sha512-Ab6rbD2w4u9W3yf7LQQ8evx9m8fZNsoWxt+MFm3AyZnyKQNCJf4K7ip9tHHZgSs+HTdoj38lEqPehvFOVQKvAg==",
|
"integrity": "sha512-5U231sYY2sqQOaELX0WBCn+iluV8bFaXIS7em03k4W5Xz0AhGvKlnpLIhDGFP8im/SvNW7/2XoR0BsClhn9t6Q==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"deepmerge": "^3.2.0",
|
"deepmerge": "^3.2.0",
|
||||||
"hoist-non-react-statics": "^3.3.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",
|
"resolved": "https://registry.npmjs.org/react-native-immersive/-/react-native-immersive-2.0.0.tgz",
|
||||||
"integrity": "sha512-9TL05nTHN/x9sN1wbUlBoGyzH4NCuZ/7WEEUp5CvOoKuUABvdYosov0O0SAMbm/5J913RRoy98VB6tGNi9lRSw=="
|
"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": {
|
"react-native-keep-awake": {
|
||||||
"version": "4.0.0",
|
"version": "4.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/react-native-keep-awake/-/react-native-keep-awake-4.0.0.tgz",
|
"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=="
|
"integrity": "sha512-D6tzxpwMGdl6CXgtskGWhKRc5cJakCazESRGt7PkqnpyiH3N35ft1KmR82pCSQetAFlytFiToeu3a/dG5CELvA=="
|
||||||
},
|
},
|
||||||
"react-native-paper": {
|
"react-native-paper": {
|
||||||
"version": "4.11.1",
|
"version": "5.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/react-native-paper/-/react-native-paper-4.11.1.tgz",
|
"resolved": "https://registry.npmjs.org/react-native-paper/-/react-native-paper-5.1.2.tgz",
|
||||||
"integrity": "sha512-mAQ74KUrOIcMEg1crrIsA7eXDaPk/fjvKFDLcN7gBBeV/zhhQiqc+/y6t+8STKsZutRA2U5/eB+0MBisybokmQ==",
|
"integrity": "sha512-muf70CPtji6gTukV+9ecvzOYFOflK2hi4t4GLt9y4Ynhf/YQCvXsefPTp45n7RS6bz9+ueG4jtuGg64oOY8dxA==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@callstack/react-theme-provider": "^3.0.7",
|
"@callstack/react-theme-provider": "^3.0.8",
|
||||||
"color": "^3.1.2",
|
"color": "^3.1.2",
|
||||||
"react-native-iphone-x-helper": "^1.3.1"
|
"use-event-callback": "^0.1.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"react-native-performance": {
|
"react-native-performance": {
|
||||||
|
@ -34949,6 +34945,11 @@
|
||||||
"resolved": "https://registry.npmjs.org/use-composed-ref/-/use-composed-ref-1.2.1.tgz",
|
"resolved": "https://registry.npmjs.org/use-composed-ref/-/use-composed-ref-1.2.1.tgz",
|
||||||
"integrity": "sha512-6+X1FLlIcjvFMAeAD/hcxDT8tmyrWnbSPMU0EnxQuDLIxokuFzWliXBiYZuGIx+mrAMLBw0WFfCkaPw8ebzAhw=="
|
"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": {
|
"use-isomorphic-layout-effect": {
|
||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/use-isomorphic-layout-effect/-/use-isomorphic-layout-effect-1.1.1.tgz",
|
||||||
|
|
|
@ -107,7 +107,7 @@
|
||||||
"react-native-keep-awake": "4.0.0",
|
"react-native-keep-awake": "4.0.0",
|
||||||
"react-native-orientation-locker": "1.5.0",
|
"react-native-orientation-locker": "1.5.0",
|
||||||
"react-native-pager-view": "5.4.9",
|
"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-performance": "2.1.0",
|
||||||
"react-native-safe-area-context": "3.3.2",
|
"react-native-safe-area-context": "3.3.2",
|
||||||
"react-native-screens": "3.13.1",
|
"react-native-screens": "3.13.1",
|
||||||
|
|
|
@ -90,8 +90,8 @@ const Button: React.FC<IProps> = ({
|
||||||
return (
|
return (
|
||||||
<NativePaperButton
|
<NativePaperButton
|
||||||
accessibilityLabel = { t(accessibilityLabel ?? '') }
|
accessibilityLabel = { t(accessibilityLabel ?? '') }
|
||||||
|
buttonColor = { color }
|
||||||
children = { t(labelKey ?? '') }
|
children = { t(labelKey ?? '') }
|
||||||
color = { color }
|
|
||||||
contentStyle = { [
|
contentStyle = { [
|
||||||
styles.buttonContent,
|
styles.buttonContent,
|
||||||
contentStyle
|
contentStyle
|
||||||
|
|
|
@ -315,6 +315,7 @@ class SettingsView extends Component<IProps, IState> {
|
||||||
placeholder = { t('settingsView.displayNamePlaceholderText') }
|
placeholder = { t('settingsView.displayNamePlaceholderText') }
|
||||||
textContentType = { 'name' } // iOS only
|
textContentType = { 'name' } // iOS only
|
||||||
value = { displayName } />
|
value = { displayName } />
|
||||||
|
{/* @ts-ignore */}
|
||||||
<Divider style = { styles.fieldSeparator } />
|
<Divider style = { styles.fieldSeparator } />
|
||||||
<Input
|
<Input
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
@ -341,6 +342,7 @@ class SettingsView extends Component<IProps, IState> {
|
||||||
placeholder = { this.props._serverURL }
|
placeholder = { this.props._serverURL }
|
||||||
textContentType = { 'URL' } // iOS only
|
textContentType = { 'URL' } // iOS only
|
||||||
value = { serverURL } />
|
value = { serverURL } />
|
||||||
|
{/* @ts-ignore */}
|
||||||
<Divider style = { styles.fieldSeparator } />
|
<Divider style = { styles.fieldSeparator } />
|
||||||
<FormRow label = 'settingsView.startCarModeInLowBandwidthMode'>
|
<FormRow label = 'settingsView.startCarModeInLowBandwidthMode'>
|
||||||
<Switch
|
<Switch
|
||||||
|
@ -348,6 +350,7 @@ class SettingsView extends Component<IProps, IState> {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
onChange = { this._onStartCarmodeInLowBandwidthMode } />
|
onChange = { this._onStartCarmodeInLowBandwidthMode } />
|
||||||
</FormRow>
|
</FormRow>
|
||||||
|
{/* @ts-ignore */}
|
||||||
<Divider style = { styles.fieldSeparator } />
|
<Divider style = { styles.fieldSeparator } />
|
||||||
<FormRow
|
<FormRow
|
||||||
label = 'settingsView.startWithAudioMuted'>
|
label = 'settingsView.startWithAudioMuted'>
|
||||||
|
@ -356,6 +359,7 @@ class SettingsView extends Component<IProps, IState> {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
onChange = { this._onStartAudioMutedChange } />
|
onChange = { this._onStartAudioMutedChange } />
|
||||||
</FormRow>
|
</FormRow>
|
||||||
|
{/* @ts-ignore */}
|
||||||
<Divider style = { styles.fieldSeparator } />
|
<Divider style = { styles.fieldSeparator } />
|
||||||
<FormRow label = 'settingsView.startWithVideoMuted'>
|
<FormRow label = 'settingsView.startWithVideoMuted'>
|
||||||
<Switch
|
<Switch
|
||||||
|
@ -363,6 +367,7 @@ class SettingsView extends Component<IProps, IState> {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
onChange = { this._onStartVideoMutedChange } />
|
onChange = { this._onStartVideoMutedChange } />
|
||||||
</FormRow>
|
</FormRow>
|
||||||
|
{/* @ts-ignore */}
|
||||||
<Divider style = { styles.fieldSeparator } />
|
<Divider style = { styles.fieldSeparator } />
|
||||||
<FormRow label = 'videothumbnail.hideSelfView'>
|
<FormRow label = 'videothumbnail.hideSelfView'>
|
||||||
<Switch
|
<Switch
|
||||||
|
@ -378,12 +383,14 @@ class SettingsView extends Component<IProps, IState> {
|
||||||
labelKey = 'settingsView.help'
|
labelKey = 'settingsView.help'
|
||||||
onClick = { this._onShowHelpPressed }
|
onClick = { this._onShowHelpPressed }
|
||||||
type = { BUTTON_TYPES.TERTIARY } />
|
type = { BUTTON_TYPES.TERTIARY } />
|
||||||
|
{/* @ts-ignore */}
|
||||||
<Divider style = { styles.fieldSeparator } />
|
<Divider style = { styles.fieldSeparator } />
|
||||||
<Button
|
<Button
|
||||||
accessibilityLabel = 'settingsView.terms'
|
accessibilityLabel = 'settingsView.terms'
|
||||||
labelKey = 'settingsView.terms'
|
labelKey = 'settingsView.terms'
|
||||||
onClick = { this._onShowTermsPressed }
|
onClick = { this._onShowTermsPressed }
|
||||||
type = { BUTTON_TYPES.TERTIARY } />
|
type = { BUTTON_TYPES.TERTIARY } />
|
||||||
|
{/* @ts-ignore */}
|
||||||
<Divider style = { styles.fieldSeparator } />
|
<Divider style = { styles.fieldSeparator } />
|
||||||
<Button
|
<Button
|
||||||
accessibilityLabel = 'settingsView.privacy'
|
accessibilityLabel = 'settingsView.privacy'
|
||||||
|
@ -411,6 +418,7 @@ class SettingsView extends Component<IProps, IState> {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
onChange = { this._onDisableCallIntegration } />
|
onChange = { this._onDisableCallIntegration } />
|
||||||
</FormRow>
|
</FormRow>
|
||||||
|
{/* @ts-ignore */}
|
||||||
<Divider style = { styles.fieldSeparator } />
|
<Divider style = { styles.fieldSeparator } />
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
@ -421,6 +429,7 @@ class SettingsView extends Component<IProps, IState> {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
onChange = { this._onDisableP2P } />
|
onChange = { this._onDisableP2P } />
|
||||||
</FormRow>
|
</FormRow>
|
||||||
|
{/* @ts-ignore */}
|
||||||
<Divider style = { styles.fieldSeparator } />
|
<Divider style = { styles.fieldSeparator } />
|
||||||
{AppInfo.GOOGLE_SERVICES_ENABLED && (
|
{AppInfo.GOOGLE_SERVICES_ENABLED && (
|
||||||
<FormRow
|
<FormRow
|
||||||
|
|
Loading…
Reference in New Issue