question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Scrollview with GooglePlacesAutocomplete doesn't work!

See original GitHub issue

I was wondering if anyone knows how I can hide this error? I even tried to render a custom list but it still gives the error why it loads _renderRow

image

Example code

import React from 'react';
import {Text, ScrollView} from 'react-native';
import {GooglePlacesAutocomplete} from 'react-native-google-places-autocomplete';

const GooglePlacesInput = () => {
  return (
    <ScrollView>
      <GooglePlacesAutocomplete />
    </ScrollView>
  );
};

export default GooglePlacesInput;```

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

20reactions
neosowmiyacommented, May 9, 2020

i fixed this issue by including keyboardShouldPersistTaps=‘always’ and listViewDisplayed={false} in your scroll view JSX

2reactions
dominik992commented, Mar 27, 2020

Same here

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-native-google-places-autocomplete does not work in a ...
I found the solution but first do not add this, ... Simply add "horizontal={true}" to any ScrollView wrapping your component like this.
Read more >
React-native-google-places-autocomplete does not work in a ...
Coding example for the question React-native-google-places-autocomplete does not work in a Scroll View? VirtualizedLists should never be nested inside plain ...
Read more >
react-native-google-places-autocomplete - npm
Cons: the library is not compatible with a Application key restrictions; doesn't work directly on the web without a proxy server; any Google...
Read more >
React-native-google-places-autocomplete not working
Replacing View with ScrollView is not a correct solution, as if you have multiple textInput s or button s, tapping on them while...
Read more >
How to Fix 'VirtualizedLists should never be nested inside ...
VirtualizedLists should never be nested inside plain ScrollViews with the same ... If you place either of these two lists inside a ScrollView,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found