fix focus mode

This commit is contained in:
ammarahm-ed
2020-12-19 14:38:03 +05:00
parent f52de3fa42
commit 69e3211baf
2 changed files with 76 additions and 72 deletions

View File

@@ -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}>
<View
style={{
width: "100%",
width: '100%',
backgroundColor: colors.bg,
justifyContent: 'space-between',
paddingHorizontal: 12,

View File

@@ -88,13 +88,18 @@ export const EditorWrapper = ({dimensions}) => {
const {colors} = state;
const insets = useSafeAreaInsets();
return (
<SafeAreaView
<View
ref={editorRef}
style={{
width: DDS.isLargeTablet() ? dimensions.width * 0.55 : dimensions.width,
height: '100%',
backgroundColor: colors.bg,
}}>
<SafeAreaView
style={{
width: '100%',
height: '100%',
}}>
<GetPremium context="editor" offset={50 + insets.top} />
<View
style={{
@@ -132,7 +137,7 @@ export const EditorWrapper = ({dimensions}) => {
zIndex: 10,
transform: [
{
translateY: -80
translateY: -80,
},
],
}}>
@@ -168,5 +173,6 @@ export const EditorWrapper = ({dimensions}) => {
</AnimatedKeyboardView>
</PanGestureHandler>
</SafeAreaView>
</View>
);
};