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

@@ -44,8 +44,6 @@ class PremiumDialog extends React.Component {
this.actionSheetRef.current?._setModalVisible(false); this.actionSheetRef.current?._setModalVisible(false);
} }
async getSkus() { async getSkus() {
try { try {
let u = await db.user.getUser(); let u = await db.user.getUser();
@@ -83,7 +81,7 @@ class PremiumDialog extends React.Component {
fwdRef={this.actionSheetRef}> fwdRef={this.actionSheetRef}>
<View <View
style={{ style={{
width: "100%", width: '100%',
backgroundColor: colors.bg, backgroundColor: colors.bg,
justifyContent: 'space-between', justifyContent: 'space-between',
paddingHorizontal: 12, paddingHorizontal: 12,

View File

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