Vizir / react-native-paypal

Native Paypal payment screen for React Native
MIT License
51 stars 15 forks source link

how to add this package in new react native method #13

Open delacernamarimar opened 7 years ago

delacernamarimar commented 7 years ago

Hi good morning, I would like to ask help because I'm a newbie in react and I only know how to add package in new ways.

Can anyone help me how to add this package in new react native way heres the sample code

`public class MainActivity extends ReactActivity { /**

}

public class MainApplication extends Application implements ReactApplication { private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { @Override protected boolean getUseDeveloperSupport() { return BuildConfig.DEBUG; } @Override protected List getPackages() { return Arrays.asList( new MainReactPackage(), new VectorIconsPackage(), new WebRTCModulePackage() ); } };

@Override public ReactNativeHost getReactNativeHost() { return mReactNativeHost; }

@Override public void onCreate() { super.onCreate(); SoLoader.init(this, / native exopackage / false); }

} `

Please help me for solving my problem thanks!