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: {