From 69e3211baf7a57f3bbbad9bbfd55d76dea04afc6 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Sat, 19 Dec 2020 14:38:03 +0500 Subject: [PATCH] fix focus mode --- .../src/components/Premium/PremiumDialog.js | 22 ++- apps/mobile/src/views/Editor/EditorWrapper.js | 126 +++++++++--------- 2 files changed, 76 insertions(+), 72 deletions(-) diff --git a/apps/mobile/src/components/Premium/PremiumDialog.js b/apps/mobile/src/components/Premium/PremiumDialog.js index 5f9226dce..142ff18ec 100644 --- a/apps/mobile/src/components/Premium/PremiumDialog.js +++ b/apps/mobile/src/components/Premium/PremiumDialog.js @@ -1,15 +1,15 @@ -import React, { createRef } from 'react'; -import { Platform, ScrollView, TouchableOpacity, View } from 'react-native'; +import React, {createRef} from 'react'; +import {Platform, ScrollView, TouchableOpacity, View} from 'react-native'; import * as RNIap from 'react-native-iap'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; -import { DDS } from '../../services/DeviceDetection'; -import { eSendEvent } from '../../services/EventManager'; -import { dHeight, itemSkus } from '../../utils'; -import { db } from '../../utils/DB'; -import { eOpenLoginDialog } from '../../utils/Events'; -import { SIZE } from '../../utils/SizeUtils'; +import {DDS} from '../../services/DeviceDetection'; +import {eSendEvent} from '../../services/EventManager'; +import {dHeight, itemSkus} from '../../utils'; +import {db} from '../../utils/DB'; +import {eOpenLoginDialog} from '../../utils/Events'; +import {SIZE} from '../../utils/SizeUtils'; import ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper'; -import { Button } from '../Button'; +import {Button} from '../Button'; import Seperator from '../Seperator'; import Heading from '../Typography/Heading'; import Paragraph from '../Typography/Paragraph'; @@ -44,8 +44,6 @@ class PremiumDialog extends React.Component { this.actionSheetRef.current?._setModalVisible(false); } - - async getSkus() { try { let u = await db.user.getUser(); @@ -83,7 +81,7 @@ class PremiumDialog extends React.Component { fwdRef={this.actionSheetRef}> { const {colors} = state; const insets = useSafeAreaInsets(); return ( - - - - - + + - + + - - - Keep swiping down to start a new note. - - + + + Keep swiping down to start a new note. + + - - Release to load new note - + + Release to load new note + - - Loading a new note - - + + Loading a new note + + - - - - + + + + + ); };