This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1690 from Plant-for-the-Planet-org/feature/update…
…-react-native-packages Feature/update react native packages
- Loading branch information
Showing
43 changed files
with
493 additions
and
2,509 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"root": true, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:react/recommended" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,8 @@ DerivedData | |
*.ipa | ||
*.xcuserstate | ||
project.xcworkspace | ||
Podfile.lock | ||
ios/Pods/* | ||
|
||
# Android/IntelliJ | ||
# | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,46 @@ | ||
package org.pftp; | ||
|
||
import android.app.Application; | ||
import com.facebook.react.PackageList; | ||
|
||
import com.facebook.react.ReactApplication; | ||
import com.oblador.vectoricons.VectorIconsPackage; | ||
import com.reactnativecommunity.asyncstorage.AsyncStoragePackage; | ||
//import com.taessina.paypal.RNPaypalWrapperPackage; | ||
import com.rnfs.RNFSPackage; | ||
import org.wonday.pdf.RCTPdfView; | ||
import com.RNFetchBlob.RNFetchBlobPackage; | ||
import com.oblador.vectoricons.VectorIconsPackage; | ||
import com.reactnative.ivpusic.imagepicker.PickerPackage; | ||
import io.github.elyx0.reactnativedocumentpicker.DocumentPickerPackage; | ||
import com.BV.LinearGradient.LinearGradientPackage; | ||
import com.bugsnag.BugsnagReactNative; | ||
import com.inprogress.reactnativeyoutube.ReactNativeYouTube; | ||
//import com.gettipsi.stripe.StripeReactPackage; | ||
import com.learnium.RNDeviceInfo.RNDeviceInfo; | ||
import com.imagepicker.ImagePickerPackage; | ||
import com.AlexanderZaytsev.RNI18n.RNI18nPackage; | ||
import com.horcrux.svg.SvgPackage; | ||
|
||
import com.facebook.react.ReactNativeHost; | ||
import com.facebook.react.ReactPackage; | ||
import com.facebook.react.shell.MainReactPackage; | ||
import com.facebook.soloader.SoLoader; | ||
// import com.reactlibrary.RNTooltipsPackage; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
public class MainApplication extends Application implements ReactApplication { | ||
|
||
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { | ||
@Override | ||
public boolean getUseDeveloperSupport() { | ||
return BuildConfig.DEBUG; | ||
} | ||
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { | ||
@Override | ||
public boolean getUseDeveloperSupport() { | ||
return BuildConfig.DEBUG; | ||
} | ||
|
||
@Override | ||
protected List<ReactPackage> getPackages() { | ||
@SuppressWarnings("UnnecessaryLocalVariable") | ||
List<ReactPackage> packages = new PackageList(this).getPackages(); | ||
// Packages that cannot be autolinked yet can be added manually here, for example: | ||
// packages.add(new MyReactNativePackage()); | ||
return packages; | ||
} | ||
|
||
@Override | ||
protected String getJSMainModuleName() { | ||
return "index"; | ||
} | ||
}; | ||
|
||
@Override | ||
protected List<ReactPackage> getPackages() { | ||
return Arrays.<ReactPackage>asList( | ||
new MainReactPackage(), | ||
new AsyncStoragePackage(), | ||
//new RNPaypalWrapperPackage(), | ||
new RNFSPackage(), | ||
new RCTPdfView(), | ||
new RNFetchBlobPackage(), | ||
new VectorIconsPackage(), | ||
new PickerPackage(), | ||
new DocumentPickerPackage(), | ||
new LinearGradientPackage(), | ||
BugsnagReactNative.getPackage(), | ||
new ReactNativeYouTube(), | ||
// new StripeReactPackage(), | ||
new RNDeviceInfo(), | ||
new ImagePickerPackage(), | ||
new RNI18nPackage(), | ||
new SvgPackage() | ||
// new RNTooltipsPackage() | ||
); | ||
public ReactNativeHost getReactNativeHost() { | ||
return mReactNativeHost; | ||
} | ||
|
||
@Override | ||
protected String getJSMainModuleName() { | ||
return "index"; | ||
public void onCreate() { | ||
super.onCreate(); | ||
SoLoader.init(this, /* native exopackage */ false); | ||
} | ||
}; | ||
|
||
@Override | ||
public ReactNativeHost getReactNativeHost() { | ||
return mReactNativeHost; | ||
} | ||
|
||
@Override | ||
public void onCreate() { | ||
super.onCreate(); | ||
SoLoader.init(this, /* native exopackage */ false); | ||
} | ||
} |
Oops, something went wrong.