You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sample git repo Snack that doesn't work because it can't install react-native-ama but it is the example from the docs.
I have tried to use useFocus on two different projects (and machines), and neither work with the IOS simulator. I built a further third project and was able to run it on my personal iPhone with voiceover and it seemed to work. It does seem to work on a physical device fine.
Is there anything that can be done about this for those of us who use the IOS simulator as their primary development device?
I even copy/pasted the useFocus code and tried it as a standalone hook since it doesn't rely on anything from the <AMAProvider>. Same thing.
Any help would be appreciated.
Thank you!
Additional question:
Why is AccessibilityInfo.setAccessibilityFocus(elementId); ran twice in useFocus?
The text was updated successfully, but these errors were encountered:
Hi,
I'm not sure useFocus can be made working on Simulator; I need to investigate this.
React Nativa AMA doesn't work with expo go. I'm splittin the library into separate components and hooks, so you can use all the parts that do not require any native module.
Why AccessibilityInfo.setAccessibilityFocus(elementId); twice? Because a bug in React Native forces you to do so: https://stackoverflow.com/questions/63252638/setaccessibilityfocus-using-ref-not-working
Sample git repo
Snack that doesn't work because it can't install
react-native-ama
but it is the example from the docs.I have tried to use
useFocus
on two different projects (and machines), and neither work with the IOS simulator. I built a further third project and was able to run it on my personal iPhone with voiceover and it seemed to work. It does seem to work on a physical device fine.Is there anything that can be done about this for those of us who use the IOS simulator as their primary development device?
I even copy/pasted the
useFocus
code and tried it as a standalone hook since it doesn't rely on anything from the<AMAProvider>
. Same thing.Any help would be appreciated.
Thank you!
Additional question:
Why is
AccessibilityInfo.setAccessibilityFocus(elementId);
ran twice in useFocus?The text was updated successfully, but these errors were encountered: