This commit is contained in:
ammarahm-ed
2021-01-14 14:45:47 +05:00
parent 66a9b213ec
commit bdb90b0fca

View File

@@ -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>
);
};