Open stesvis opened 2 years ago
@mulayam1005 please update this task with comments when you need. I like how it works now, but there is still one part not done: when you click outside of the dropdown it still doesn't hide it. If you don't want to select any of the options you should be able to hide the dropdown by clicking outside.
Hello Cristian,
Yes This is not working because In component we are only covering the list which we are showing previously it is working because we are using onEndEditing props this is not correct and to close the popup via clicking outside we need to cover the whole screen invisibly and give the touchable to whole view in custom components. So I'm giving a cross icon in input to close the component list but if this is not correct then we have to show the modal or new screen in which we show the components of the list and use touchable behind the list
Thanks
On Tue, May 3, 2022 at 10:20 PM Cristian Merli @.***> wrote:
@mulayam1005 https://github.com/mulayam1005 please update this task with comments when you need. I like how it works now, but there is still one part not done: when you click outside of the dropdown it still doesn't hide it. If you don't want to select any of the options you should be able to hide the dropdown by clicking outside.
— Reply to this email directly, view it on GitHub https://github.com/stesvis/ReactNativeDemo/issues/3#issuecomment-1116324789, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMEDOH2PZ2HJJKTKSQYZ6HDVIFKO3ANCNFSM5UWZMVQA . You are receiving this because you were mentioned.Message ID: @.***>
I see thanks. I'll think about it.
I built a custom AutoComplete component, but it works differently in Android and iOS.
Expected behavior
Actual Behavior
Here's the issues that need to be fixed in both platforms.
Android
iOS
zIndex
does not work properly. You can see the content in the screen overlaps (see screenshots)Notes
AutoComplete
dropdown is aMenuListItem
component: linkonPress
event ofMenuListItem
is not fired for some reason: linkhandleSelect
event inAutoComplete
is not fired: linkScreenshots