Skip to content

Commit 9a5131b

Browse files
authored
Merge pull request #17 from rghorbani/master
fixed React.PropTypes warning
2 parents 6223c53 + 5c48028 commit 9a5131b

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"react-native-svg": "^5.1.5"
4242
},
4343
"dependencies": {
44+
"prop-types": "^15.5.10",
4445
"qrcode": "^0.8.1"
4546
},
4647
"devDependencies": {

src/__mocks__/react-native.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { PropTypes } from 'react'
1+
import React from 'react'
2+
import PropTypes from 'prop-types'
23

34
export const View = ({ children }) => {
45
return (

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// core
2-
import React, { PropTypes, PureComponent } from 'react'
2+
import React, { PureComponent } from 'react'
33
import { View, Image } from 'react-native'
4+
import PropTypes from 'prop-types'
45
// libs
56
import Svg, { Rect, Path } from 'react-native-svg'
67
import genMatrix from './genMatrix'

0 commit comments

Comments
 (0)