We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'getItem' of undefined
This error is located at: in FlatList (created by GooglePlacesAutocomplete) in RCTView (created by View)
Please provide a FULLY REPRODUCIBLE example.
<View style={styles.container}> <GooglePlacesAutocomplete autoFillOnNotFound placeholder="Search for places" minLength={2} ListEmptyComponent={renderEmptyComponent} renderLeftButton={() => ( <SearchIcon width={wp(6)} height={hp(4)} style={styles.leftIcon} /> )} renderRightButton={() => ( <TouchableOpacity hitSlop={{top: 20, bottom: 20, left: 50, right: 50}} onPress={closeModal}> <ClockWithDropDown style={styles.rightIcon} /> </TouchableOpacity> )} // suppressDefaultStyles query={{ key: GOOGLE_MAPS_API_KEY, language: 'en' }} GooglePlacesDetailsQuery={{fields: 'geometry'}} fetchDetails={true} // you need this to fetch the details object onPress textInputProps={{ autoFocus: true, returnKeyType: 'done', returnKeyLabel: 'done', }} styles={{ textInputContainer: { width: wp(90), alignItems: 'flex-start', justifyContent: 'center', borderRadius: wp(2), shadowColor: colors.black, shadowOffset: {width: 0, height: 2}, shadowOpacity: 0.2, shadowRadius: 2, elevation: 2, paddingHorizontal: wp(1), // borderWidth: 0.25, }, textInput: { fontFamily: fonts.regular, color: colors.grapeBlack, paddingHorizontal: wp(6), height: hp(6), }, separator: { // width: wp(100), }, container: { // backgroundColor: colors.white, paddingHorizontal: wp(2), paddingTop: hp(5.8), // borderWidth: 1, }, }} // renderLeftButton={() => ( // )} onPress={(data, details = null) => { // Handle the selected place data console.log(data, details); closeModal(details?.geometry?.location); }} /> </View>
Issue in both Android and iOS
The text was updated successfully, but these errors were encountered:
has this been resolved?,i just ran into this same issue
Sorry, something went wrong.
No branches or pull requests
Describe the bug
TypeError: Cannot read property 'getItem' of undefined
This error is located at:
in FlatList (created by GooglePlacesAutocomplete)
in RCTView (created by View)
Reproduction - When a character is entered in the searchbox this error is shown
Please provide a FULLY REPRODUCIBLE example.
Additional context
Issue in both Android and iOS
The text was updated successfully, but these errors were encountered: