/* This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License. */importReactfrom'react';importPropTypesfrom'prop-types';import{requireNativeComponent,ViewPropTypes,}from'react-native';constiface={name:'AccessibilityFocus',propTypes:{...ViewPropTypes,// include the default view properties},};constRNAccessibilityFocus=requireNativeComponent('RNAccessibilityFocus',iface);constemptyFn=_=>_;exportdefaultclassIosAccessibleWrapperextendsReact.Component{render(){return(<RNAccessibilityFocusstyle={{...this.props.style}}onFocusStart={(this.props.onFocusStart)?this.props.onFocusStart:emptyFn}onFocusEnd={(this.props.onFocusEnd)?this.props.onFocusEnd:emptyFn}>{this.props.children}</RNAccessibilityFocus>);}}