[fix] avoid eslint-plugin-react@3.6.0 bug

This commit is contained in:
Nicolas Gallagher
2015-10-18 11:23:29 -07:00
parent 292f045c52
commit 7f5a2807e2
2 changed files with 4 additions and 5 deletions

View File

@@ -55,10 +55,9 @@ const styles = StyleSheet.create({
class Image extends React.Component {
constructor(props, context) {
super(props, context)
const { uri } = props.source
// state
this.state = { status: props.source.uri ? STATUS_PENDING : STATUS_IDLE }
this.state = { status: uri ? STATUS_PENDING : STATUS_IDLE }
// autobinding
this._onError = this._onError.bind(this)
this._onLoad = this._onLoad.bind(this)