From aa3c88b02c370ac1a9792e228a88972901899547 Mon Sep 17 00:00:00 2001 From: xCTAPx <45179728+xCTAPx@users.noreply.github.com> Date: Mon, 27 Sep 2021 17:23:58 +0300 Subject: [PATCH] I thik you shouln't use async here --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 60a0bdf..2ee6507 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ import { Linking, Platform } from 'react-native'; -export const maybeOpenURL = async ( +export const maybeOpenURL = ( url, { appName, appStoreId, appStoreLocale, playStoreId } ) => { @@ -24,7 +24,7 @@ export const maybeOpenURL = async ( }); }; -export const openInStore = async ({ appName, appStoreId, appStoreLocale = 'us', playStoreId }) => { +export const openInStore = ({ appName, appStoreId, appStoreLocale = 'us', playStoreId }) => { if (Platform.OS === 'ios') { Linking.openURL(`https://apps.apple.com/${appStoreLocale}/app/${appName}/id${appStoreId}`); } else {