mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
fix focus mode
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user