Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.

Commit

Permalink
Merge pull request #31 from SushilShrestha/master
Browse files Browse the repository at this point in the history
RCTBridgeModule conditional import
  • Loading branch information
zhangtaii committed Jan 9, 2018
2 parents 317f183 + fe89d28 commit 726d9b8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ android {

dependencies {
compile 'com.facebook.react:react-native:+'
compile 'com.google.android.gms:play-services-location:8.4.0'
compile 'com.google.android.gms:play-services-places:+'
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public List<NativeModule> createNativeModules(ReactApplicationContext reactConte
return Arrays.<NativeModule>asList(new RNGooglePlacePickerModule(reactContext));
}

@Override
//@Override
public List<Class<? extends JavaScriptModule>> createJSModules() {
return Collections.emptyList();
}
Expand All @@ -26,4 +26,4 @@ public List<Class<? extends JavaScriptModule>> createJSModules() {
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
return Collections.emptyList();
}
}
}
8 changes: 6 additions & 2 deletions ios/RNGooglePlacePicker.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#import "RCTBridgeModule.h"
#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#else
#import "RCTBridgeModule.h"
#endif

@interface RNGooglePlacePicker : NSObject <RCTBridgeModule>

@end
@end

0 comments on commit 726d9b8

Please sign in to comment.