Skip to content

Commit

Permalink
build(examples): update dependencies and use prop-types package
Browse files Browse the repository at this point in the history
Closes #83
  • Loading branch information
hieuvp authored and phillbaker committed May 23, 2019
1 parent 816ce64 commit f5c3337
Show file tree
Hide file tree
Showing 7 changed files with 6,301 additions and 24 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Samsung and MeiZu's Fingerprint SDK supports most devices which system versions
```
compile project(':react-native-fingerprint-scanner')
```

### App Permissions

Add the following permissions to their respective files:
Expand Down Expand Up @@ -113,7 +113,8 @@ In your `Info.plist`:
**iOS Implementation**
```javascript
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { AlertIOS } from 'react-native';
import FingerprintScanner from 'react-native-fingerprint-scanner';
Expand Down Expand Up @@ -146,7 +147,9 @@ export default FingerprintPopup;

**Android Implementation**
```javascript
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';

import {
Alert,
Image,
Expand Down
2 changes: 1 addition & 1 deletion examples/android/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<resources>
<string name="app_name">examples</string>
<string name="app_name">RN Fingerprint Scanner</string>
</resources>
6,280 changes: 6,280 additions & 0 deletions examples/package-lock.json

Large diffs are not rendered by default.

18 changes: 3 additions & 15 deletions examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,10 @@
"name": "examples",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.0.0-alpha.6",
"react-native": "0.44.2",
"prop-types": "15.6.1",
"react": "16.3.1",
"react-native": "0.55.3",
"react-native-fingerprint-scanner": "file:../"
},
"devDependencies": {
"babel-jest": "20.0.3",
"babel-preset-react-native": "1.9.2",
"jest": "20.0.4",
"react-test-renderer": "16.0.0-alpha.6"
},
"jest": {
"preset": "react-native"
}
}
5 changes: 3 additions & 2 deletions examples/src/FingerprintPopup.component.android.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import {
Alert,
Image,
Expand All @@ -9,8 +10,8 @@ import {
} from 'react-native';
import FingerprintScanner from 'react-native-fingerprint-scanner';

import ShakingText from './ShakingText.component';
import styles from './FingerprintPopup.component.styles';
import ShakingText from './ShakingText.component';

class FingerprintPopup extends Component {

Expand Down
3 changes: 2 additions & 1 deletion examples/src/FingerprintPopup.component.ios.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { AlertIOS } from 'react-native';
import FingerprintScanner from 'react-native-fingerprint-scanner';

Expand Down
8 changes: 6 additions & 2 deletions examples/src/ShakingText.component.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import React, { Component, PropTypes } from 'react';
import { Animated, Text } from 'react-native';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import {
Animated,
Text
} from 'react-native';

class ShakingText extends Component {

Expand Down

0 comments on commit f5c3337

Please sign in to comment.