The problem
[DOM] Password field is not contained in a form:
How to reproduce
Simplified test case:
https://codesandbox.io/embed/7jwz9jjr1
Steps to reproduce:
secureTextEntry to a TextInput field.Expected behavior
No warnings from the browser.
Actually. I think I can just use createElement to fix it: https://github.com/necolas/react-native-web/blob/master/docs/guides/advanced.md#use-with-existing-react-dom-components
https://codesandbox.io/embed/o58wj146q9?module=%2Fsrc%2FApp.js
Use accessibilityRole=form on the outer View
So I've just upgraded to RN 59 and my native build is throwing an error Invalid accessibility role value: form
Use Platform.select
Most helpful comment
Use
accessibilityRole=formon the outer View