diff --git a/src/PhoneInput.tsx b/src/PhoneInput.tsx index d94cf22..48d6e09 100644 --- a/src/PhoneInput.tsx +++ b/src/PhoneInput.tsx @@ -27,7 +27,7 @@ export default class PhoneInput { this.inputPhone = ref; }} + accessibilityLabel={this.getAccessibilityLabel()} editable={!disabled} autoCorrect={false} style={[styles.text, this.props.textStyle]} diff --git a/src/typings/index.d.ts b/src/typings/index.d.ts index 5e1fa41..defedae 100644 --- a/src/typings/index.d.ts +++ b/src/typings/index.d.ts @@ -54,6 +54,10 @@ export interface ReactNativeCountryPickerState { } export interface ReactNativePhoneInputProps { + /** + * Override accessibility label for telephone input + */ + accessibilityLabel?: string; /** * Format input while typing */