Code Monkey home page Code Monkey logo

Comments (9)

tolu360 avatar tolu360 commented on September 16, 2024

Hello @scerelli, I'd try and look things over this weekend, first to see if I can reproduce your issue and then to see if newer versions of RN may have introduced any breaking changes.

To start with, ensure you are running, at least RN 0.33, and moving forward, I'd only try to make the package work with only the latest version of RN, owing to the rapid way the core APIs for RN seem to change. As such, I suggest you should be on the very latest stable version of RN.

In any case, expect an update soon, thanks.

from react-native-google-places.

tolu360 avatar tolu360 commented on September 16, 2024

So @scerelli, just to update you. I have just pushed a minor update to the package. Start by updating to 0.8.2, doing so would bring your app build to a more recent version of the Google Play Services. Also ensure you update your android build environment via the Android SDK Manager. Get at least Google Play Services rev. 37. See below:

screen shot 2016-11-12 at 3 43 22 pm

That should be all the 'house keeping' you may need to do to make things work on android. I have tested this new release in RN versions 0.33 and 0.37 and on the Android Emulator and on a physical Samsung Galaxy S6 edge (Android 6.0.1) and everything works as expected. See below:

Emulator:

screenshot_1478959269

Physical Samsung...

screenshot_20161112-151804

PS: Unlink the package (react-native unlink react-native-google-places). Update the package (npm install --save [email protected]) and relink with your app (react-native link react-native-google-places). Build and run your app (react-native run-android). Cheers.

from react-native-google-places.

ganjarsetia avatar ganjarsetia commented on September 16, 2024

@tolu360 I have the same problem could not invoke... everytime I use with this module https://github.com/rebeccahughes/react-native-device-info I think its conflict. If I remove react-native-device-info the module is working again.

Also, your plugin is crash when run in Xiaomi redmi note 3.
I'm using react native 0.34 & this latest plugin (v0.8.2)

from react-native-google-places.

tolu360 avatar tolu360 commented on September 16, 2024

Hi @ganjarsetia, your conflict might be that of Google Play Services but I'm not so sure right now. Lets do a quick debugging together:

  • Open up node_modules/react-native-device-info/android/build.gradle and change the last line to compile 'com.google.android.gms:play-services-gcm:9.6.0'.
  • Run react-native run-android to rebuild and recompile your app. Try to use both packages together after the changes.

from react-native-google-places.

scerelli avatar scerelli commented on September 16, 2024

The problem is related to the Google Play Services version. I updated it on my fork and everything works smoothly now.

from react-native-google-places.

tiarachmad avatar tiarachmad commented on September 16, 2024

I have the same problem as @ganjarsetia . I'm using xiaomi redmi note 3 (snapdragon version). When I use openPlacePickerModal() method my apps is force closing without leaving any error message. I'm using RN 0.34.0, your latest plugin version (0.8.2) and installed latest Google Play Service on my Android SDK.
Sorry for the bad english.

from react-native-google-places.

ganjarsetia avatar ganjarsetia commented on September 16, 2024

@tolu360 Sorry for late reply. I already follow your instruction. Still same error.
Your module is crash on xiaomi redmi note 3. Should I create new issue?

from react-native-google-places.

jsonmurphy avatar jsonmurphy commented on September 16, 2024

I was able to solve this problem by explicitly adding a dependency on com.google.android.gms:play-services-places:9.8.0. it seems the PlacePicker class is no longer a part of the com.google.android.gms:play-services-location package.

Source: http://stackoverflow.com/questions/38063648/cannot-import-google-places-placepicker-into-android-project

from react-native-google-places.

tolu360 avatar tolu360 commented on September 16, 2024

Hi @jsonmurphy, thank you for sharing that, I'd update the package shortly to 9.8.0, already compiling with com.google.android.gms:play-services-places.

from react-native-google-places.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.