-
-
Notifications
You must be signed in to change notification settings - Fork 882
Description
Describe the bug
when search or tap location and navigate to previous screen, its hang the app and showing a warning on log.
WARN Excessive number of pending callbacks: 501. Some pending callbacks that might have leaked by never being called from native code: {"14098":{},"14354":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14357":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14360":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14363":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14366":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14369":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14372":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14375":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14378":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14381":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14384":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14387":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14390":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14393":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14396":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14399":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14402":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14405":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14408":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14411":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14414":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14417":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14420":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14423":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14426":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14429":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14432":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14435":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14438":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14441":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14444":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14447":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14450":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14453":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14456":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14459":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14462":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14465":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14468":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14471":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14474":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14477":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14480":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14483":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14486":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14489":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14492":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14495":{"module":"UIManager","method":"configureNextLayoutAnimation"},"14498":{"module":"UIManager","method":"configureNextLayoutAnimation"},"...(truncated keys)...":451}
Reproduction - (required - issue will be closed without this)
REPRODUCIBLE example.
Click to expand!
<View style={{ flex: 1 }}>
<GooglePlacesAutocomplete
placeholder='Enter minimum 2 characters to search'
minLength={2} // minimum length of text to search
// autoFocus={true}
keyboardShouldPersistTaps='handled'
returnKeyType={'default'}
fetchDetails={true}
onPress={(data, details = null) => {
onReturn({
destination: details?.formatted_address || details?.adr_address || data.description,
location: {
latitude: details?.geometry?.location?.lat,
longitude: details?.geometry?.location?.lng
}
});
navigation.goBack(); // Close current screen
}}
onFail={(error) => console.error(error)}
query={{
key: "--------",
language: "en",
}}
textInputProps={{
// InputComp: EInput,
// leftIcon: { type: 'font-awesome', name: 'chevron-left' },
// errorStyle: { color: 'red' },
style: { color: 'black', paddingHorizontal: 20, paddingVertical: 15, width: '100%' },
placeholderTextColor: 'grey'
}}
styles={{
placeHolder: { color: 'black' },
textInput: { color: 'black', borderBottomColor: 'red', borderBottomWidth: 2 },
listView: { backgroundColor: 'white', color: 'black' },
row: {
backgroundColor: 'white',
padding: 10,
},
description: {
color: 'black'
},
container: {
borderColor: 'black', borderTopWidth: 2, backgroundColor: 'lightgrey'
}
}}
enablePoweredByContainer={false}
predefinedPlaces={[homePlace]}
renderRow={(row) => <PlaceRow row={row} />}
debounce={300}
/>
</View>
Additional context
-
Library Version: [e.g. 2.6.4]
-
React Native Version: [e.g. 0.75.4]
-
iOS
-
Android
-
Web
If you are using expo please indicate here:
- I am using expo
Add any other context about the problem here, screenshots etc