You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from
import com.scanlibrary.RNReactNativeAndroidScannerPackage;
to
import com.reactlibrary.RNReactNativeAndroidScannerPackage;
Add to an Activity
Open your activity, usually located in android/app/src/main/java/[your package]/MainApplication.java.
Add import com.reactlibrary.RNReactNativeAndroidScannerPackage; to the imports at the top of the file.
Add new RNReactNativeAndroidScannerPackage() to the list returned by the getPackages() method.
The text was updated successfully, but these errors were encountered:
Installation
$ npm install git+https://git@github.com/aseemnishad/react-native-android-scanner.git --save
android/setting.gradle
//New Updates :
Add the required permissions in
AndroidManifest.xml
:Change the required in MainActivity.java`:
Add to an Activity
Open your activity, usually located in
android/app/src/main/java/[your package]/MainApplication.java
.Add
import com.reactlibrary.RNReactNativeAndroidScannerPackage;
to the imports at the top of the file.Add
new RNReactNativeAndroidScannerPackage()
to the list returned by thegetPackages()
method.The text was updated successfully, but these errors were encountered: