Skip to content

Commit 067aa6b

Browse files
arelstonemastermoo
authored andcommitted
Added accessibleLabel (mastermoo#282)
* added accessibleLabel
1 parent 79dad1c commit 067aa6b

File tree

3 files changed

+136
-2
lines changed

3 files changed

+136
-2
lines changed

ActionButton.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ export default class ActionButton extends Component {
201201
>
202202
<Touchable
203203
testID={this.props.testID}
204+
accessible={this.props.accessible}
205+
accessibilityLabel={this.props.accessibilityLabel}
204206
background={touchableBackground(
205207
this.props.nativeFeedbackRippleColor,
206208
this.props.fixNativeFeedbackRadius
@@ -382,7 +384,9 @@ ActionButton.propTypes = {
382384
fixNativeFeedbackRadius: PropTypes.bool,
383385
nativeFeedbackRippleColor: PropTypes.string,
384386

385-
testID: PropTypes.string
387+
testID: PropTypes.string,
388+
accessibilityLabel: PropTypes.string,
389+
accessible: PropTypes.bool
386390
};
387391

388392
ActionButton.defaultProps = {
@@ -411,7 +415,9 @@ ActionButton.defaultProps = {
411415
activeOpacity: DEFAULT_ACTIVE_OPACITY,
412416
fixNativeFeedbackRadius: false,
413417
nativeFeedbackRippleColor: "rgba(255,255,255,0.75)",
414-
testID: undefined
418+
testID: undefined,
419+
accessibilityLabel: undefined,
420+
accessible: undefined
415421
};
416422

417423
const styles = StyleSheet.create({

ActionButtonItem.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export default class ActionButtonItem extends Component {
109109
<View>
110110
<Touchable
111111
testID={this.props.testID}
112+
accessibilityLabel={this.props.accessibilityLabel}
112113
background={touchableBackground(
113114
this.props.nativeFeedbackRippleColor,
114115
this.props.fixNativeFeedbackRadius

package-lock.json

Lines changed: 127 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)