Skip to content

Commit 64fabb8

Browse files
committed
Update project dependencies
1 parent da062ff commit 64fabb8

File tree

7 files changed

+832
-1227
lines changed

7 files changed

+832
-1227
lines changed

example/App.tsx

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
11
import React from 'react';
2+
import {FlatList, Platform, StatusBar, Text, View} from 'react-native';
23
import {Appbar, List, TouchableRipple} from 'react-native-paper';
3-
import theme from './theme';
4-
5-
import {
6-
FlatList,
7-
Platform,
8-
StatusBar,
9-
Text,
10-
View,
11-
GestureResponderEvent,
12-
} from 'react-native';
13-
144
import RNPermissions, {
5+
NotificationsResponse,
6+
Permission,
157
PERMISSIONS,
16-
RESULTS,
178
PermissionStatus,
18-
Permission,
19-
NotificationsResponse,
9+
RESULTS,
2010
} from 'react-native-permissions';
11+
import theme from './theme';
2112

2213
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2314
const {SIRI, ...PERMISSIONS_IOS} = PERMISSIONS.IOS; // remove siri (certificate required)
@@ -40,10 +31,10 @@ const colors: {[key: string]: string} = {
4031
};
4132

4233
const icons: {[key: string]: string} = {
43-
unavailable: 'lens',
44-
denied: 'error',
34+
unavailable: 'circle',
35+
denied: 'alert-circle',
4536
granted: 'check-circle',
46-
blocked: 'cancel',
37+
blocked: 'close-circle',
4738
};
4839

4940
const PermissionRow = ({
@@ -53,9 +44,12 @@ const PermissionRow = ({
5344
}: {
5445
name: string;
5546
status: string;
56-
onPress: (event: GestureResponderEvent) => void;
47+
onPress: () => void;
5748
}) => (
58-
<TouchableRipple onPress={onPress}>
49+
<TouchableRipple
50+
onPress={() => {
51+
onPress();
52+
}}>
5953
<List.Item
6054
right={() => <List.Icon color={colors[status]} icon={icons[status]} />}
6155
title={name}
@@ -118,8 +112,10 @@ export default class App extends React.Component<{}, State> {
118112
<Appbar.Action onPress={this.refresh} icon="refresh" />
119113

120114
<Appbar.Action
121-
onPress={RNPermissions.openSettings}
122-
icon="settings-applications"
115+
icon="settings"
116+
onPress={() => {
117+
RNPermissions.openSettings();
118+
}}
123119
/>
124120
</Appbar.Header>
125121

example/ios/Podfile.lock

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -19,35 +19,35 @@ PODS:
1919
- DoubleConversion
2020
- glog
2121
- glog (0.3.5)
22-
- Permission-BluetoothPeripheral (2.0.8):
22+
- Permission-BluetoothPeripheral (2.0.9):
2323
- RNPermissions
24-
- Permission-Calendars (2.0.8):
24+
- Permission-Calendars (2.0.9):
2525
- RNPermissions
26-
- Permission-Camera (2.0.8):
26+
- Permission-Camera (2.0.9):
2727
- RNPermissions
28-
- Permission-Contacts (2.0.8):
28+
- Permission-Contacts (2.0.9):
2929
- RNPermissions
30-
- Permission-FaceID (2.0.8):
30+
- Permission-FaceID (2.0.9):
3131
- RNPermissions
32-
- Permission-LocationAlways (2.0.8):
32+
- Permission-LocationAlways (2.0.9):
3333
- RNPermissions
34-
- Permission-LocationWhenInUse (2.0.8):
34+
- Permission-LocationWhenInUse (2.0.9):
3535
- RNPermissions
36-
- Permission-MediaLibrary (2.0.8):
36+
- Permission-MediaLibrary (2.0.9):
3737
- RNPermissions
38-
- Permission-Microphone (2.0.8):
38+
- Permission-Microphone (2.0.9):
3939
- RNPermissions
40-
- Permission-Motion (2.0.8):
40+
- Permission-Motion (2.0.9):
4141
- RNPermissions
42-
- Permission-Notifications (2.0.8):
42+
- Permission-Notifications (2.0.9):
4343
- RNPermissions
44-
- Permission-PhotoLibrary (2.0.8):
44+
- Permission-PhotoLibrary (2.0.9):
4545
- RNPermissions
46-
- Permission-Reminders (2.0.8):
46+
- Permission-Reminders (2.0.9):
4747
- RNPermissions
48-
- Permission-SpeechRecognition (2.0.8):
48+
- Permission-SpeechRecognition (2.0.9):
4949
- RNPermissions
50-
- Permission-StoreKit (2.0.8):
50+
- Permission-StoreKit (2.0.9):
5151
- RNPermissions
5252
- RCTRequired (0.61.5)
5353
- RCTTypeSafety (0.61.5):
@@ -247,7 +247,7 @@ PODS:
247247
- React-cxxreact (= 0.61.5)
248248
- React-jsi (= 0.61.5)
249249
- ReactCommon/jscallinvoker (= 0.61.5)
250-
- RNPermissions (2.0.8):
250+
- RNPermissions (2.0.9):
251251
- React
252252
- RNVectorIcons (6.6.0):
253253
- React
@@ -397,21 +397,21 @@ SPEC CHECKSUMS:
397397
FBReactNativeSpec: 118d0d177724c2d67f08a59136eb29ef5943ec75
398398
Folly: 30e7936e1c45c08d884aa59369ed951a8e68cf51
399399
glog: 1f3da668190260b06b429bb211bfbee5cd790c28
400-
Permission-BluetoothPeripheral: 425fda0e17a4bf5e28aee8c1f195c45a024e81ad
401-
Permission-Calendars: 43f00e23f78b722d5c15cdfcabd2bcf3fa02d25e
402-
Permission-Camera: f9a7b0b01c71febe320436aa74630f23c9483547
403-
Permission-Contacts: 89963431010c6f001849e3c4ef47661809407083
404-
Permission-FaceID: fb19f50c8ab2456d649995c0c0101abf344066dc
405-
Permission-LocationAlways: b04c806e399a4a2f5b2c37b1a88b0428afe77122
406-
Permission-LocationWhenInUse: 0d4763b950baa5442e09f6ffc4d991db8d1d5662
407-
Permission-MediaLibrary: 534beaed81f6e75f290c03c05d1f3353a3bb1644
408-
Permission-Microphone: 49c91ea622029b8c36a6ecfb65482cf4c513b53c
409-
Permission-Motion: c3ec6416f9b0175f5a075560a6510c562552196b
410-
Permission-Notifications: 0722c1cd783b86d2ae77a1a0c925d525f9170e7d
411-
Permission-PhotoLibrary: c15c7245aeb74aff3ad5edf70ce34adbcf02541b
412-
Permission-Reminders: b55b3d08d9258215d010786696f309966aa92094
413-
Permission-SpeechRecognition: 1d5f48613c8e914fab380f19d04cc0f55c30c6d6
414-
Permission-StoreKit: 559585409055453643a6f113d05ca832a0d7da26
400+
Permission-BluetoothPeripheral: 7b04d03ce7e30b049366387a311c8ef9b7a3c1a8
401+
Permission-Calendars: 6fd800eee47ab4d95d0318e3e615dc9df9c19423
402+
Permission-Camera: 8fe4753b02396489b11c5089e4f57bab7fe1ef42
403+
Permission-Contacts: 73d99eab3d1a397a2cd196ee12541548b9a7b9bc
404+
Permission-FaceID: 29c3f213a033c24330a554a5dad7681d6e3698f8
405+
Permission-LocationAlways: 8ecde136071ff169dc9f3607641dc40ae3ad7c02
406+
Permission-LocationWhenInUse: 9133db2ae6ce48da6ca513ec44a24ccce613fe4f
407+
Permission-MediaLibrary: 753f49bb6e08e34347e8a781263db44750b4b73e
408+
Permission-Microphone: 735c46c5a8e2ace954897680def376186bad1446
409+
Permission-Motion: 1f956a97407910e84f41f683f777ea910606d2f2
410+
Permission-Notifications: 1e03f5c43612ac4f9cdcaf6504695fc4e15f33d9
411+
Permission-PhotoLibrary: 42d41b53adefcfa94f42fb628f143d97136120bd
412+
Permission-Reminders: 22369652cfad81d43056689b55394ddf75d12e3a
413+
Permission-SpeechRecognition: b5b7c8ac21d01cd394142a3fd788e87b03513f8f
414+
Permission-StoreKit: f2125b8357e9269da84899cf1175ff7c6a1ea6e9
415415
RCTRequired: b153add4da6e7dbc44aebf93f3cf4fcae392ddf1
416416
RCTTypeSafety: 9aa1b91d7f9310fc6eadc3cf95126ffe818af320
417417
React: b6a59ef847b2b40bb6e0180a97d0ca716969ac78
@@ -431,7 +431,7 @@ SPEC CHECKSUMS:
431431
React-RCTText: 9ccc88273e9a3aacff5094d2175a605efa854dbe
432432
React-RCTVibration: a49a1f42bf8f5acf1c3e297097517c6b3af377ad
433433
ReactCommon: 198c7c8d3591f975e5431bec1b0b3b581aa1c5dd
434-
RNPermissions: 923c1506d0bde387fbcfc18a8f87945806d03c19
434+
RNPermissions: 2f74237e97b08beda01e914301e12524ddddf5b8
435435
RNVectorIcons: 0bb4def82230be1333ddaeee9fcba45f0b288ed4
436436
Yoga: f2a7cd4280bfe2cca5a7aed98ba0eb3d1310f18b
437437

example/ios/RNPermissionsExample/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<string>Let me use speech recognition</string>
7070
<key>UIAppFonts</key>
7171
<array>
72-
<string>MaterialIcons.ttf</string>
72+
<string>MaterialCommunityIcons.ttf</string>
7373
</array>
7474
<key>UIBackgroundModes</key>
7575
<array>

example/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313
"dependencies": {
1414
"react": "16.9.0",
1515
"react-native": "0.61.5",
16-
"react-native-paper": "2.16.0",
16+
"react-native-paper": "3.4.0",
1717
"react-native-permissions": "../",
1818
"react-native-vector-icons": "6.6.0"
1919
},
2020
"devDependencies": {
21-
"@babel/core": "7.7.4",
22-
"@babel/runtime": "7.7.4",
23-
"@types/react": "16.9.14",
24-
"@types/react-native": "0.60.23",
21+
"@babel/core": "7.7.7",
22+
"@babel/runtime": "7.7.7",
23+
"@types/react": "16.9.17",
24+
"@types/react-native": "0.60.27",
2525
"metro-react-native-babel-preset": "0.57.0",
26-
"typescript": "3.7.3"
26+
"typescript": "3.7.4"
2727
}
2828
}

0 commit comments

Comments
 (0)