/** * Sample React Native App * https://github.com/facebook/react-native * * @format * @flow strict-local */ import React from 'react'; import {StyleSheet, TouchableOpacity, View, Text} from 'react-native'; import AccessibilityWrapper from './AccessibilityWrapper'; const AppIos = () => { const ref1 = React.useRef(); const ref2 = React.useRef(); const ref3 = React.useRef(); const [state, setState] = React.useState([ref1, ref2, ref3]); return ( <> RNAccessibilityOrder { setState([ref3, ref2, ref1]); }}> Change accessibility focus order Button 1 Button 2 Button 3 ); }; const styles = StyleSheet.create({ body: { flex: 1, paddingHorizontal: 10, }, group: { padding: 10, }, header: { backgroundColor: '#008577', paddingHorizontal: 20, paddingVertical: 20, }, headerText: { color: 'white', }, button: { padding: 10, margin: 10, backgroundColor: '#aaa', }, }); export default AppIos;