use direct store link when asked for rating app

This commit is contained in:
ammarahm-ed
2022-01-04 13:14:48 +05:00
parent 9bbec7b049
commit 38747c28df

View File

@@ -9,6 +9,7 @@ import {Button} from '../Button';
import Seperator from '../Seperator';
import Heading from '../Typography/Heading';
import Paragraph from '../Typography/Paragraph';
import { STORE_LINK } from '../../utils';
const RateDialog = () => {
const [visible, setVisible] = useState(false);
@@ -64,12 +65,7 @@ const RateDialog = () => {
<Seperator half />
<Button
onPress={async () => {
await Linking.openURL(
Platform.OS === 'ios'
? 'https://bit.ly/notesnook-ios'
: 'https://bit.ly/notesnook-and'
);
await Linking.openURL(STORE_LINK);
await MMKV.setItem('askForRating', 'completed');
setVisible(false);
}}