File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1- import { Component } from "react" ;
1+ import { PureComponent } from "react" ;
22import PropTypes from "prop-types" ;
33
4- export default class CustomImageUnit extends Component {
4+ export default class CustomImageUnit extends PureComponent {
55 static propTypes = {
66 data : PropTypes . object . isRequired ,
77 source : PropTypes . any . isRequired ,
Original file line number Diff line number Diff line change 1- import React , { Component } from "react" ;
1+ import React , { PureComponent } from "react" ;
22import {
33 Image
44} from "react-native" ;
55import PropTypes from "prop-types" ;
66import Injector from "./Injector" ;
77
8- export default class ImageComponent extends Component {
8+ export default class ImageComponent extends PureComponent {
99 static propTypes = {
1010 width : PropTypes . number . isRequired ,
1111 height : PropTypes . number . isRequired ,
Original file line number Diff line number Diff line change 1- import React , { Component } from "react" ;
1+ import React , { PureComponent } from "react" ;
22import PropTypes from "prop-types" ;
33
4- export default class Injector extends Component {
4+ export default class Injector extends PureComponent {
55 static propTypes = {
66 defaultComponent : PropTypes . func ,
77 defaultProps : PropTypes . object ,
Original file line number Diff line number Diff line change 1- import React , { Component } from "react" ;
1+ import React , { PureComponent } from "react" ;
22import {
33 TouchableOpacity
44} from "react-native" ;
55import PropTypes from "prop-types" ;
66import ImageComponent from "./ImageComponent" ;
77
8- export default class TouchableImageComponent extends Component {
8+ export default class TouchableImageComponent extends PureComponent {
99 static propTypes = {
1010 data : PropTypes . object . isRequired ,
1111 source : PropTypes . any . isRequired ,
Original file line number Diff line number Diff line change 1- import React , { Component } from "react" ;
1+ import React , { PureComponent } from "react" ;
22import {
33 View
44} from "react-native" ;
@@ -7,7 +7,7 @@ import ImageComponent from "./ImageComponent";
77import TouchableImageComponent from "./TouchableImageComponent" ;
88import CustomImageUnit from "./CustomImageUnit" ;
99
10- export default class ImageCell extends Component {
10+ export default class ImageCell extends PureComponent {
1111 static propTypes = {
1212 data : PropTypes . object . isRequired ,
1313 source : PropTypes . any . isRequired ,
You can’t perform that action at this time.
0 commit comments