Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
R
react-native-smart-barcode
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
放牛的园子
react-native-smart-barcode
Commits
1ed3f9e2
Commit
1ed3f9e2
authored
Oct 27, 2016
by
cyqresig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated installation
parent
b937cc6d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
README.md
README.md
+15
-2
No files found.
README.md
View file @
1ed3f9e2
...
...
@@ -30,6 +30,8 @@ npm install react-native-smart-barcode --save
*
Dray raw folder to your project
*
Add
`Privacy - Camera Usage Description`
property in your info.plist(for ios 10)
## Installation (Android)
*
In
`android/settings.gradle`
...
...
@@ -51,7 +53,7 @@ dependencies {
}
```
*
i
n MainApplication.java
*
I
n MainApplication.java
```
...
...
...
@@ -81,7 +83,7 @@ private ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
...
```
*
i
n MainActivity.java
*
I
n MainActivity.java
```
...
import com.reactnativecomponent.barcode.RCTCapturePackage; //import RCTCapturePackage
...
...
@@ -109,6 +111,17 @@ protected void onCreate(Bundle savedInstanceState) {
}
```
*
In AndroidManifest.xml, add camera permissions
```
...
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-feature android:name="android.hardware.camera"/>
<uses-feature android:name="android.hardware.camera.autofocus"/>
...
```
## Full Demo
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment