Skip to content

useFocus does not seem to work in the iOS simulator (tested with VoiceOver) #100

Description

@lgibso34

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions