Code Monkey home page Code Monkey logo

Comments (8)

tolu360 avatar tolu360 commented on August 12, 2024

The Autocomplete Modal/Widget does not come with a built-in map view, that's what the PlacePicker offers - use openPlacePickerModal if you want that feature. Or for more free-hand and customizations, use getAutocompletePredictions and build out your own TextInput and result ListView while displaying your own MapView with react-native-maps since I noticed you are already using that library.

from react-native-google-places.

amlcodes avatar amlcodes commented on August 12, 2024

Great, but when i use react-native-maps i end up with a bild error since im also using your RNGooglePlaces which access the same service

from react-native-google-places.

tolu360 avatar tolu360 commented on August 12, 2024

Hi @amlcodes, I just published [email protected] to npm. Pull that in and try to use with react-native-maps again. Looking forward to your feedback.

Cheers!

from react-native-google-places.

amlcodes avatar amlcodes commented on August 12, 2024

Awesome stuff, I'l try to implement it in as many ways I can but if you get back to this quickly enough, am I using the MapView component then? or does your package display its own map view and you just want me to add the build and compile lines for react-native-maps

from react-native-google-places.

amlcodes avatar amlcodes commented on August 12, 2024

Hah so i've got the component showing, but the openAutoCompleteModal is all Michigan, Ontario northside stuff (im in denver)

from react-native-google-places.

tolu360 avatar tolu360 commented on August 12, 2024
  1. For the widgets, you can always pass a config object with longitude and latitude to provide geographical bounds to the methods.

  2. The latest build also allows you to work with both react-native-google-places and react-native-maps with no build issues, should you want to build your own UI - Search TextInput and MapView (from react-native-maps) and search results from (getAutocompletePredictions).

The choice is totally yours and what's best for your project.

from react-native-google-places.

amlcodes avatar amlcodes commented on August 12, 2024

tolu you are the man, thank you for your work.

from react-native-google-places.

amlcodes avatar amlcodes commented on August 12, 2024

I do think openautocomplete is stuck in that north michigan ontario area cause i had no changes in my code.

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.