mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-28 10:22:38 +03:00
changed components to PureComponent
This commit is contained in:
parent
1415c6369a
commit
b3065b9a7b
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { View, TouchableHighlight, Animated } from 'react-native';
|
||||
|
||||
// Constants
|
||||
@ -9,7 +9,7 @@ import { ContainerHeader } from '../../containerHeader';
|
||||
// eslint-disable-next-line
|
||||
import styles from './collapsibleCardStyles';
|
||||
|
||||
class CollapsibleCardView extends Component {
|
||||
class CollapsibleCardView extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } expanded - For is collapsible open or close declaration prop.
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { View, FlatList } from 'react-native';
|
||||
|
||||
// Constants
|
||||
@ -12,7 +12,7 @@ import { IconButton } from '../../iconButton';
|
||||
// Styles
|
||||
// import styles from './commentStyles';
|
||||
|
||||
class CommentsView extends Component {
|
||||
class CommentsView extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
|
@ -1,14 +1,14 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
|
||||
import { CommentsDisplayView } from '..';
|
||||
|
||||
/*
|
||||
* Props Name Description Value
|
||||
*@props --> props name here description here Value Type Here
|
||||
*
|
||||
*/
|
||||
* Props Name Description Value
|
||||
*@props --> props name here description here Value Type Here
|
||||
*
|
||||
*/
|
||||
|
||||
class CommentsContainer extends Component {
|
||||
class CommentsContainer extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component, Fragment } from 'react';
|
||||
import React, { PureComponent, Fragment } from 'react';
|
||||
import { View } from 'react-native';
|
||||
|
||||
// Constants
|
||||
@ -10,7 +10,7 @@ import { Comments } from '../../comments';
|
||||
// Styles
|
||||
// import styles from './commentsDisplayStyles';
|
||||
|
||||
class CommentsDisplayView extends Component {
|
||||
class CommentsDisplayView extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { View, Text } from 'react-native';
|
||||
import Ionicons from 'react-native-vector-icons/Ionicons';
|
||||
|
||||
@ -9,12 +9,12 @@ import Ionicons from 'react-native-vector-icons/Ionicons';
|
||||
// Styles
|
||||
import styles from './containerHeaderStyles';
|
||||
|
||||
class ContainerHeaderView extends Component {
|
||||
class ContainerHeaderView extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } title - Renderable title for header.
|
||||
*
|
||||
*/
|
||||
* ------------------------------------------------
|
||||
* @prop { type } title - Renderable title for header.
|
||||
*
|
||||
*/
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { View, Text } from 'react-native';
|
||||
// Constants
|
||||
|
||||
@ -7,7 +7,7 @@ import { View, Text } from 'react-native';
|
||||
import styles from './summaryAreaStyles';
|
||||
import globalStyles from '../../../../globalStyles';
|
||||
|
||||
export default class SummaryAreaView extends Component {
|
||||
export default class SummaryAreaView extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
|
@ -1,14 +1,14 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
// Constants
|
||||
|
||||
// Components
|
||||
import { MarkdownEditor } from '../../../markdownEditor';
|
||||
|
||||
export default class TextAreaView extends Component {
|
||||
export default class TextAreaView extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
*/
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
*/
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { withNavigation } from 'react-navigation';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
@ -17,7 +17,7 @@ import { HeaderView } from '..';
|
||||
*
|
||||
*/
|
||||
|
||||
class HeaderContainer extends Component {
|
||||
class HeaderContainer extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
|
@ -1,10 +1,10 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
// Components
|
||||
import { Icon } from '..';
|
||||
|
||||
class IconContainer extends Component {
|
||||
class IconContainer extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component, Fragment } from 'react';
|
||||
import React, { PureComponent, Fragment } from 'react';
|
||||
|
||||
import { Platform, View, Text } from 'react-native';
|
||||
|
||||
@ -12,7 +12,7 @@ import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
|
||||
|
||||
import styles from './iconStyles';
|
||||
|
||||
class IconView extends Component {
|
||||
class IconView extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { View, Text } from 'react-native';
|
||||
import Ionicons from 'react-native-vector-icons/Ionicons';
|
||||
|
||||
@ -9,13 +9,13 @@ import Ionicons from 'react-native-vector-icons/Ionicons';
|
||||
// Styles
|
||||
import styles from './informationAreaStyles';
|
||||
|
||||
class FormInputView extends Component {
|
||||
class FormInputView extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { string } description - Description texts.
|
||||
* @prop { string } iconName - For icon render name.
|
||||
*
|
||||
*/
|
||||
* ------------------------------------------------
|
||||
* @prop { string } description - Description texts.
|
||||
* @prop { string } iconName - For icon render name.
|
||||
*
|
||||
*/
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { View } from 'react-native';
|
||||
|
||||
// Constants
|
||||
@ -7,15 +7,15 @@ import { View } from 'react-native';
|
||||
|
||||
// Styles
|
||||
// eslint-disable-next-line
|
||||
import styles from "./leaderBoardStyles";
|
||||
import styles from './leaderBoardStyles';
|
||||
|
||||
/*
|
||||
* Props Name Description Value
|
||||
*@props --> props name here description here Value Type Here
|
||||
*
|
||||
*/
|
||||
* Props Name Description Value
|
||||
*@props --> props name here description here Value Type Here
|
||||
*
|
||||
*/
|
||||
|
||||
class LeaderBoardView extends Component {
|
||||
class LeaderBoardView extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import {
|
||||
View, Text, Image, SafeAreaView,
|
||||
} from 'react-native';
|
||||
@ -10,7 +10,7 @@ import { LineBreak } from '../../basicUIElements';
|
||||
// Styles
|
||||
import styles from './loginHeaderStyles';
|
||||
|
||||
class LoginHeaderView extends Component {
|
||||
class LoginHeaderView extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { string } title - Title for header string.
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import {
|
||||
Modal as ModalBox, View, Text, SafeAreaView,
|
||||
} from 'react-native';
|
||||
@ -12,7 +12,7 @@ import styles from './modalStyles';
|
||||
*
|
||||
*/
|
||||
|
||||
export default class Modal extends Component {
|
||||
export default class Modal extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
@ -50,7 +50,7 @@ export default class Modal extends Component {
|
||||
isFullScreen ? styles.fullModal : styles.centerModal,
|
||||
]}
|
||||
transparent={isTransparent}
|
||||
animationType={animationType || "fade"}
|
||||
animationType={animationType || 'fade'}
|
||||
visible={isOpen}
|
||||
onRequestClose={() => this._handleOnClose(this)}
|
||||
onShow={() => this._handleOnOpen(this)}
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component, Fragment } from 'react';
|
||||
import React, { PureComponent, Fragment } from 'react';
|
||||
import { View, ScrollView, FlatList } from 'react-native';
|
||||
import { injectIntl } from 'react-intl';
|
||||
|
||||
@ -17,7 +17,7 @@ import {
|
||||
// Styles
|
||||
import styles from './notificationStyles';
|
||||
|
||||
class NotificationView extends Component {
|
||||
class NotificationView extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import {
|
||||
View, Text, Image, TouchableHighlight,
|
||||
} from 'react-native';
|
||||
@ -12,7 +12,7 @@ import { injectIntl } from 'react-intl';
|
||||
// eslint-disable-next-line
|
||||
import styles from './notificationLineStyles';
|
||||
|
||||
class NotificationLineView extends Component {
|
||||
class NotificationLineView extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
|
@ -1,14 +1,14 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { View } from 'react-native';
|
||||
|
||||
import { CircularButton, IconButton } from '../..';
|
||||
|
||||
import styles from './numericKeyboardStyles';
|
||||
|
||||
class NumericKeyboard extends Component {
|
||||
class NumericKeyboard extends PureComponent {
|
||||
/* Props
|
||||
* @prop { func } onPress - Function will trigger when any button clicked.
|
||||
*/
|
||||
* @prop { func } onPress - Function will trigger when any button clicked.
|
||||
*/
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
|
@ -1,7 +1,5 @@
|
||||
import React, { Component } from 'react';
|
||||
import {
|
||||
View, Dimensions, Text, TouchableOpacity,
|
||||
} from 'react-native';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { View, Dimensions, Text } from 'react-native';
|
||||
|
||||
// Constants
|
||||
|
||||
@ -10,7 +8,7 @@ import {
|
||||
// Styles
|
||||
import styles from './percentBarStyles';
|
||||
|
||||
class PercentBarView extends Component {
|
||||
class PercentBarView extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { string } barColor - Bar color proferties
|
||||
|
@ -1,10 +1,10 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { Animated } from 'react-native';
|
||||
|
||||
// Styles
|
||||
import styles from './pinAnimatedInputStyles';
|
||||
|
||||
class PinAnimatedInput extends Component {
|
||||
class PinAnimatedInput extends PureComponent {
|
||||
/* Props
|
||||
*
|
||||
* @prop { string } pin - Description.
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import { withNavigation } from 'react-navigation';
|
||||
import { isCollapsePostButton } from '../../../redux/actions/uiAction';
|
||||
@ -6,7 +6,7 @@ import { isCollapsePostButton } from '../../../redux/actions/uiAction';
|
||||
// Components
|
||||
import { PostButtonView } from '..';
|
||||
|
||||
class PostButtonContainer extends Component {
|
||||
class PostButtonContainer extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { withNavigation } from 'react-navigation';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
@ -15,7 +15,7 @@ import { default as ROUTES } from '../../../constants/routeNames';
|
||||
*
|
||||
*/
|
||||
|
||||
class PostCardContainer extends Component {
|
||||
class PostCardContainer extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import { withNavigation } from 'react-navigation';
|
||||
import { Alert } from 'react-native';
|
||||
@ -24,7 +24,7 @@ import { PostDropdownView } from '..';
|
||||
*
|
||||
*/
|
||||
|
||||
class PostDropdownContainer extends Component {
|
||||
class PostDropdownContainer extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
|
@ -1,10 +1,10 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
|
||||
// Constants
|
||||
// Components
|
||||
import { DropdownButton } from '../../dropdownButton';
|
||||
|
||||
class PostDropdownView extends Component {
|
||||
class PostDropdownView extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component, Fragment } from 'react';
|
||||
import React, { PureComponent, Fragment } from 'react';
|
||||
import { Dimensions, Linking } from 'react-native';
|
||||
import { withNavigation } from 'react-navigation';
|
||||
import HTML from 'react-native-html-renderer';
|
||||
@ -12,7 +12,7 @@ import { default as ROUTES } from '../../../../constants/routeNames';
|
||||
|
||||
const WIDTH = Dimensions.get('window').width;
|
||||
|
||||
class PostBody extends Component {
|
||||
class PostBody extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { View, Text, TouchableOpacity } from 'react-native';
|
||||
import { withNavigation } from 'react-navigation';
|
||||
|
||||
@ -15,7 +15,7 @@ import { default as ROUTES } from '../../../../constants/routeNames';
|
||||
// Constants
|
||||
const DEFAULT_IMAGE = require('../../../../assets/esteem.png');
|
||||
|
||||
class PostHeaderDescription extends Component {
|
||||
class PostHeaderDescription extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { View, FlatList } from 'react-native';
|
||||
|
||||
// Components
|
||||
@ -8,12 +8,12 @@ import { Tag } from '../../../basicUIElements';
|
||||
import styles from './tagsStyles';
|
||||
|
||||
// Constants
|
||||
class TagsView extends Component {
|
||||
class TagsView extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
}
|
||||
|
||||
// TODO: Can be stateless
|
||||
// Component Life Cycles
|
||||
|
||||
// Component Functions
|
||||
|
@ -1,6 +1,6 @@
|
||||
import React, { Component, Fragment } from 'react';
|
||||
import React, { PureComponent, Fragment } from 'react';
|
||||
|
||||
class PostFormView extends Component {
|
||||
class PostFormView extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component, Fragment } from 'react';
|
||||
import React, { PureComponent, Fragment } from 'react';
|
||||
import {
|
||||
View, Text, ScrollView, Dimensions,
|
||||
} from 'react-native';
|
||||
@ -16,7 +16,8 @@ import { CommentsDisplay } from '../../commentsDisplay';
|
||||
import styles from './postDisplayStyles';
|
||||
|
||||
const HEIGHT = Dimensions.get('window').width;
|
||||
class PostDisplayView extends Component {
|
||||
|
||||
class PostDisplayView extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component, Fragment } from 'react';
|
||||
import React, { PureComponent, Fragment } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
// Component
|
||||
@ -13,7 +13,7 @@ import { isCollapsePostButton } from '../../../redux/actions/uiAction';
|
||||
*
|
||||
*/
|
||||
|
||||
class PostsContainer extends Component {
|
||||
class PostsContainer extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component, Fragment } from 'react';
|
||||
import React, { PureComponent, Fragment } from 'react';
|
||||
import {
|
||||
View,
|
||||
Image,
|
||||
@ -23,7 +23,7 @@ import styles from './profileSummaryStyles';
|
||||
|
||||
const DEVICE_WIDTH = Dimensions.get('window').width;
|
||||
|
||||
class ProfileSummaryView extends Component {
|
||||
class ProfileSummaryView extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { withNavigation } from 'react-navigation';
|
||||
|
||||
// Services and Actions
|
||||
@ -16,12 +16,12 @@ import { default as ROUTES } from '../../../constants/routeNames';
|
||||
import { SearchModalView } from '..';
|
||||
|
||||
/*
|
||||
* Props Name Description Value
|
||||
*@props --> props name here description here Value Type Here
|
||||
*
|
||||
*/
|
||||
* Props Name Description Value
|
||||
*@props --> props name here description here Value Type Here
|
||||
*
|
||||
*/
|
||||
|
||||
class SearchModalContainer extends Component {
|
||||
class SearchModalContainer extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component, Fragment } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import {
|
||||
View, Text, TextInput, FlatList, TouchableHighlight, SafeAreaView,
|
||||
} from 'react-native';
|
||||
@ -15,7 +15,7 @@ import { Modal } from '../..';
|
||||
// eslint-disable-next-line
|
||||
import styles from './searchModalStyles';
|
||||
|
||||
class SearchModalView extends Component {
|
||||
class SearchModalView extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { View, Text } from 'react-native';
|
||||
|
||||
// Constants
|
||||
@ -10,7 +10,7 @@ import { ToggleSwitch } from '../../toggleSwitch';
|
||||
// Styles
|
||||
import styles from './settingsItemStyles';
|
||||
|
||||
class SettingsItemView extends Component {
|
||||
class SettingsItemView extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import {
|
||||
Text,
|
||||
@ -13,7 +13,7 @@ import {
|
||||
// Styles
|
||||
import styles from './tabBarStyles';
|
||||
|
||||
class TabBar extends Component {
|
||||
class TabBar extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------ TODO: Fill fallowlines
|
||||
* @prop { type } name - Description.
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { View, TouchableOpacity, Animated } from 'react-native';
|
||||
|
||||
// Constants
|
||||
@ -9,7 +9,7 @@ import { View, TouchableOpacity, Animated } from 'react-native';
|
||||
// eslint-disable-next-line
|
||||
import styles from './toggleSwitchStyles';
|
||||
|
||||
class ToggleSwitchView extends Component {
|
||||
class ToggleSwitchView extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
|
||||
// Component
|
||||
import { TransactionView } from '..';
|
||||
@ -10,7 +10,7 @@ import { TransactionView } from '..';
|
||||
*
|
||||
*/
|
||||
|
||||
class TransactionContainer extends Component {
|
||||
class TransactionContainer extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component, Fragment } from 'react';
|
||||
import React, { PureComponent, Fragment } from 'react';
|
||||
import { injectIntl } from 'react-intl';
|
||||
|
||||
// Utilities
|
||||
@ -9,7 +9,7 @@ import { getTransactionData } from '../../../utils/wallet';
|
||||
import { WalletLineItem, Card } from '../../basicUIElements';
|
||||
import { CollapsibleCard } from '../../collapsibleCard';
|
||||
|
||||
class TransactionView extends Component {
|
||||
class TransactionView extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
// Realm
|
||||
@ -16,7 +16,7 @@ import { UpvoteView } from '..';
|
||||
*
|
||||
*/
|
||||
|
||||
class UpvoteContainer extends Component {
|
||||
class UpvoteContainer extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { withNavigation } from 'react-navigation';
|
||||
|
||||
// Services and Actions
|
||||
@ -14,12 +14,12 @@ import { default as ROUTES } from '../../../constants/routeNames';
|
||||
import { VotersDisplayView } from '..';
|
||||
|
||||
/*
|
||||
* Props Name Description Value
|
||||
*@props --> props name here description here Value Type Here
|
||||
*
|
||||
*/
|
||||
* Props Name Description Value
|
||||
*@props --> props name here description here Value Type Here
|
||||
*
|
||||
*/
|
||||
|
||||
class VotersDisplayContainer extends Component {
|
||||
class VotersDisplayContainer extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component, Fragment } from 'react';
|
||||
import React, { PureComponent, Fragment } from 'react';
|
||||
import { View, Text, ScrollView } from 'react-native';
|
||||
import Ionicons from 'react-native-vector-icons/Ionicons';
|
||||
|
||||
@ -14,7 +14,7 @@ import { WalletDetailsPlaceHolder } from '../../basicUIElements';
|
||||
// Styles
|
||||
import styles from './walletStyles';
|
||||
|
||||
class WalletView extends Component {
|
||||
class WalletView extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
|
||||
// Component
|
||||
import { WalletDetailsView } from '..';
|
||||
@ -10,7 +10,7 @@ import { WalletDetailsView } from '..';
|
||||
*
|
||||
*/
|
||||
|
||||
class WalletContainer extends Component {
|
||||
class WalletContainer extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { View } from 'react-native';
|
||||
|
||||
// Constants
|
||||
@ -13,7 +13,7 @@ import { vestsToSp } from '../../../utils/conversions';
|
||||
// eslint-disable-next-line
|
||||
import styles from './walletDetailsStyles';
|
||||
|
||||
class WalletDetailsView extends Component {
|
||||
class WalletDetailsView extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import {
|
||||
View, Text, FlatList, ActivityIndicator,
|
||||
} from 'react-native';
|
||||
@ -13,7 +13,7 @@ import { UserListItem } from '../../../components/basicUIElements';
|
||||
// Utils
|
||||
import styles from './followScreenStyles';
|
||||
|
||||
class FollowsScreen extends Component {
|
||||
class FollowsScreen extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
// Component
|
||||
@ -10,7 +10,7 @@ import { HomeScreen } from '..';
|
||||
*
|
||||
*/
|
||||
|
||||
class HomeContainer extends Component {
|
||||
class HomeContainer extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component, Fragment } from 'react';
|
||||
import React, { PureComponent, Fragment } from 'react';
|
||||
import { View, Text } from 'react-native';
|
||||
|
||||
// Constants
|
||||
@ -9,7 +9,7 @@ import { Logo } from '../../../components';
|
||||
|
||||
// import styles from './launchStyles';
|
||||
|
||||
class LaunchScreen extends Component {
|
||||
class LaunchScreen extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
// Services and Actions
|
||||
@ -13,12 +13,12 @@ import { connect } from 'react-redux';
|
||||
import { LoginScreen } from '..';
|
||||
|
||||
/*
|
||||
* Props Name Description Value
|
||||
*@props --> props name here description here Value Type Here
|
||||
*
|
||||
*/
|
||||
* Props Name Description Value
|
||||
*@props --> props name here description here Value Type Here
|
||||
*
|
||||
*/
|
||||
|
||||
class LoginContainer extends Component {
|
||||
class LoginContainer extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import {
|
||||
View, Linking, StatusBar, Platform, Alert,
|
||||
} from 'react-native';
|
||||
@ -19,12 +19,12 @@ import { FormInput } from '../../../components/formInput';
|
||||
import { InformationArea } from '../../../components/informationArea';
|
||||
import { Login } from '../../../providers/steem/auth';
|
||||
import { LoginHeader } from '../../../components/loginHeader';
|
||||
import { lookupAccounts } from '../../../providers/steem/dsteem';
|
||||
import { MainButton } from '../../../components/mainButton';
|
||||
import { Modal } from '../../../components';
|
||||
import { TabBar } from '../../../components/tabBar';
|
||||
import { TextButton } from '../../../components/buttons';
|
||||
import { lookupAccounts } from '../../../providers/steem/dsteem';
|
||||
import STEEM_CONNECT_LOGO from '../../../assets/steem_connect.png';
|
||||
import { Modal } from '../../../components';
|
||||
import SteemConnect from '../../steem-connect/steemConnect';
|
||||
|
||||
// Constants
|
||||
@ -33,7 +33,7 @@ import { default as ROUTES } from '../../../constants/routeNames';
|
||||
// Styles
|
||||
import styles from './loginStyles';
|
||||
|
||||
class LoginScreen extends Component {
|
||||
class LoginScreen extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
|
@ -1,24 +1,15 @@
|
||||
import React, { Component } from 'react';
|
||||
// import { connect } from 'react-redux';
|
||||
|
||||
// Services and Actions
|
||||
|
||||
// Middleware
|
||||
|
||||
// Constants
|
||||
|
||||
// Utilities
|
||||
import React, { PureComponent } from 'react';
|
||||
|
||||
// Component
|
||||
import { MessagesScreen } from '..';
|
||||
|
||||
/*
|
||||
* Props Name Description Value
|
||||
*@props --> props name here description here Value Type Here
|
||||
*
|
||||
*/
|
||||
* Props Name Description Value
|
||||
*@props --> props name here description here Value Type Here
|
||||
*
|
||||
*/
|
||||
|
||||
class MessagesContainer extends Component {
|
||||
class MessagesContainer extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
@ -29,9 +20,6 @@ class MessagesContainer extends Component {
|
||||
// Component Functions
|
||||
|
||||
render() {
|
||||
// eslint-disable-next-line
|
||||
//const {} = this.props;
|
||||
|
||||
return <MessagesScreen {...this.props} />;
|
||||
}
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component, Fragment } from 'react';
|
||||
import React, { PureComponent, Fragment } from 'react';
|
||||
import { injectIntl } from 'react-intl';
|
||||
|
||||
// Constants
|
||||
@ -11,11 +11,11 @@ import { NoPost } from '../../../components/basicUIElements';
|
||||
import styles from './messagesStyle';
|
||||
import MESSAGES_IMAGE from '../../../assets/keep_calm.png';
|
||||
|
||||
class MessagesScreen extends Component {
|
||||
class MessagesScreen extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
*/
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
*/
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
@ -13,7 +13,6 @@ import { NoPost } from '../../../components/basicUIElements';
|
||||
|
||||
// Styles
|
||||
import MESSAGES_IMAGE from '../../../assets/keep_calm.png';
|
||||
import globalStyles from '../../../globalStyles';
|
||||
|
||||
class NotificationScreen extends PureComponent {
|
||||
constructor(props) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { Text, TouchableOpacity, View } from 'react-native';
|
||||
|
||||
import { NumericKeyboard, PinAnimatedInput } from '../../../components';
|
||||
@ -6,7 +6,7 @@ import { UserAvatar } from '../../../components/userAvatar';
|
||||
|
||||
import styles from './pinCodeStyles';
|
||||
|
||||
class PinCodeScreen extends Component {
|
||||
class PinCodeScreen extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component, Fragment } from 'react';
|
||||
import React, { PureComponent, Fragment } from 'react';
|
||||
|
||||
// Constants
|
||||
|
||||
@ -7,7 +7,7 @@ import { BasicHeader } from '../../../components/basicHeader';
|
||||
import { PostDisplay } from '../../../components/postView';
|
||||
import { PostDropdown } from '../../../components/postDropdown';
|
||||
|
||||
class PostScreen extends Component {
|
||||
class PostScreen extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component, Fragment } from 'react';
|
||||
import React, { PureComponent, Fragment } from 'react';
|
||||
import { View, ScrollView } from 'react-native';
|
||||
import { injectIntl } from 'react-intl';
|
||||
|
||||
@ -20,7 +20,7 @@ import { getRcPower, getVotingPower } from '../../../utils/manaBar';
|
||||
// Styles
|
||||
import styles from './profileStyles';
|
||||
|
||||
class ProfileScreen extends Component {
|
||||
class ProfileScreen extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
|
@ -1,11 +1,10 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { ScrollView, View } from 'react-native';
|
||||
import { injectIntl } from 'react-intl';
|
||||
|
||||
// Constants
|
||||
import LANGUAGE, { VALUE as LANGUAGE_VALUE } from '../../../constants/options/language';
|
||||
import CURRENCY, { VALUE as CURRENCY_VALUE } from '../../../constants/options/currency';
|
||||
import API, { VALUE as API_VALUE } from '../../../constants/options/api';
|
||||
|
||||
// Components
|
||||
import { BasicHeader } from '../../../components/basicHeader';
|
||||
@ -14,7 +13,7 @@ import { SettingsItem } from '../../../components/settingsItem';
|
||||
// Styles
|
||||
import globalStyles from '../../../globalStyles';
|
||||
|
||||
class SettingsScreen extends Component {
|
||||
class SettingsScreen extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { View, WebView, Alert } from 'react-native';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
@ -12,7 +12,7 @@ import { login as loginAction, openPinCodeModal } from '../../redux/actions/appl
|
||||
// Constants
|
||||
import { default as ROUTES } from '../../constants/routeNames';
|
||||
|
||||
class SteemConnect extends Component {
|
||||
class SteemConnect extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
@ -20,7 +20,7 @@ class SteemConnect extends Component {
|
||||
};
|
||||
}
|
||||
|
||||
onNavigationStateChange(event) {
|
||||
_onNavigationStateChange = (event) => {
|
||||
let accessToken;
|
||||
const { dispatch, setPinCodeState, handleOnModalClose } = this.props;
|
||||
const { isLoading } = this.state;
|
||||
@ -52,7 +52,7 @@ class SteemConnect extends Component {
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
render() {
|
||||
return (
|
||||
@ -65,7 +65,7 @@ class SteemConnect extends Component {
|
||||
steemConnectOptions.redirect_uri,
|
||||
)}&scope=${encodeURIComponent(steemConnectOptions.scope)}`,
|
||||
}}
|
||||
onNavigationStateChange={this.onNavigationStateChange.bind(this)}
|
||||
onNavigationStateChange={this._onNavigationStateChange}
|
||||
ref={(ref) => {
|
||||
this.webview = ref;
|
||||
}}
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
|
||||
// Services and Actions
|
||||
|
||||
@ -12,12 +12,12 @@ import React, { Component } from 'react';
|
||||
import { VotersScreen } from '..';
|
||||
|
||||
/*
|
||||
* Props Name Description Value
|
||||
*@props --> props name here description here Value Type Here
|
||||
*
|
||||
*/
|
||||
* Props Name Description Value
|
||||
*@props --> props name here description here Value Type Here
|
||||
*
|
||||
*/
|
||||
|
||||
class VotersContainer extends Component {
|
||||
class VotersContainer extends PureComponent {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {};
|
||||
|
@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react';
|
||||
import React, { PureComponent } from 'react';
|
||||
import { View } from 'react-native';
|
||||
import { injectIntl } from 'react-intl';
|
||||
|
||||
@ -13,11 +13,11 @@ import { VotersDisplay } from '../../../components/votersDisplay';
|
||||
import { isBefore } from '../../../utils/time';
|
||||
import globalStyles from '../../../globalStyles';
|
||||
|
||||
class VotersScreen extends Component {
|
||||
class VotersScreen extends PureComponent {
|
||||
/* Props
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
*/
|
||||
* ------------------------------------------------
|
||||
* @prop { type } name - Description....
|
||||
*/
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
Loading…
Reference in New Issue
Block a user