Merge pull request #3872 from BlueWallet/larges

FIX: Fixed width for drawer
This commit is contained in:
GLaDOS 2021-09-22 19:48:00 +01:00 committed by GitHub
commit ffeb72762d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 18 deletions

View File

@ -329,11 +329,11 @@ function DrawerRoot() {
const dimensions = useWindowDimensions();
const isLargeScreen =
Platform.OS === 'android' ? isTablet() : (dimensions.width >= Dimensions.get('screen').width / 2 && isTablet()) || isDesktop;
const drawerStyle = { width: '0%' };
const drawerStyle = { width: isLargeScreen ? 320 : '0%' };
return (
<Drawer.Navigator
drawerStyle={isLargeScreen ? null : drawerStyle}
drawerStyle={drawerStyle}
drawerType={isLargeScreen ? 'permanent' : null}
drawerContent={props => (isLargeScreen ? <DrawerList {...props} /> : null)}
drawerPosition={I18nManager.isRTL ? 'right' : 'left'}

View File

@ -267,13 +267,13 @@ PODS:
- React-jsinspector (0.64.2)
- react-native-blue-crypto (1.0.0):
- React
- react-native-camera (4.2.0):
- react-native-camera (4.2.1):
- React-Core
- react-native-camera/RCT (= 4.2.0)
- react-native-camera/RN (= 4.2.0)
- react-native-camera/RCT (4.2.0):
- react-native-camera/RCT (= 4.2.1)
- react-native-camera/RN (= 4.2.1)
- react-native-camera/RCT (4.2.1):
- React-Core
- react-native-camera/RN (4.2.0):
- react-native-camera/RN (4.2.1):
- React-Core
- react-native-document-picker (3.5.4):
- React
@ -281,7 +281,7 @@ PODS:
- React
- react-native-idle-timer (2.1.6):
- React-Core
- react-native-image-picker (4.0.6):
- react-native-image-picker (4.1.1):
- React-Core
- react-native-ios-context-menu (1.3.0):
- React-Core
@ -431,7 +431,7 @@ PODS:
- React-RCTImage
- RNSecureKeyStore (1.0.0):
- React
- RNShare (7.1.0):
- RNShare (7.1.1):
- React-Core
- RNSVG (12.1.1):
- React
@ -739,11 +739,11 @@ SPEC CHECKSUMS:
React-jsiexecutor: 80c46bd381fd06e418e0d4f53672dc1d1945c4c3
React-jsinspector: cc614ec18a9ca96fd275100c16d74d62ee11f0ae
react-native-blue-crypto: 23f1558ad3d38d7a2edb7e2f6ed1bc520ed93e56
react-native-camera: 384df93277a5ccdc800ca9f86daac7107598365e
react-native-camera: 210a872c84d3aa0982a9223047ef9e743ed694fa
react-native-document-picker: c5752781fbc0c126c627c1549b037c139444a4cf
react-native-fingerprint-scanner: c68136ca57e3704d7bdf5faa554ea535ce15b1d0
react-native-idle-timer: 97b8283237d45146a7a5c25bdebe9e1e85f3687b
react-native-image-picker: 7bda3c7297c3ea16f4f504ad6174aa7e548192ef
react-native-image-picker: 7c37cd600a9b7338ced8609cc3ad108ebe6c444f
react-native-ios-context-menu: c787c9a764525d07dff9bd75a191f67de7176e9f
react-native-randombytes: 5fc412efe7b5c55b9002c0004d75fe5fabcaa507
react-native-safe-area-context: 5cf05f49df9d17261e40e518481f2e334c6cd4b5
@ -783,7 +783,7 @@ SPEC CHECKSUMS:
RNReanimated: 241c586663f44f19a53883c63375fdd041253960
RNScreens: 0591543e343c7444ea1756b6265d81a4295922c9
RNSecureKeyStore: f1ad870e53806453039f650720d2845c678d89c8
RNShare: 072f63d19c2b90da3742adac614396d805e7ae22
RNShare: a22398d8d02336133e28bf8b6e0b47b31abade41
RNSVG: 551acb6562324b1d52a4e0758f7ca0ec234e278f
RNVectorIcons: 31cebfcf94e8cf8686eb5303ae0357da64d7a5a4
RNWatch: 99637948ec9b5c9ec5a41920642594ad5ba07e80

12
package-lock.json generated
View File

@ -19673,9 +19673,9 @@
"from": "git+https://github.com/BlueWallet/react-native-blue-crypto.git#fbc2e6beded0b7f61e0986ce98cca1230f84bc1c"
},
"react-native-camera": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/react-native-camera/-/react-native-camera-4.2.0.tgz",
"integrity": "sha512-AhBEtkCLXENrjQke42FwiZL3CStugLaxXsJIqx7xYDnSEHnSwM9/dFen6BdNVoh9LiPgAw6X3CjOvvJNoGchhQ==",
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/react-native-camera/-/react-native-camera-4.2.1.tgz",
"integrity": "sha512-+Vkql24PFYQfsPRznJCvPwJQfyzCnjlcww/iZ4Ej80bgivKjL9eU0IMQIXp4yi6XCrKi4voWXxIDPMupQZKeIQ==",
"requires": {
"prop-types": "^15.6.2"
}
@ -19979,9 +19979,9 @@
"from": "git+https://github.com/BlueWallet/react-native-secure-key-store.git#63ab38c9d382a819844a086a69cc204c46aa93f9"
},
"react-native-share": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/react-native-share/-/react-native-share-7.1.0.tgz",
"integrity": "sha512-LSnAz2OeuLrR2MS+PLUR3JN67eCkvu9Eh89j6FD2tah0BwJ5U/Vl31CcwJPV17+X6bLftzUxECPHZ9TtEr7Guw=="
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/react-native-share/-/react-native-share-7.1.1.tgz",
"integrity": "sha512-pdIr+OUmCP5+t0HHSTy5opbBle+dE7Qw98U8ixSaIGoeQbkyP7vnCDpngxQoOHJ4IdcrbGgSAx+m0OAvvACzXg=="
},
"react-native-size-matters": {
"version": "0.3.1",