Skip to content

Commit

Permalink
use PureComponent for performance
Browse files Browse the repository at this point in the history
  • Loading branch information
ElegantSoft committed May 29, 2020
1 parent 28c84a5 commit 8fd4bdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/basic/Content.js
@@ -1,14 +1,14 @@
import { connectStyle } from 'native-base-shoutem-theme';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import React, { PureComponent } from 'react';
import { SafeAreaView } from 'react-native';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';

import variable from '../theme/variables/platform';
import mapPropsToStyleNames from '../utils/mapPropsToStyleNames';
import getStyle from '../utils/getStyle';

class Content extends Component {
class Content extends PureComponent {
static contextTypes = {
theme: PropTypes.object
};
Expand Down

0 comments on commit 8fd4bdc

Please sign in to comment.