Changeset View
Changeset View
Standalone View
Standalone View
native/components/user-list-user.react.js
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | return ( | ||||
</SingleLine> | </SingleLine> | ||||
{notice} | {notice} | ||||
</Button> | </Button> | ||||
); | ); | ||||
} | } | ||||
onSelect = () => { | onSelect = () => { | ||||
const { userInfo } = this.props; | const { userInfo } = this.props; | ||||
if (!userInfo.alertText) { | if (!userInfo.alert) { | ||||
this.props.onSelect(userInfo.id); | this.props.onSelect(userInfo.id); | ||||
return; | return; | ||||
} | } | ||||
Alert.alert(userInfo.alertTitle, userInfo.alertText, [{ text: 'OK' }], { | Alert.alert(userInfo.alert.title, userInfo.alert.text, [{ text: 'OK' }], { | ||||
cancelable: true, | cancelable: true, | ||||
}); | }); | ||||
}; | }; | ||||
} | } | ||||
const unboundStyles = { | const unboundStyles = { | ||||
button: { | button: { | ||||
alignItems: 'center', | alignItems: 'center', | ||||
Show All 24 Lines |