This file contains hidden or 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
| diff --git a/node_modules/react-native-svg/apple/Elements/RNSVGSvgView.h b/node_modules/react-native-svg/apple/Elements/RNSVGSvgView.h | |
| index e589dad..4c0e6a3 100644 | |
| --- a/node_modules/react-native-svg/apple/Elements/RNSVGSvgView.h | |
| +++ b/node_modules/react-native-svg/apple/Elements/RNSVGSvgView.h | |
| @@ -12,18 +12,9 @@ | |
| #import "RNSVGPainter.h" | |
| #import "RNSVGVBMOS.h" | |
| -#ifdef RCT_NEW_ARCH_ENABLED | |
| -#import <React/RCTViewComponentView.h> |
This file contains hidden or 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
| subprojects { | |
| if (project.name.contains("react-native-fast-image") || project.name.contains("react-native-screen")) { | |
| buildscript { | |
| repositories { | |
| maven { url "https://dl.bintray.com/android/android-tools/" } | |
| } | |
| } | |
| } | |
| } |
This file contains hidden or 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
| buildscript { | |
| repositories { | |
| google() | |
| jcenter() | |
| // add this repo ftw | |
| maven { url "https://dl.bintray.com/android/android-tools" } | |
| } | |
| dependencies { | |
| classpath "com.android.tools.build:gradle:3.2.1" |
This file contains hidden or 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
| FAILURE: Build failed with an exception. | |
| * What went wrong: | |
| A problem occurred configuring root project 'foobar'. | |
| > Could not resolve all artifacts for configuration ':classpath'. | |
| > Could not find com.google.gms:google-services:4.0.2. | |
| Searched in the following locations: | |
| https://dl.google.com/dl/***/maven2/com/google/gms/google-services/4.0.2/google-services-4.0.2.pom | |
| https://dl.google.com/dl/***/maven2/com/google/gms/google-services/4.0.2/google-services-4.0.2.jar | |
| https://jcenter.bintray.com/com/google/gms/google-services/4.0.2/google-services-4.0.2.pom |
This file contains hidden or 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
| import $ from 'jquery' | |
| import './vendor/trumbowyg.min' | |
| class CustomEditor { | |
| constructor (opts) { | |
| this.editors = document.querySelectorAll('.thesis-content-html') | |
| this.enabled = false | |
| this.onChange = opts.onChange | |
| this.changedHtmlEditor = this.changedHtmlEditor.bind(this) | |
| } |
This file contains hidden or 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
| NativeModules.ImagePicker.openSelectDialog( | |
| {}, // no config yet | |
| (uri) => { console.log(uri) }, | |
| (error) => { console.log(error) } | |
| ) |
This file contains hidden or 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
| @Override | |
| public void onActivityResult(final int requestCode, final int resultCode, final Intent intent) { | |
| if (pickerSuccessCallback != null) { | |
| if (resultCode == Activity.RESULT_CANCELED) { | |
| pickerCancelCallback.invoke("ImagePicker was cancelled"); | |
| } else if (resultCode == Activity.RESULT_OK) { | |
| Uri uri = intent.getData(); | |
| if (uri == null) { | |
| pickerCancelCallback.invoke("No image data found"); |
This file contains hidden or 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
| public class ImagePickerModule extends ReactContextBaseJavaModule implements ActivityEventListener { | |
| public ImagePickerModule(ReactApplicationContext reactContext) { | |
| super(reactContext); | |
| reactContext.addActivityEventListener(this); | |
| } | |
| } |
This file contains hidden or 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
| public class ImagePickerModule extends ReactContextBaseJavaModule { | |
| private static final int PICK_IMAGE = 1; | |
| private Callback pickerSuccessCallback; | |
| private Callback pickerCancelCallback; | |
| @ReactMethod | |
| public void openSelectDialog(ReadableMap config, Callback successCallback, Callback cancelCallback) { | |
| Activity currentActivity = getCurrentActivity(); |
This file contains hidden or 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
| import com.facebook.react.bridge.Callback; | |
| import com.facebook.react.bridge.ReadableMap; | |
| public class ImagePickerModule extends ReactContextBaseJavaModule { | |
| @ReactMethod | |
| public void openSelectDialog(ReadableMap config, Callback successCallback, Callback cancelCallback) { | |
| Activity currentActivity = getCurrentActivity(); | |
| if (currentActivity == null) { | |
| cancelCallback.invoke("Activity doesn't exist"); |
NewerOlder