diff --git a/lib/AppleButton.android.js b/lib/AppleButton.android.js index 86744a2f..5be99d79 100644 --- a/lib/AppleButton.android.js +++ b/lib/AppleButton.android.js @@ -16,6 +16,7 @@ export default function AppleButton(props) { buttonType = ButtonTypes.DEFAULT, onPress, leftView, + buttonText, } = props; const _buttonStyle = [ @@ -30,11 +31,13 @@ export default function AppleButton(props) { textStyle, ]; + const text = buttonText ? buttonText : ButtonTexts[buttonType]; + return ( {!!leftView && leftView} - {ButtonTexts[buttonType]} + {text} ); diff --git a/lib/index.d.ts b/lib/index.d.ts index a13b5234..03f3fbbe 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -112,6 +112,11 @@ export interface AppleButtonProps { */ leftView?: React.ReactNode; + /** + * Android-only. Custom button text. + */ + buttonText?: string; + onPress: (event: GestureResponderEvent) => void; }