Skip to content

Commit 3afc579

Browse files
committed
update example
1 parent 58fd8c9 commit 3afc579

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Example/App.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default class App extends Component {
1616
default:
1717
const random = Math.floor(Math.random() * 4000 + 1);
1818
const title = `${item.type} in ${random} milliseconds`;
19-
this.dropdown.alertWithType(
19+
this.dropDownAlertRef.alertWithType(
2020
item.type,
2121
title,
2222
item.message,
@@ -42,14 +42,15 @@ export default class App extends Component {
4242
<SafeAreaView style={styles.container}>
4343
<List onSelect={({ item, index }) => this.onSelect({ item, index })} />
4444
<DropdownAlert
45-
ref={ref => this.dropdown = ref}
45+
ref={ref => this.dropDownAlertRef = ref}
4646
containerStyle={{
4747
backgroundColor: MAIN_CUSTOM_COLOR,
4848
}}
4949
showCancel={true}
5050
onCancel={this._onCancel}
5151
onTap={this._onTap}
5252
messageNumOfLines={0}
53+
onClose={this._onClose}
5354
/>
5455
</SafeAreaView>
5556
);

0 commit comments

Comments
 (0)