Skip to content

Commit f5c3337

Browse files
hieuvpphillbaker
authored andcommitted
build(examples): update dependencies and use prop-types package
Closes #83
1 parent 816ce64 commit f5c3337

File tree

7 files changed

+6301
-24
lines changed

7 files changed

+6301
-24
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Samsung and MeiZu's Fingerprint SDK supports most devices which system versions
6464
```
6565
compile project(':react-native-fingerprint-scanner')
6666
```
67-
67+
6868
### App Permissions
6969

7070
Add the following permissions to their respective files:
@@ -113,7 +113,8 @@ In your `Info.plist`:
113113
114114
**iOS Implementation**
115115
```javascript
116-
import React, { Component, PropTypes } from 'react';
116+
import React, { Component } from 'react';
117+
import PropTypes from 'prop-types';
117118
import { AlertIOS } from 'react-native';
118119
import FingerprintScanner from 'react-native-fingerprint-scanner';
119120
@@ -146,7 +147,9 @@ export default FingerprintPopup;
146147

147148
**Android Implementation**
148149
```javascript
149-
import React, { Component, PropTypes } from 'react';
150+
import React, { Component } from 'react';
151+
import PropTypes from 'prop-types';
152+
150153
import {
151154
Alert,
152155
Image,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<resources>
2-
<string name="app_name">examples</string>
2+
<string name="app_name">RN Fingerprint Scanner</string>
33
</resources>

examples/package-lock.json

Lines changed: 6280 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/package.json

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,10 @@
22
"name": "examples",
33
"version": "0.0.1",
44
"private": true,
5-
"scripts": {
6-
"start": "node node_modules/react-native/local-cli/cli.js start",
7-
"test": "jest"
8-
},
95
"dependencies": {
10-
"react": "16.0.0-alpha.6",
11-
"react-native": "0.44.2",
6+
"prop-types": "15.6.1",
7+
"react": "16.3.1",
8+
"react-native": "0.55.3",
129
"react-native-fingerprint-scanner": "file:../"
13-
},
14-
"devDependencies": {
15-
"babel-jest": "20.0.3",
16-
"babel-preset-react-native": "1.9.2",
17-
"jest": "20.0.4",
18-
"react-test-renderer": "16.0.0-alpha.6"
19-
},
20-
"jest": {
21-
"preset": "react-native"
2210
}
2311
}

examples/src/FingerprintPopup.component.android.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react';
1+
import PropTypes from 'prop-types';
2+
import React, { Component } from 'react';
23
import {
34
Alert,
45
Image,
@@ -9,8 +10,8 @@ import {
910
} from 'react-native';
1011
import FingerprintScanner from 'react-native-fingerprint-scanner';
1112

12-
import ShakingText from './ShakingText.component';
1313
import styles from './FingerprintPopup.component.styles';
14+
import ShakingText from './ShakingText.component';
1415

1516
class FingerprintPopup extends Component {
1617

examples/src/FingerprintPopup.component.ios.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import React, { Component, PropTypes } from 'react';
1+
import PropTypes from 'prop-types';
2+
import React, { Component } from 'react';
23
import { AlertIOS } from 'react-native';
34
import FingerprintScanner from 'react-native-fingerprint-scanner';
45

examples/src/ShakingText.component.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
import React, { Component, PropTypes } from 'react';
2-
import { Animated, Text } from 'react-native';
1+
import PropTypes from 'prop-types';
2+
import React, { Component } from 'react';
3+
import {
4+
Animated,
5+
Text
6+
} from 'react-native';
37

48
class ShakingText extends Component {
59

0 commit comments

Comments
 (0)