From a866bdf98711af5f26aa8dac641d081367f88103 Mon Sep 17 00:00:00 2001 From: Valentino Stoll Date: Mon, 27 Jun 2016 15:35:34 -0400 Subject: [PATCH] Update to work with react-native > 0.24 --- GooglePlacesAutocomplete.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/GooglePlacesAutocomplete.js b/GooglePlacesAutocomplete.js index ff642d14..f6de21d0 100644 --- a/GooglePlacesAutocomplete.js +++ b/GooglePlacesAutocomplete.js @@ -1,7 +1,6 @@ -const React = require('react'); -const ReactNative = require('react-native'); -const {TextInput, View, ListView, Image, Text, Dimensions, TouchableHighlight, TouchableWithoutFeedback, Platform, ActivityIndicatorIOS, ProgressBarAndroid, PixelRatio} = ReactNative; -const Qs = require('qs'); +import React, { PropTypes } from 'react'; +import { TextInput, View, ListView, Image, Text, Dimensions, TouchableHighlight, TouchableWithoutFeedback, Platform, ActivityIndicatorIOS, ProgressBarAndroid, PixelRatio } from 'react-native'; +import Qs from 'qs'; const defaultStyles = { container: {