react-native-otp-verify icon indicating copy to clipboard operation
react-native-otp-verify copied to clipboard

on manual link how to add this

Open hassanharoon321 opened this issue 1 year ago • 1 comments

Add new OtpVerifyPackage() to the list returned by the getPackages() method

hassanharoon321 avatar Mar 21 '23 10:03 hassanharoon321

go to app/src/main/java/.../MainApplication.java scroll down and find getPackages() method

it looks something like this:

protected List<ReactPackage> getPackages() {

  // Default React Native Packages

  List<ReactPackage> reactPackageList = new ArrayList<>(Arrays.asList(
  ....
  ....

after:

protected List<ReactPackage> getPackages() {

    // Default React Native Packages

    List<ReactPackage> reactPackageList = new ArrayList<>(Arrays.asList(
         new OtpVerifyPackage()

dont miss to add this import on top of the same file:

import com.faizal.OtpVerify.OtpVerifyPackage;

mo-nizar avatar Mar 28 '23 12:03 mo-nizar