cleanup and refactor

This commit is contained in:
ammarahm-ed
2020-10-13 17:02:14 +05:00
parent cbb9249781
commit 4e9d71a969
96 changed files with 1974 additions and 2285 deletions

View File

@@ -1,10 +1,10 @@
import React from 'react';
import * as Animatable from 'react-native-animatable';
import {SIZE, WEIGHT} from './src/common/common';
import {DialogManager} from './src/components/DialogManager';
import {Toast} from './src/components/Toast';
import {useTracked} from './src/provider';
import {w} from './src/utils/utils';
import {dWidth} from './src/utils';
import {SIZE, WEIGHT} from "./src/utils/SizeUtils";
export const Loading = () => {
const [state, dispatch] = useTracked();
const {colors, loading} = state;
@@ -27,7 +27,7 @@ export const Loading = () => {
zIndex: 999,
transform: [
{
translateX: loading ? 0 : -w * 2,
translateX: loading ? 0 : -dWidth * 2,
},
],
}}>
@@ -71,7 +71,7 @@ export const Loading = () => {
zIndex: 999,
transform: [
{
translateX: loading ? 0 : w * 2,
translateX: loading ? 0 : dWidth * 2,
},
],
}}>