Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions ItemCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,12 @@ import {
TouchableHighlight,
} from 'react-native'
import Icon from 'react-native-vector-icons/FontAwesome'
import shallowCompare from 'react-addons-shallow-compare'

const IC_GREY_BORDER_COLOR = '#C8C7CC'

class ItemCell extends React.Component {
class ItemCell extends React.PureComponent {
state: Object

shouldComponentUpdate(nextProps: Object, nextState: Object) {
return shallowCompare(this, nextProps, nextState)
}

_renderDisclosureIndicator () {
const { showDisclosureIndicator, value } = this.props
if (showDisclosureIndicator && !value) {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"ios"
],
"dependencies": {
"react-native-vector-icons": ">=1.0.4",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

react-native-vector-icons should still be a dependency. Please do not remove it :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

react-native-vector-icons is not touched and all the time is in dependency, only last character was removed from this line.
Please check again my PR and correct me if I'm wrong.

"react-addons-shallow-compare": "^15.3.1"
"react-native-vector-icons": ">=1.0.4"
},
"author": "Alvaro Medina Ballester",
"license": "MIT",
Expand Down