mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-19 11:21:41 +03:00
parent
420827b6c4
commit
983bc77689
@ -1,18 +1,20 @@
|
|||||||
import moment from 'moment';
|
import React, { useState, Fragment, useRef } from 'react';
|
||||||
import React, { Fragment, useRef, useState } from 'react';
|
import { View, Text, ActivityIndicator, SafeAreaView, Dimensions } from 'react-native';
|
||||||
import { injectIntl } from 'react-intl';
|
import { injectIntl } from 'react-intl';
|
||||||
import { ActivityIndicator, SafeAreaView, Text, View } from 'react-native';
|
|
||||||
import { useSelector } from 'react-redux';
|
import { useSelector } from 'react-redux';
|
||||||
|
import moment from 'moment';
|
||||||
|
|
||||||
// Components
|
// Components
|
||||||
import { BeneficiaryModal, Modal, TextButton } from '../..';
|
import { TextButton, Modal, BeneficiaryModal } from '../..';
|
||||||
import { OptionsModal } from '../../atoms';
|
|
||||||
import { DateTimePicker } from '../../dateTimePicker';
|
|
||||||
import { DropdownButton } from '../../dropdownButton';
|
|
||||||
import { IconButton } from '../../iconButton';
|
import { IconButton } from '../../iconButton';
|
||||||
|
import { DropdownButton } from '../../dropdownButton';
|
||||||
import { TextInput } from '../../textInput';
|
import { TextInput } from '../../textInput';
|
||||||
|
import { DateTimePicker } from '../../dateTimePicker';
|
||||||
|
|
||||||
// Constants
|
// Constants
|
||||||
// Styles
|
// Styles
|
||||||
import styles from './basicHeaderStyles';
|
import styles from './basicHeaderStyles';
|
||||||
|
import { OptionsModal } from '../../atoms';
|
||||||
|
|
||||||
const BasicHeaderView = ({
|
const BasicHeaderView = ({
|
||||||
disabled,
|
disabled,
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
/* eslint-disable radix */
|
/* eslint-disable radix */
|
||||||
import times from 'lodash/times';
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { View } from 'react-native';
|
import { Dimensions, View } from 'react-native';
|
||||||
|
import times from 'lodash/times';
|
||||||
import Placeholder from 'rn-placeholder';
|
import Placeholder from 'rn-placeholder';
|
||||||
|
|
||||||
import { ThemeContainer } from '../../../../containers';
|
import { ThemeContainer } from '../../../../containers';
|
||||||
import getWindowDimensions from '../../../../utils/getWindowDimensions';
|
|
||||||
import styles from './boostPlaceHolderStyles';
|
import styles from './boostPlaceHolderStyles';
|
||||||
|
import getWindowDimensions from '../../../../utils/getWindowDimensions';
|
||||||
|
|
||||||
const HEIGHT = getWindowDimensions().height;
|
const HEIGHT = getWindowDimensions().height;
|
||||||
|
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
/* eslint-disable radix */
|
/* eslint-disable radix */
|
||||||
import times from 'lodash/times';
|
|
||||||
import React, { Fragment } from 'react';
|
import React, { Fragment } from 'react';
|
||||||
import getWindowDimensions from '../../../../utils/getWindowDimensions';
|
import { Dimensions } from 'react-native';
|
||||||
|
import times from 'lodash/times';
|
||||||
|
|
||||||
import ListItemPlaceHolder from './listItemPlaceHolderView';
|
import ListItemPlaceHolder from './listItemPlaceHolderView';
|
||||||
|
import getWindowDimensions from '../../../../utils/getWindowDimensions';
|
||||||
|
|
||||||
const HEIGHT = getWindowDimensions().height;
|
const HEIGHT = getWindowDimensions().height;
|
||||||
|
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
import LottieView from 'lottie-react-native';
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { View } from 'react-native';
|
import { View, Dimensions } from 'react-native';
|
||||||
|
import Placeholder from 'rn-placeholder';
|
||||||
|
|
||||||
|
import LottieView from 'lottie-react-native';
|
||||||
import { ThemeContainer } from '../../../../containers';
|
import { ThemeContainer } from '../../../../containers';
|
||||||
import getWindowDimensions from '../../../../utils/getWindowDimensions';
|
|
||||||
import styles from './postCardPlaceHolderStyles';
|
import styles from './postCardPlaceHolderStyles';
|
||||||
|
import getWindowDimensions from '../../../../utils/getWindowDimensions';
|
||||||
|
|
||||||
// TODO: make container for place holder wrapper after alpha
|
// TODO: make container for place holder wrapper after alpha
|
||||||
const PostCardPlaceHolder = () => {
|
const PostCardPlaceHolder = () => {
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { View } from 'react-native';
|
import { View, Dimensions } from 'react-native';
|
||||||
|
import Placeholder from 'rn-placeholder';
|
||||||
|
|
||||||
import LottieView from 'lottie-react-native';
|
import LottieView from 'lottie-react-native';
|
||||||
import { ThemeContainer } from '../../../../containers';
|
import { ThemeContainer } from '../../../../containers';
|
||||||
|
|
||||||
|
import styles from './postCardPlaceHolderStyles';
|
||||||
import getWindowDimensions from '../../../../utils/getWindowDimensions';
|
import getWindowDimensions from '../../../../utils/getWindowDimensions';
|
||||||
|
|
||||||
const PostPlaceHolder = () => {
|
const PostPlaceHolder = () => {
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
/* eslint-disable radix */
|
/* eslint-disable radix */
|
||||||
import times from 'lodash/times';
|
|
||||||
import React, { Fragment } from 'react';
|
import React, { Fragment } from 'react';
|
||||||
import { View } from 'react-native';
|
import { View, Dimensions } from 'react-native';
|
||||||
import Placeholder from 'rn-placeholder';
|
import Placeholder from 'rn-placeholder';
|
||||||
|
import times from 'lodash/times';
|
||||||
|
|
||||||
import { ThemeContainer } from '../../../../containers';
|
import { ThemeContainer } from '../../../../containers';
|
||||||
import getWindowDimensions from '../../../../utils/getWindowDimensions';
|
|
||||||
import styles from './walletDetailsPlaceHolderStyles';
|
import styles from './walletDetailsPlaceHolderStyles';
|
||||||
|
import getWindowDimensions from '../../../../utils/getWindowDimensions';
|
||||||
|
|
||||||
const HEIGHT = getWindowDimensions().height;
|
const HEIGHT = getWindowDimensions().height;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { ImageStyle, TextStyle, ViewStyle } from 'react-native';
|
import { TextStyle, StyleSheet, ViewStyle, ImageStyle, Dimensions } from 'react-native';
|
||||||
import EStyleSheet from 'react-native-extended-stylesheet';
|
import EStyleSheet from 'react-native-extended-stylesheet';
|
||||||
import getWindowDimensions from '../../utils/getWindowDimensions';
|
import getWindowDimensions from '../../utils/getWindowDimensions';
|
||||||
|
|
||||||
|
@ -1,19 +1,22 @@
|
|||||||
import React, { Fragment, useEffect, useRef, useState } from 'react';
|
import React, { useRef, useState, useEffect, Fragment } from 'react';
|
||||||
|
import { View, Text, TouchableOpacity, Dimensions } from 'react-native';
|
||||||
import { injectIntl } from 'react-intl';
|
import { injectIntl } from 'react-intl';
|
||||||
import { Text, TouchableOpacity, View } from 'react-native';
|
|
||||||
import ImageSize from 'react-native-image-size';
|
import ImageSize from 'react-native-image-size';
|
||||||
import { ScheduledPostStatus } from '../../../providers/ecency/ecency.types';
|
|
||||||
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
|
||||||
// Utils
|
// Utils
|
||||||
import { getTimeFromNow } from '../../../utils/time';
|
import { getTimeFromNow } from '../../../utils/time';
|
||||||
import { OptionsModal } from '../../atoms';
|
|
||||||
import { IconButton } from '../../iconButton';
|
|
||||||
import { PopoverWrapper } from '../../popoverWrapper/popoverWrapperView';
|
|
||||||
// Components
|
// Components
|
||||||
import { PostHeaderDescription } from '../../postElements';
|
import { PostHeaderDescription } from '../../postElements';
|
||||||
|
import { IconButton } from '../../iconButton';
|
||||||
import ProgressiveImage from '../../progressiveImage';
|
import ProgressiveImage from '../../progressiveImage';
|
||||||
|
import { OptionsModal } from '../../atoms';
|
||||||
|
|
||||||
// Styles
|
// Styles
|
||||||
import styles from './draftListItemStyles';
|
import styles from './draftListItemStyles';
|
||||||
|
import { ScheduledPostStatus } from '../../../providers/ecency/ecency.types';
|
||||||
|
import { PopoverWrapper } from '../../popoverWrapper/popoverWrapperView';
|
||||||
|
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
||||||
|
|
||||||
// Defaults
|
// Defaults
|
||||||
const DEFAULT_IMAGE =
|
const DEFAULT_IMAGE =
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
import EStyleSheet from 'react-native-extended-stylesheet';
|
import EStyleSheet from 'react-native-extended-stylesheet';
|
||||||
|
import { Dimensions } from 'react-native';
|
||||||
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
||||||
|
|
||||||
|
const deviceWidth = getWindowDimensions().width;
|
||||||
|
|
||||||
export default EStyleSheet.create({
|
export default EStyleSheet.create({
|
||||||
container: {
|
container: {
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
|
@ -1,23 +1,25 @@
|
|||||||
import { renderPostBody } from '@ecency/render-helper';
|
|
||||||
import Clipboard from '@react-native-clipboard/clipboard';
|
|
||||||
import React, { forwardRef, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
import React, { forwardRef, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
||||||
import { useIntl } from 'react-intl';
|
import { useIntl } from 'react-intl';
|
||||||
import {
|
import {
|
||||||
ActivityIndicator, Platform,
|
Platform,
|
||||||
Text,
|
Text,
|
||||||
TouchableOpacity,
|
TouchableOpacity,
|
||||||
View
|
View,
|
||||||
|
ActivityIndicator,
|
||||||
|
Dimensions,
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
|
import { MainButton, PostBody, TextButton } from '..';
|
||||||
|
import styles from './insertLinkModalStyles';
|
||||||
import ActionSheet from 'react-native-actions-sheet';
|
import ActionSheet from 'react-native-actions-sheet';
|
||||||
import EStyleSheet from 'react-native-extended-stylesheet';
|
import EStyleSheet from 'react-native-extended-stylesheet';
|
||||||
import { ScrollView } from 'react-native-gesture-handler';
|
|
||||||
import { MainButton, PostBody, TextButton } from '..';
|
|
||||||
import { delay } from '../../utils/editor';
|
|
||||||
import getWindowDimensions from '../../utils/getWindowDimensions';
|
|
||||||
import applyWebLinkFormat from '../markdownEditor/view/formats/applyWebLinkFormat';
|
|
||||||
import { isStringWebLink } from '../markdownEditor/view/formats/utils';
|
|
||||||
import TextInput from '../textInput';
|
import TextInput from '../textInput';
|
||||||
import styles from './insertLinkModalStyles';
|
import { delay } from '../../utils/editor';
|
||||||
|
import { isStringWebLink } from '../markdownEditor/view/formats/utils';
|
||||||
|
import { renderPostBody } from '@ecency/render-helper';
|
||||||
|
import { ScrollView } from 'react-native-gesture-handler';
|
||||||
|
import applyWebLinkFormat from '../markdownEditor/view/formats/applyWebLinkFormat';
|
||||||
|
import Clipboard from '@react-native-clipboard/clipboard';
|
||||||
|
import getWindowDimensions from '../../utils/getWindowDimensions';
|
||||||
|
|
||||||
interface InsertLinkModalProps {
|
interface InsertLinkModalProps {
|
||||||
handleOnInsertLink: ({
|
handleOnInsertLink: ({
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { ViewStyle } from 'react-native';
|
import { ViewStyle, Dimensions } from 'react-native';
|
||||||
import EStyleSheet from 'react-native-extended-stylesheet';
|
import EStyleSheet from 'react-native-extended-stylesheet';
|
||||||
import getWindowDimensions from '../../utils/getWindowDimensions';
|
import getWindowDimensions from '../../utils/getWindowDimensions';
|
||||||
|
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
import React, { PureComponent } from 'react';
|
import React, { PureComponent } from 'react';
|
||||||
import { Text, View } from 'react-native';
|
import { View, Dimensions, Text } from 'react-native';
|
||||||
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
||||||
|
|
||||||
// Constants
|
// Constants
|
||||||
|
|
||||||
// Components
|
// Components
|
||||||
|
|
||||||
// Styles
|
// Styles
|
||||||
import styles from './percentBarStyles';
|
import styles from './percentBarStyles';
|
||||||
|
|
||||||
|
@ -1,22 +1,25 @@
|
|||||||
|
import React, { useState, useEffect } from 'react';
|
||||||
import get from 'lodash/get';
|
import get from 'lodash/get';
|
||||||
import React, { useState } from 'react';
|
import { TouchableOpacity, Text, View, Dimensions } from 'react-native';
|
||||||
import { injectIntl } from 'react-intl';
|
import { injectIntl } from 'react-intl';
|
||||||
import { Text, TouchableOpacity, View } from 'react-native';
|
|
||||||
// Utils
|
// Utils
|
||||||
import FastImage from 'react-native-fast-image';
|
import FastImage from 'react-native-fast-image';
|
||||||
import { TextButton } from '../..';
|
|
||||||
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
|
||||||
import { getTimeFromNow } from '../../../utils/time';
|
import { getTimeFromNow } from '../../../utils/time';
|
||||||
import { TextWithIcon } from '../../basicUIElements';
|
|
||||||
import { Icon } from '../../icon';
|
|
||||||
import { PostDropdown } from '../../postDropdown';
|
|
||||||
//import bugsnagInstance from '../../../config/bugsnag';
|
//import bugsnagInstance from '../../../config/bugsnag';
|
||||||
|
|
||||||
// Components
|
// Components
|
||||||
import { PostHeaderDescription } from '../../postElements';
|
import { PostHeaderDescription } from '../../postElements';
|
||||||
|
import { PostDropdown } from '../../postDropdown';
|
||||||
|
import { TextWithIcon } from '../../basicUIElements';
|
||||||
|
import { Icon } from '../../icon';
|
||||||
|
|
||||||
// STEEM
|
// STEEM
|
||||||
import { Upvote } from '../../upvote';
|
import { Upvote } from '../../upvote';
|
||||||
// Styles
|
// Styles
|
||||||
import styles from './postCardStyles';
|
import styles from './postCardStyles';
|
||||||
|
import { TextButton } from '../..';
|
||||||
|
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
||||||
|
|
||||||
const dim = getWindowDimensions();
|
const dim = getWindowDimensions();
|
||||||
const DEFAULT_IMAGE =
|
const DEFAULT_IMAGE =
|
||||||
|
@ -1,32 +1,33 @@
|
|||||||
import CameraRoll from '@react-native-community/cameraroll';
|
import React, { Fragment, useState, useRef } from 'react';
|
||||||
import React, { Fragment, useCallback, useRef, useState } from 'react';
|
import { Linking, Modal, PermissionsAndroid, Platform, View, Dimensions } from 'react-native';
|
||||||
import { useIntl } from 'react-intl';
|
import { useIntl } from 'react-intl';
|
||||||
import { Linking, Modal, PermissionsAndroid, Platform, View } from 'react-native';
|
import CameraRoll from '@react-native-community/cameraroll';
|
||||||
|
import RNFetchBlob from 'rn-fetch-blob';
|
||||||
|
import ImageViewer from 'react-native-image-zoom-viewer';
|
||||||
import ActionsSheetView from 'react-native-actions-sheet';
|
import ActionsSheetView from 'react-native-actions-sheet';
|
||||||
|
|
||||||
// import AutoHeightWebView from 'react-native-autoheight-webview';
|
// import AutoHeightWebView from 'react-native-autoheight-webview';
|
||||||
import EStyleSheet from 'react-native-extended-stylesheet';
|
import EStyleSheet from 'react-native-extended-stylesheet';
|
||||||
import { LongPressGestureHandler, State } from 'react-native-gesture-handler';
|
import { navigate } from '../../../../navigation/service';
|
||||||
import ImageViewer from 'react-native-image-zoom-viewer';
|
|
||||||
import RNFetchBlob from 'rn-fetch-blob';
|
|
||||||
import { PostHtmlRenderer, TextButton, VideoPlayer } from '../../..';
|
|
||||||
import { GLOBAL_POST_FILTERS_VALUE } from '../../../../constants/options/filters';
|
|
||||||
// Constants
|
// Constants
|
||||||
import { default as ROUTES } from '../../../../constants/routeNames';
|
import { default as ROUTES } from '../../../../constants/routeNames';
|
||||||
import { useAppDispatch } from '../../../../hooks';
|
|
||||||
import { navigate } from '../../../../navigation/service';
|
import { PostHtmlRenderer, TextButton, VideoPlayer } from '../../..';
|
||||||
import { toastNotification } from '../../../../redux/actions/uiAction';
|
|
||||||
// Services and Actions
|
|
||||||
import { writeToClipboard } from '../../../../utils/clipboard';
|
|
||||||
import { isCommunity } from '../../../../utils/communityValidation';
|
|
||||||
import getWindowDimensions from '../../../../utils/getWindowDimensions';
|
|
||||||
import { OptionsModal } from '../../../atoms';
|
|
||||||
// Styles
|
// Styles
|
||||||
import styles from './commentBodyStyles';
|
import styles from './commentBodyStyles';
|
||||||
|
|
||||||
|
// Services and Actions
|
||||||
|
import { writeToClipboard } from '../../../../utils/clipboard';
|
||||||
|
import { toastNotification } from '../../../../redux/actions/uiAction';
|
||||||
|
import { LongPressGestureHandler, State } from 'react-native-gesture-handler';
|
||||||
|
import { useCallback } from 'react';
|
||||||
|
import { OptionsModal } from '../../../atoms';
|
||||||
|
import { useAppDispatch } from '../../../../hooks';
|
||||||
|
import { isCommunity } from '../../../../utils/communityValidation';
|
||||||
|
import { GLOBAL_POST_FILTERS_VALUE } from '../../../../constants/options/filters';
|
||||||
|
import getWindowDimensions from '../../../../utils/getWindowDimensions';
|
||||||
|
|
||||||
const WIDTH = getWindowDimensions().width;
|
const WIDTH = getWindowDimensions().width;
|
||||||
|
|
||||||
|
@ -1,23 +1,25 @@
|
|||||||
|
import React, { Fragment, useState, useEffect, useRef } from 'react';
|
||||||
|
import { Dimensions, Linking, Modal, PermissionsAndroid, Platform, View } from 'react-native';
|
||||||
import CameraRoll from '@react-native-community/cameraroll';
|
import CameraRoll from '@react-native-community/cameraroll';
|
||||||
import React, { Fragment, useEffect, useRef, useState } from 'react';
|
import { withNavigation } from 'react-navigation';
|
||||||
import { injectIntl, useIntl } from 'react-intl';
|
import { useIntl, injectIntl } from 'react-intl';
|
||||||
import { Linking, Modal, PermissionsAndroid, Platform, View } from 'react-native';
|
|
||||||
import ActionSheetView from 'react-native-actions-sheet';
|
|
||||||
import EStyleSheet from 'react-native-extended-stylesheet';
|
import EStyleSheet from 'react-native-extended-stylesheet';
|
||||||
import ImageViewer from 'react-native-image-zoom-viewer';
|
import ImageViewer from 'react-native-image-zoom-viewer';
|
||||||
import { withNavigation } from 'react-navigation';
|
|
||||||
import { connect } from 'react-redux';
|
|
||||||
import RNFetchBlob from 'rn-fetch-blob';
|
import RNFetchBlob from 'rn-fetch-blob';
|
||||||
import { PostHtmlRenderer, VideoPlayer } from '../../..';
|
import ActionSheetView from 'react-native-actions-sheet';
|
||||||
import { GLOBAL_POST_FILTERS_VALUE } from '../../../../constants/options/filters';
|
import { connect } from 'react-redux';
|
||||||
// Constants
|
|
||||||
import { default as ROUTES } from '../../../../constants/routeNames';
|
|
||||||
import { toastNotification } from '../../../../redux/actions/uiAction';
|
|
||||||
// Services and Actions
|
// Services and Actions
|
||||||
import { writeToClipboard } from '../../../../utils/clipboard';
|
import { writeToClipboard } from '../../../../utils/clipboard';
|
||||||
import { isCommunity } from '../../../../utils/communityValidation';
|
import { toastNotification } from '../../../../redux/actions/uiAction';
|
||||||
import getWindowDimensions from '../../../../utils/getWindowDimensions';
|
|
||||||
|
// Constants
|
||||||
|
import { default as ROUTES } from '../../../../constants/routeNames';
|
||||||
import { OptionsModal } from '../../../atoms';
|
import { OptionsModal } from '../../../atoms';
|
||||||
|
import { isCommunity } from '../../../../utils/communityValidation';
|
||||||
|
import { GLOBAL_POST_FILTERS_VALUE } from '../../../../constants/options/filters';
|
||||||
|
import { PostHtmlRenderer, VideoPlayer } from '../../..';
|
||||||
|
import getWindowDimensions from '../../../../utils/getWindowDimensions';
|
||||||
|
|
||||||
const WIDTH = getWindowDimensions().width;
|
const WIDTH = getWindowDimensions().width;
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { Dimensions } from 'react-native';
|
||||||
import EStyleSheet from 'react-native-extended-stylesheet';
|
import EStyleSheet from 'react-native-extended-stylesheet';
|
||||||
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
||||||
|
|
||||||
|
@ -1,23 +1,29 @@
|
|||||||
import get from 'lodash/get';
|
import React, { useCallback, useEffect, useRef, useState, Fragment } from 'react';
|
||||||
import React, { Fragment, useCallback, useEffect, useRef, useState } from 'react';
|
import { View, Text, ScrollView, Dimensions, SafeAreaView, RefreshControl } from 'react-native';
|
||||||
import { injectIntl } from 'react-intl';
|
import { injectIntl } from 'react-intl';
|
||||||
import { RefreshControl, ScrollView, Text, View } from 'react-native';
|
import get from 'lodash/get';
|
||||||
|
|
||||||
|
// Providers
|
||||||
|
import { useSelector } from 'react-redux';
|
||||||
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
||||||
import { QuickReplyModal } from '../..';
|
|
||||||
import { userActivity } from '../../../providers/ecency/ePoint';
|
import { userActivity } from '../../../providers/ecency/ePoint';
|
||||||
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
|
||||||
// Utils
|
// Utils
|
||||||
import { getTimeFromNow } from '../../../utils/time';
|
import { getTimeFromNow } from '../../../utils/time';
|
||||||
import { OptionsModal } from '../../atoms';
|
|
||||||
import { NoPost, PostPlaceHolder, StickyBar, TextWithIcon } from '../../basicUIElements';
|
|
||||||
import { CommentsDisplay } from '../../commentsDisplay';
|
|
||||||
import { IconButton } from '../../iconButton';
|
|
||||||
import { ParentPost } from '../../parentPost';
|
|
||||||
// Components
|
// Components
|
||||||
import { PostBody, PostHeaderDescription, Tags } from '../../postElements';
|
import { PostHeaderDescription, PostBody, Tags } from '../../postElements';
|
||||||
|
import { PostPlaceHolder, StickyBar, TextWithIcon, NoPost } from '../../basicUIElements';
|
||||||
import { Upvote } from '../../upvote';
|
import { Upvote } from '../../upvote';
|
||||||
|
import { IconButton } from '../../iconButton';
|
||||||
|
import { CommentsDisplay } from '../../commentsDisplay';
|
||||||
|
import { ParentPost } from '../../parentPost';
|
||||||
|
|
||||||
// Styles
|
// Styles
|
||||||
import styles from './postDisplayStyles';
|
import styles from './postDisplayStyles';
|
||||||
|
import { OptionsModal } from '../../atoms';
|
||||||
|
import { QuickReplyModal } from '../..';
|
||||||
|
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
||||||
|
|
||||||
const HEIGHT = getWindowDimensions().height;
|
const HEIGHT = getWindowDimensions().height;
|
||||||
const WIDTH = getWindowDimensions().width;
|
const WIDTH = getWindowDimensions().width;
|
||||||
|
@ -1,20 +1,37 @@
|
|||||||
|
import React, { PureComponent, Fragment } from 'react';
|
||||||
|
import {
|
||||||
|
View,
|
||||||
|
Text,
|
||||||
|
TouchableOpacity,
|
||||||
|
Dimensions,
|
||||||
|
ActivityIndicator,
|
||||||
|
Linking,
|
||||||
|
Alert,
|
||||||
|
Platform,
|
||||||
|
} from 'react-native';
|
||||||
import get from 'lodash/get';
|
import get from 'lodash/get';
|
||||||
import React, { Fragment, PureComponent } from 'react';
|
|
||||||
import { ActivityIndicator, Alert, Linking, Text, TouchableOpacity, View } from 'react-native';
|
|
||||||
// Constants
|
// Constants
|
||||||
import FastImage from 'react-native-fast-image';
|
import FastImage from 'react-native-fast-image';
|
||||||
import DARK_COVER_IMAGE from '../../../assets/dark_cover_image.png';
|
import EStyleSheet from 'react-native-extended-stylesheet';
|
||||||
import LIGHT_COVER_IMAGE from '../../../assets/default_cover_image.png';
|
import LIGHT_COVER_IMAGE from '../../../assets/default_cover_image.png';
|
||||||
// Utils
|
import DARK_COVER_IMAGE from '../../../assets/dark_cover_image.png';
|
||||||
import { makeCountFriendly } from '../../../utils/formatter';
|
|
||||||
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
|
||||||
import { getCoverImageUrl } from '../../../utils/image';
|
|
||||||
// Components
|
// Components
|
||||||
import { TextWithIcon } from '../../basicUIElements';
|
import { TextWithIcon } from '../../basicUIElements';
|
||||||
import { DropdownButton } from '../../dropdownButton';
|
|
||||||
import { PercentBar } from '../../percentBar';
|
import { PercentBar } from '../../percentBar';
|
||||||
|
import { IconButton } from '../../iconButton';
|
||||||
|
import { DropdownButton } from '../../dropdownButton';
|
||||||
|
|
||||||
|
// Utils
|
||||||
|
import { makeCountFriendly } from '../../../utils/formatter';
|
||||||
|
import { getCoverImageUrl } from '../../../utils/image';
|
||||||
|
|
||||||
// Styles
|
// Styles
|
||||||
import styles from './profileSummaryStyles';
|
import styles from './profileSummaryStyles';
|
||||||
|
import { TextButton } from '../../buttons';
|
||||||
|
import { Icon } from '../..';
|
||||||
|
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
||||||
|
|
||||||
const DEVICE_WIDTH = getWindowDimensions().width;
|
const DEVICE_WIDTH = getWindowDimensions().width;
|
||||||
|
|
||||||
|
@ -1,16 +1,18 @@
|
|||||||
import React, { useEffect, useRef, useState } from 'react';
|
import React, { useEffect, useRef, useState } from 'react';
|
||||||
import { useIntl } from 'react-intl';
|
import { ActivityIndicator, Alert, PermissionsAndroid, Platform, Text, View } from 'react-native';
|
||||||
import { ActivityIndicator, Alert, PermissionsAndroid, Platform, View } from 'react-native';
|
|
||||||
import ActionSheet from 'react-native-actions-sheet';
|
import ActionSheet from 'react-native-actions-sheet';
|
||||||
import EStyleSheet from 'react-native-extended-stylesheet';
|
import EStyleSheet from 'react-native-extended-stylesheet';
|
||||||
import { check, openSettings, PERMISSIONS, request, RESULTS } from 'react-native-permissions';
|
|
||||||
import QRCodeScanner from 'react-native-qrcode-scanner';
|
|
||||||
import { useAppDispatch, useAppSelector } from '../../hooks';
|
|
||||||
import { navigate } from '../../navigation/service';
|
|
||||||
import { toggleQRModal } from '../../redux/actions/uiAction';
|
|
||||||
import { deepLinkParser } from '../../utils/deepLinkParser';
|
|
||||||
import getWindowDimensions from '../../utils/getWindowDimensions';
|
|
||||||
import styles from './qrModalStyles';
|
import styles from './qrModalStyles';
|
||||||
|
import { useAppDispatch, useAppSelector } from '../../hooks';
|
||||||
|
import { toggleQRModal } from '../../redux/actions/uiAction';
|
||||||
|
import QRCodeScanner from 'react-native-qrcode-scanner';
|
||||||
|
import { deepLinkParser } from '../../utils/deepLinkParser';
|
||||||
|
import { useIntl } from 'react-intl';
|
||||||
|
import { navigate } from '../../navigation/service';
|
||||||
|
import { Icon } from '..';
|
||||||
|
import { Dimensions } from 'react-native';
|
||||||
|
import { check, request, PERMISSIONS, RESULTS, openSettings } from 'react-native-permissions';
|
||||||
|
import getWindowDimensions from '../../utils/getWindowDimensions';
|
||||||
|
|
||||||
export interface QRModalProps {}
|
export interface QRModalProps {}
|
||||||
|
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
/* eslint-disable react/no-unused-state */
|
/* eslint-disable react/no-unused-state */
|
||||||
|
import React, { Component } from 'react';
|
||||||
|
import { View, Dimensions, Text } from 'react-native';
|
||||||
import MultiSlider from '@esteemapp/react-native-multi-slider';
|
import MultiSlider from '@esteemapp/react-native-multi-slider';
|
||||||
import get from 'lodash/get';
|
import get from 'lodash/get';
|
||||||
import React, { Component } from 'react';
|
|
||||||
import { Text, View } from 'react-native';
|
|
||||||
import getWindowDimensions from '../../utils/getWindowDimensions';
|
|
||||||
import styles from './scaleSliderStyles';
|
import styles from './scaleSliderStyles';
|
||||||
|
import getWindowDimensions from '../../utils/getWindowDimensions';
|
||||||
|
|
||||||
export default class ScaleSliderView extends Component {
|
export default class ScaleSliderView extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
@ -1,16 +1,18 @@
|
|||||||
import React, { PureComponent } from 'react';
|
import React, { PureComponent } from 'react';
|
||||||
|
import { connect } from 'react-redux';
|
||||||
import {
|
import {
|
||||||
Animated,
|
|
||||||
Dimensions,
|
|
||||||
Platform,
|
|
||||||
Text,
|
Text,
|
||||||
|
View,
|
||||||
|
Animated,
|
||||||
TouchableNativeFeedback,
|
TouchableNativeFeedback,
|
||||||
TouchableOpacity,
|
TouchableOpacity,
|
||||||
View,
|
Platform,
|
||||||
|
Dimensions,
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
import { connect } from 'react-redux';
|
|
||||||
// Styles
|
// Styles
|
||||||
import styles from './tabBarStyles';
|
import styles from './tabBarStyles';
|
||||||
|
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
||||||
|
|
||||||
class TabBar extends PureComponent {
|
class TabBar extends PureComponent {
|
||||||
/* Props
|
/* Props
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { ImageStyle, StyleSheet, TextStyle, ViewStyle } from 'react-native';
|
import { TextStyle, StyleSheet, ViewStyle, Dimensions, ImageStyle } from 'react-native';
|
||||||
import EStyleSheet from 'react-native-extended-stylesheet';
|
import EStyleSheet from 'react-native-extended-stylesheet';
|
||||||
import getWindowDimensions from '../../utils/getWindowDimensions';
|
import getWindowDimensions from '../../utils/getWindowDimensions';
|
||||||
|
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
import React, { useEffect, useRef, useState } from 'react';
|
import React, { useState, useRef, useEffect } from 'react';
|
||||||
import { ActivityIndicator, StyleSheet, View } from 'react-native';
|
import { Dimensions } from 'react-native';
|
||||||
import MediaControls, { PLAYER_STATES } from 'react-native-media-controls';
|
import { View, StyleSheet, ActivityIndicator } from 'react-native';
|
||||||
import Orientation from 'react-native-orientation-locker';
|
|
||||||
import Video from 'react-native-video';
|
|
||||||
import WebView from 'react-native-webview';
|
import WebView from 'react-native-webview';
|
||||||
import YoutubeIframe, { InitialPlayerParams } from 'react-native-youtube-iframe';
|
import YoutubeIframe, { InitialPlayerParams } from 'react-native-youtube-iframe';
|
||||||
|
import Video from 'react-native-video';
|
||||||
|
import MediaControls, { PLAYER_STATES } from 'react-native-media-controls';
|
||||||
|
import Orientation from 'react-native-orientation-locker';
|
||||||
import getWindowDimensions from '../../utils/getWindowDimensions';
|
import getWindowDimensions from '../../utils/getWindowDimensions';
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,15 +1,17 @@
|
|||||||
import React, { useEffect, useState } from 'react';
|
import React, { Fragment, useEffect, useState } from 'react';
|
||||||
import { OrientationLocker, PORTRAIT } from 'react-native-orientation-locker';
|
import { Dimensions } from 'react-native';
|
||||||
import SplashScreen from 'react-native-splash-screen';
|
import SplashScreen from 'react-native-splash-screen';
|
||||||
|
|
||||||
|
import { OrientationLocker, PORTRAIT, LANDSCAPE } from 'react-native-orientation-locker';
|
||||||
import { useDispatch } from 'react-redux';
|
import { useDispatch } from 'react-redux';
|
||||||
import { Modal } from '../../components';
|
|
||||||
import { setDeviceOrientation } from '../../redux/actions/uiAction';
|
|
||||||
import LaunchScreen from '../launch';
|
|
||||||
import { PinCode } from '../pinCode';
|
|
||||||
import ApplicationContainer from './container/applicationContainer';
|
import ApplicationContainer from './container/applicationContainer';
|
||||||
import ApplicationScreen from './screen/applicationScreen';
|
|
||||||
import ErrorBoundary from './screen/errorBoundary';
|
|
||||||
import WelcomeScreen from './screen/welcomeScreen';
|
import WelcomeScreen from './screen/welcomeScreen';
|
||||||
|
import ApplicationScreen from './screen/applicationScreen';
|
||||||
|
import LaunchScreen from '../launch';
|
||||||
|
import { Modal } from '../../components';
|
||||||
|
import { PinCode } from '../pinCode';
|
||||||
|
import ErrorBoundary from './screen/errorBoundary';
|
||||||
|
import { setDeviceOrientation } from '../../redux/actions/uiAction';
|
||||||
|
|
||||||
const Application = () => {
|
const Application = () => {
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Platform } from 'react-native';
|
import { Dimensions, Platform } from 'react-native';
|
||||||
import EStyleSheet from 'react-native-extended-stylesheet';
|
import EStyleSheet from 'react-native-extended-stylesheet';
|
||||||
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
||||||
import scalePx from '../../../utils/scalePx';
|
import scalePx from '../../../utils/scalePx';
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import React, { useState } from 'react';
|
import React, { useState, useEffect } from 'react'
|
||||||
import { View } from 'react-native';
|
import { View, Dimensions } from 'react-native'
|
||||||
import { RangeSelector } from '.';
|
import { RangeSelector } from '.';
|
||||||
import { SimpleChart } from '../../../components';
|
import { SimpleChart } from '../../../components'
|
||||||
import { useAppSelector } from '../../../hooks';
|
import { useAppSelector } from '../../../hooks';
|
||||||
import { fetchMarketChart } from '../../../providers/coingecko/coingecko';
|
import { fetchMarketChart } from '../../../providers/coingecko/coingecko';
|
||||||
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
||||||
|
@ -1,22 +1,25 @@
|
|||||||
import React, { Fragment, useEffect, useState } from 'react';
|
import React, { Fragment } from 'react';
|
||||||
|
import { useEffect, useState } from 'react';
|
||||||
import { useIntl } from 'react-intl';
|
import { useIntl } from 'react-intl';
|
||||||
import {
|
import {
|
||||||
Alert, FlatList,
|
Alert,
|
||||||
|
Dimensions,
|
||||||
|
FlatList,
|
||||||
ScrollView,
|
ScrollView,
|
||||||
Text,
|
Text,
|
||||||
TouchableOpacity,
|
TouchableOpacity,
|
||||||
View
|
View,
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
import AutoHeightWebView from 'react-native-autoheight-webview';
|
import { BasicHeader, Icon, PostPlaceHolder, TextInput } from '../../components';
|
||||||
|
|
||||||
// styles
|
// styles
|
||||||
import EStyleSheet from 'react-native-extended-stylesheet';
|
import EStyleSheet from 'react-native-extended-stylesheet';
|
||||||
import { BasicHeader, Icon, PostPlaceHolder, TextInput } from '../../components';
|
|
||||||
import { getCommentHistory } from '../../providers/ecency/ecency';
|
|
||||||
import getWindowDimensions from '../../utils/getWindowDimensions';
|
|
||||||
import { dateToFormatted } from '../../utils/time';
|
|
||||||
import styles from './editHistoryScreenStyles';
|
import styles from './editHistoryScreenStyles';
|
||||||
|
import { getCommentHistory } from '../../providers/ecency/ecency';
|
||||||
|
import { dateToFormatted } from '../../utils/time';
|
||||||
|
import AutoHeightWebView from 'react-native-autoheight-webview';
|
||||||
import historyBuilder from './historyBuilder';
|
import historyBuilder from './historyBuilder';
|
||||||
|
import getWindowDimensions from '../../utils/getWindowDimensions';
|
||||||
|
|
||||||
export interface CommentHistoryListItemDiff {
|
export interface CommentHistoryListItemDiff {
|
||||||
title: string;
|
title: string;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { ImageStyle, StyleSheet, TextStyle, ViewStyle } from 'react-native';
|
import { TextStyle, StyleSheet, ViewStyle, Dimensions, ImageStyle } from 'react-native';
|
||||||
import EStyleSheet from 'react-native-extended-stylesheet';
|
import EStyleSheet from 'react-native-extended-stylesheet';
|
||||||
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
|
import { View, Text, Dimensions, TouchableOpacity, ActivityIndicator } from 'react-native';
|
||||||
import React, { ComponentType, Fragment, useEffect, useState } from 'react';
|
import React, { ComponentType, Fragment, useEffect, useState } from 'react';
|
||||||
import { useIntl } from 'react-intl';
|
|
||||||
import { ActivityIndicator, Text, TouchableOpacity, View } from 'react-native';
|
|
||||||
import EStyleSheet from 'react-native-extended-stylesheet';
|
|
||||||
import { Icon, MainButton, SimpleChart } from '../../../components';
|
|
||||||
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
|
||||||
import styles from './children.styles';
|
import styles from './children.styles';
|
||||||
|
import { Icon, MainButton, SimpleChart } from '../../../components';
|
||||||
|
import { useIntl } from 'react-intl';
|
||||||
|
import EStyleSheet from 'react-native-extended-stylesheet';
|
||||||
|
import getWindowDimensions from '../../../utils/getWindowDimensions';
|
||||||
|
|
||||||
export interface CoinCardProps {
|
export interface CoinCardProps {
|
||||||
id: string;
|
id: string;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Platform, StatusBar } from 'react-native';
|
import { Dimensions, Platform, StatusBar } from 'react-native';
|
||||||
import getWindowDimensions from '../utils/getWindowDimensions';
|
import getWindowDimensions from '../utils/getWindowDimensions';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Platform, StatusBar } from 'react-native';
|
import { Dimensions, Platform, StatusBar } from 'react-native';
|
||||||
import getWindowDimensions from '../utils/getWindowDimensions';
|
import getWindowDimensions from '../utils/getWindowDimensions';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { PixelRatio, Platform } from 'react-native';
|
import { Dimensions, PixelRatio, Platform } from 'react-native';
|
||||||
import getWindowDimensions from './getWindowDimensions';
|
import getWindowDimensions from './getWindowDimensions';
|
||||||
|
|
||||||
const { width: SCREEN_WIDTH } = getWindowDimensions();
|
const { width: SCREEN_WIDTH } = getWindowDimensions();
|
||||||
|
@ -8914,9 +8914,9 @@ react-native-os@^1.0.1:
|
|||||||
integrity sha512-OlT+xQAcvkcnf7imgXiu+myMkqDt4xw2bP5SlVo19hEn5XHBkPMLX7dk3sSGxxncH/ToMDsf1KLyrPabNVtadA==
|
integrity sha512-OlT+xQAcvkcnf7imgXiu+myMkqDt4xw2bP5SlVo19hEn5XHBkPMLX7dk3sSGxxncH/ToMDsf1KLyrPabNVtadA==
|
||||||
|
|
||||||
react-native-pager-view@^5.4.22:
|
react-native-pager-view@^5.4.22:
|
||||||
version "5.4.24"
|
version "5.4.22"
|
||||||
resolved "https://registry.yarnpkg.com/react-native-pager-view/-/react-native-pager-view-5.4.24.tgz#8626e757ddc55e41eca66d2f8a8a75aec54591ee"
|
resolved "https://registry.yarnpkg.com/react-native-pager-view/-/react-native-pager-view-5.4.22.tgz#6a987274761f75fa018254756744004e20326d83"
|
||||||
integrity sha512-dRMB7i3B+mu4NCeIN6gqbR/kC/rr2wzqO0gisXDdJwJr78G24sWoTNpLEDFo3G8TFHY9nTMutVl5CUvkN2dp6g==
|
integrity sha512-9+LjgK+iOiWJJt3Zj7i8Vwarkg9dvVCm8LxrWZFzOzwjtCcQ6K4YrlbPZ5EOb5aFDcMH+eKAty0OQoUIM9n2vA==
|
||||||
|
|
||||||
react-native-permissions@^2.0.2:
|
react-native-permissions@^2.0.2:
|
||||||
version "2.2.2"
|
version "2.2.2"
|
||||||
|
Loading…
Reference in New Issue
Block a user