Skip to content

Commit 2bb2f65

Browse files
committed
docs: fixes to the example app
1 parent a6390e1 commit 2bb2f65

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

example/LMFS/ios/Podfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Disable new arch as it is not supported by the current version of package
2+
ENV['RCT_NEW_ARCH_ENABLED'] = '0'
3+
14
def node_require(script)
25
# Resolve script with node to allow for hoisting
36
require Pod::Executable.execute_command('node', ['-p',

example/LMFS/src/checkPermissions.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,8 @@ const usePermissions = () => {
3030
const check = async () => {
3131
const toRequestPermissions =
3232
Platform.OS === 'android'
33-
? [
34-
PERMISSIONS.ANDROID.ACCESS_FINE_LOCATION,
35-
PERMISSIONS.ANDROID.READ_MEDIA_IMAGES,
36-
]
37-
: [PERMISSIONS.IOS.LOCATION_ALWAYS, PERMISSIONS.IOS.PHOTO_LIBRARY];
33+
? [PERMISSIONS.ANDROID.ACCESS_FINE_LOCATION]
34+
: [PERMISSIONS.IOS.LOCATION_ALWAYS];
3835

3936
try {
4037
const permissionStatuses = await requestMultiple(toRequestPermissions);

example/ODRD/ios/Podfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Disable new arch as it is not supported by the current version of package
2+
ENV['RCT_NEW_ARCH_ENABLED'] = '0'
3+
14
def node_require(script)
25
# Resolve script with node to allow for hoisting
36
require Pod::Executable.execute_command('node', ['-p',

example/ODRD/src/checkPermissions.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,8 @@ const usePermissions = () => {
3030
const check = async () => {
3131
const toRequestPermissions =
3232
Platform.OS === 'android'
33-
? [
34-
PERMISSIONS.ANDROID.ACCESS_FINE_LOCATION,
35-
PERMISSIONS.ANDROID.READ_MEDIA_IMAGES,
36-
]
37-
: [PERMISSIONS.IOS.LOCATION_ALWAYS, PERMISSIONS.IOS.PHOTO_LIBRARY];
33+
? [PERMISSIONS.ANDROID.ACCESS_FINE_LOCATION]
34+
: [PERMISSIONS.IOS.LOCATION_ALWAYS];
3835

3936
try {
4037
const permissionStatuses = await requestMultiple(toRequestPermissions);

0 commit comments

Comments
 (0)