|
@@ -27,6 +27,7 @@ class TextScreen extends Component {
|
27
|
27
|
{this.renderTextFromFunctionInProps()}
|
28
|
28
|
<Text style={styles.footer}>{`this.props.componentId = ${this.props.componentId}`}</Text>
|
29
|
29
|
<Button title={'Set Tab Badge'} testID={testIDs.SET_TAB_BADGE_BUTTON} onPress={() => this.onClickSetBadge()} />
|
|
30
|
+ <Button title={'Set empty Tab Badge'} testID={testIDs.SET_TAB_BADGE_BUTTON_NULL} onPress={() => this.onClickSetNullBadge()} />
|
30
|
31
|
<Button title={'Switch To Tab 2'} testID={testIDs.SWITCH_SECOND_TAB_BUTTON} onPress={() => this.onClickSwitchToTab()} />
|
31
|
32
|
<Button title={'Switch To Tab 1 by componentID'} testID={testIDs.SWITCH_FIRST_TAB_BUTTON} onPress={() => this.onClickSwitchToTabByComponentID()} />
|
32
|
33
|
{/* tslint:disable-next-line:max-line-length */}
|
|
@@ -51,6 +52,14 @@ class TextScreen extends Component {
|
51
|
52
|
});
|
52
|
53
|
}
|
53
|
54
|
|
|
55
|
+ onClickSetNullBadge() {
|
|
56
|
+ Navigation.mergeOptions(this.props.componentId, {
|
|
57
|
+ bottomTab: {
|
|
58
|
+ badge: null
|
|
59
|
+ }
|
|
60
|
+ });
|
|
61
|
+ }
|
|
62
|
+
|
54
|
63
|
onClickPush = async () => {
|
55
|
64
|
await Navigation.push(this.props.componentId, {
|
56
|
65
|
component: {
|