Google Places autocomplete component for iOS and Android React-Native apps
# Install via npm
npm install rn-google-places --save
# Install via yarn
yarn add rn-google-places
To use it, just import it directly into your components
import { AutocompletePlaces } from 'rn-google-places'
The most basic example of this module is to use it like this :
import React from 'react'
import { View, Button } from 'react-native'
import { AutocompletePlaces } from 'rn-google-places'
const Example = (props = {}) => (
<View>
<AutocompletePlaces
apiKey="api key"
visible={true}
place={(result) => {
console.log(result);
}}
/>
</View>
)
export default Example