mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-27 16:22:20 +00:00
[fix] avoid eslint-plugin-react@3.6.0 bug
This commit is contained in:
+2
-2
@@ -25,10 +25,10 @@
|
|||||||
"babel-eslint": "^4.1.1",
|
"babel-eslint": "^4.1.1",
|
||||||
"babel-loader": "^5.3.2",
|
"babel-loader": "^5.3.2",
|
||||||
"babel-runtime": "^5.8.20",
|
"babel-runtime": "^5.8.20",
|
||||||
"eslint": "^1.3.1",
|
"eslint": "^1.7.1",
|
||||||
"eslint-config-standard": "^4.3.1",
|
"eslint-config-standard": "^4.3.1",
|
||||||
"eslint-config-standard-react": "^1.0.4",
|
"eslint-config-standard-react": "^1.0.4",
|
||||||
"eslint-plugin-react": "^3.3.1",
|
"eslint-plugin-react": "^3.6.0",
|
||||||
"eslint-plugin-standard": "^1.3.0",
|
"eslint-plugin-standard": "^1.3.0",
|
||||||
"karma": "^0.13.9",
|
"karma": "^0.13.9",
|
||||||
"karma-browserstack-launcher": "^0.1.5",
|
"karma-browserstack-launcher": "^0.1.5",
|
||||||
|
|||||||
@@ -55,10 +55,9 @@ const styles = StyleSheet.create({
|
|||||||
class Image extends React.Component {
|
class Image extends React.Component {
|
||||||
constructor(props, context) {
|
constructor(props, context) {
|
||||||
super(props, context)
|
super(props, context)
|
||||||
|
const { uri } = props.source
|
||||||
// state
|
// state
|
||||||
this.state = { status: props.source.uri ? STATUS_PENDING : STATUS_IDLE }
|
this.state = { status: uri ? STATUS_PENDING : STATUS_IDLE }
|
||||||
|
|
||||||
// autobinding
|
// autobinding
|
||||||
this._onError = this._onError.bind(this)
|
this._onError = this._onError.bind(this)
|
||||||
this._onLoad = this._onLoad.bind(this)
|
this._onLoad = this._onLoad.bind(this)
|
||||||
|
|||||||
Reference in New Issue
Block a user