i have tried the below, but its not working
<TouchableOpacity onPress={() => {
console.log("Press");
<CustomAlertComponent
displayAlert={true}
displayAlertIcon={true}
alertTitleText={"Clear saved offline data"}
alertMessageText={"Are you sure you want to clear saved offline data? This Action cannot be undone."}
positiveButtonText={"Yes"}
negativeButtonText={"No"}
displayPositiveButton={true}
displayNegativeButton={true}
onPressPositiveButton={this.onPressAlertPositiveButton}
onPressNegativeButton={this.onPressAlertNegativeButton}
/>
}} >
<Text style={{
fontSize: 14, fontWeight: "bold", marginTop:20,
marginLeft: 16, color: "black",
}}>Logout
i have tried the below, but its not working
<TouchableOpacity onPress={() => {
console.log("Press");
<CustomAlertComponent
<Text style={{
fontSize: 14, fontWeight: "bold", marginTop:20,
marginLeft: 16, color: "black",
}}>Logout