remove unused imports

This commit is contained in:
ammarahm-ed
2020-12-19 13:59:41 +05:00
parent ee48fe02e0
commit 487863da31
4 changed files with 38 additions and 51 deletions

View File

@@ -1,19 +1,18 @@
import React from 'react';
import {Platform} from 'react-native';
import {ScrollView} from 'react-native';
import {useTracked} from '../../provider';
import {DDS} from '../../services/DeviceDetection';
import { Platform } from 'react-native';
import { useTracked } from '../../provider';
import { DDS } from '../../services/DeviceDetection';
import { hexToRGBA } from '../../utils/ColorUtils';
import ActionSheet from '../ActionSheet';
import {GetPremium} from './GetPremium';
import { GetPremium } from './GetPremium';
const ActionSheetWrapper = ({
children,
fwdRef,
gestureEnabled=true,
gestureEnabled = true,
onClose,
onOpen,
closeOnTouchBackdrop=true
closeOnTouchBackdrop = true,
}) => {
const [state] = useTracked();
const {colors} = state;
@@ -43,8 +42,8 @@ const ActionSheetWrapper = ({
containerStyle={style}
gestureEnabled={gestureEnabled}
extraScroll={largeTablet ? 50 : 0}
initialOffsetFromBottom={1}
closeOnTouchBackdrop={closeOnTouchBackdrop}
initialOffsetFromBottom={1}
closeOnTouchBackdrop={closeOnTouchBackdrop}
indicatorColor={
Platform.OS === 'ios'
? hexToRGBA(colors.accent + '19')

View File

@@ -1,13 +1,9 @@
import React, {createRef} from 'react';
import {Platform, View} from 'react-native';
import {DDS} from '../../services/DeviceDetection';
import {eSubscribeEvent, eUnSubscribeEvent} from '../../services/EventManager';
import {dWidth} from '../../utils';
import {hexToRGBA} from '../../utils/ColorUtils';
import {db} from '../../utils/DB';
import {eClosePendingDialog, eOpenPendingDialog} from '../../utils/Events';
import {SIZE} from '../../utils/SizeUtils';
import ActionSheet from '../ActionSheet';
import React, { createRef } from 'react';
import { View } from 'react-native';
import { eSubscribeEvent, eUnSubscribeEvent } from '../../services/EventManager';
import { db } from '../../utils/DB';
import { eClosePendingDialog, eOpenPendingDialog } from '../../utils/Events';
import { SIZE } from '../../utils/SizeUtils';
import ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper';
import Seperator from '../Seperator';
import Heading from '../Typography/Heading';

View File

@@ -1,18 +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 RNFetchBlob from 'rn-fetch-blob';
import {DDS} from '../../services/DeviceDetection';
import {eSendEvent, ToastEvent} from '../../services/EventManager';
import {dHeight, dWidth, itemSkus} from '../../utils';
import {hexToRGBA} from '../../utils/ColorUtils';
import {db} from '../../utils/DB';
import {eOpenLoginDialog, eOpenPendingDialog} from '../../utils/Events';
import {SIZE} from '../../utils/SizeUtils';
import ActionSheet from '../ActionSheet';
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';
@@ -24,7 +21,7 @@ class PremiumDialog extends React.Component {
products: null,
scrollEnabled: false,
product: null,
visible: true,
visible: false,
};
this.routeIndex = 0;
this.count = 0;
@@ -47,9 +44,7 @@ class PremiumDialog extends React.Component {
this.actionSheetRef.current?._setModalVisible(false);
}
componentDidMount() {
this.actionSheetRef.current?._setModalVisible(true);
}
async getSkus() {
try {

View File

@@ -1,22 +1,19 @@
import React, {createRef} from 'react';
import {Platform, TouchableOpacity, View} from 'react-native';
import React, { createRef } from 'react';
import { TouchableOpacity, View } from 'react-native';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {notesnook} from '../../../e2e/test.ids';
import {Actions} from '../../provider/Actions';
import {defaultState} from '../../provider/DefaultState';
import {DDS} from '../../services/DeviceDetection';
import {eSubscribeEvent, eUnSubscribeEvent} from '../../services/EventManager';
import { notesnook } from '../../../e2e/test.ids';
import { Actions } from '../../provider/Actions';
import { defaultState } from '../../provider/DefaultState';
import { eSubscribeEvent, eUnSubscribeEvent } from '../../services/EventManager';
import SettingsService from '../../services/SettingsService';
import {dWidth, getElevation, SORT, sortSettings} from '../../utils';
import {hexToRGBA} from '../../utils/ColorUtils';
import {eCloseSortDialog, eOpenSortDialog} from '../../utils/Events';
import {MMKV} from '../../utils/mmkv';
import {SIZE} from '../../utils/SizeUtils';
import {sleep} from '../../utils/TimeUtils';
import ActionSheet from '../ActionSheet';
import { getElevation, SORT, sortSettings } from '../../utils';
import { eCloseSortDialog, eOpenSortDialog } from '../../utils/Events';
import { MMKV } from '../../utils/mmkv';
import { SIZE } from '../../utils/SizeUtils';
import { sleep } from '../../utils/TimeUtils';
import ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper';
import {updateEvent} from '../DialogManager/recievers';
import {PressableButton} from '../PressableButton';
import { updateEvent } from '../DialogManager/recievers';
import { PressableButton } from '../PressableButton';
import Seperator from '../Seperator';
import Heading from '../Typography/Heading';