Skip to content
New issue

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

Bug Report - Virtualized list error missing listKey prop #824

Open
carlosen14 opened this issue Jun 1, 2022 · 0 comments · May be fixed by #825
Open

Bug Report - Virtualized list error missing listKey prop #824

carlosen14 opened this issue Jun 1, 2022 · 0 comments · May be fixed by #825
Labels

Comments

@carlosen14
Copy link

Describe the bug

Virtualized list error, node_modules/react-native-google-places-autocomplete/GooglePlacesAutocomplete.js:760, FlatList is missing a lisKey property.

console.error: A VirtualizedList contains a cell which itself contains more than one VirtualizedList of the same orientation as the parent list. You must pass a unique listKey prop to each sibling list.

VirtualizedList trace:
  Child (vertical):
    listKey: 1
    cellKey: 1
  Parent (vertical):
    listKey: rootList
    cellKey: rootList 
VirtualizedList@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.talisis.app.point:70234:36
FlatList@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false&modulesOnly=false&runModule=true&app=com.talisis.app.point:69674:36
```
# Reproduction - this is just an example

```
<FlatList
    <GooglePlacesAutocomplete  // since this is another list, will require a listKey
    />
/>
```

_Please remember to remove you google API key from the code you provide here_

# Additional context

- Library Version: 2.4.1
- React Native Version: 0.66.3

- [ x ] iOS
- [ ] Android
- [ ] Web

If you are using expo please indicate here:

- [ x ] I am using expo

Add any other context about the problem here, screenshots etc


![Simulator Screen Shot - iPhone 8 Plus - 2022-05-31 at 19 12 54](https://user-images.githubusercontent.com/9368632/171303920-4cdf1fa8-5bb4-48db-8ffe-0eb71afc1658.png)

@carlosen14 carlosen14 added the bug label Jun 1, 2022
@carlosen14 carlosen14 linked a pull request Jun 1, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant