mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-24 07:29:30 +01:00
update
This commit is contained in:
@@ -95,6 +95,16 @@ export const GetPremium = ({close, context = 'global', offset = 0}) => {
|
||||
};
|
||||
}, []);
|
||||
|
||||
const onPress = async () => {
|
||||
open(null);
|
||||
eSendEvent(eCloseActionSheet);
|
||||
if (editing.isFocused) {
|
||||
post('blur');
|
||||
}
|
||||
await sleep(300);
|
||||
eSendEvent(eOpenPremiumDialog);
|
||||
};
|
||||
|
||||
return (
|
||||
<Animated.View
|
||||
style={{
|
||||
@@ -133,20 +143,7 @@ export const GetPremium = ({close, context = 'global', offset = 0}) => {
|
||||
</Paragraph>
|
||||
</View>
|
||||
|
||||
<Button
|
||||
onPress={async () => {
|
||||
open(null);
|
||||
eSendEvent(eCloseActionSheet);
|
||||
if (editing.isFocused) {
|
||||
post('blur');
|
||||
}
|
||||
await sleep(300);
|
||||
eSendEvent(eOpenPremiumDialog);
|
||||
}}
|
||||
width={80}
|
||||
title="Get Now"
|
||||
type="inverted"
|
||||
/>
|
||||
<Button onPress={onPress} width={80} title="Get Now" type="inverted" />
|
||||
</Animated.View>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user