Update dependencies. Remove support for View.propTypes.
This commit is contained in:
parent
a388be82cd
commit
b4b1794258
|
@ -1,7 +1,11 @@
|
|||
import React, { Component } from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { Image, NativeModules, requireNativeComponent } from 'react-native'
|
||||
import ViewPropTypes from './utils/ViewPropTypes'
|
||||
import {
|
||||
Image,
|
||||
NativeModules,
|
||||
requireNativeComponent,
|
||||
ViewPropTypes,
|
||||
} from 'react-native'
|
||||
|
||||
const resolveAssetSource = require('react-native/Libraries/Image/resolveAssetSource')
|
||||
|
||||
|
|
|
@ -191,6 +191,12 @@ To update while developing you can re-pack and reinstall the tarball.
|
|||
|
||||
Hopefully [metro](https://github.com/facebook/metro) will add support for symlinks soon.
|
||||
|
||||
## Supported React Native Versions
|
||||
|
||||
This project only aims to support the latest version of React Native.
|
||||
|
||||
If you require new features or bug fixes for older versions you can fork this project.
|
||||
|
||||
## Credits
|
||||
|
||||
The idea for this modules came from
|
||||
|
|
|
@ -5610,7 +5610,7 @@
|
|||
},
|
||||
"react-native-fast-image": {
|
||||
"version": "file:../react-native-fast-image-1.0.0.tgz",
|
||||
"integrity": "sha1-CrqRYr+BCNtlnMKY2N89x728Q04=",
|
||||
"integrity": "sha1-eZw9ZuaKAjUXUEfosT4DsVFGUH4=",
|
||||
"requires": {
|
||||
"prop-types": "15.6.0"
|
||||
}
|
||||
|
|
14
package.json
14
package.json
|
@ -40,14 +40,14 @@
|
|||
"prop-types": "^15.5.10"
|
||||
},
|
||||
"devDependencies": {
|
||||
"babel-jest": "^20.0.3",
|
||||
"babel-preset-react-native": "^2.0.0",
|
||||
"jest": "^20.0.4",
|
||||
"babel-jest": "^21.2.0",
|
||||
"babel-preset-react-native": "^4.0.0",
|
||||
"jest": "^21.2.1",
|
||||
"prettier": "^1.5.2",
|
||||
"prettier-check": "^1.0.0",
|
||||
"react": "16.0.0-alpha.12",
|
||||
"react-native": "^0.45.1",
|
||||
"react-test-renderer": "16.0.0-alpha.12"
|
||||
"prettier-check": "^2.0.0",
|
||||
"react": "16.0.0",
|
||||
"react-native": "^0.50.4",
|
||||
"react-test-renderer": "16.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "9.2.0",
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
import { ViewPropTypes as RNViewPropTypes, View } from 'react-native'
|
||||
|
||||
export default RNViewPropTypes || View.propTypes
|
Loading…
Reference in New Issue