You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"getTitle" method return's the profile name from the selected Cell in Flatlist.
But for me here In Actionsheet the title is not being displayed.
I have also binded the "getTitle" method in constructor.
The "getTitle()" method is getting called till the number of flatlist items.
Can someone please suggest me How to go further for displaying the title in ActionSheet?
The JSON response is : { "id": 985646, "name": "Business Name", "website": "businesswebsite.com", "formatted_website": "businesswebsite.com", "is_favorite": false }
In setstate completion I am calling the actionsheet's show() method. After updating the state value also, the profile name is not been showed in Actionsheet title.
Can someone plz help me to fix this
The text was updated successfully, but these errors were encountered:
I have a Flatlist, Inside the renderItem method I have Actionsheet & the code is below:
renderItem = ({ item }) => (
<TouchableOpacity onLongPress={() => {this.longPressed(item)}} activeOpacity={0.5} onPress={() => this.actionOnRow(item)} underlayColor="white">
<ActionSheet
ref={o => this.ActionSheet = o}
title={this.getTitle()}
options={['Generate', 'Delete', 'Cancel']}
cancelButtonIndex={2}
destructiveButtonIndex={2}
onPress={(index) => {
if (index == 0) {
this.generate(this.state.selectedListing)
}
if (index == 1) {
this.delete(this.state.selectedListing)
}
}}
/>
)
getTitle() {
return this.state.selectedProfileName
}
"getTitle" method return's the profile name from the selected Cell in Flatlist.
But for me here In Actionsheet the title is not being displayed.
I have also binded the "getTitle" method in constructor.
Can someone please suggest me How to go further for displaying the title in ActionSheet?
UPDATED:
UPDATED:
In Render method
After the list is generated from flatlist, When I longpress the flatlist item I want to show two options on Actionsheet
In Cell longpress method I am updating the state value & I am trying to trigger the Actionsheet as like below
The JSON response is :
{ "id": 985646, "name": "Business Name", "website": "businesswebsite.com", "formatted_website": "businesswebsite.com", "is_favorite": false }
In setstate completion I am calling the actionsheet's show() method. After updating the state value also, the profile name is not been showed in Actionsheet title.
Can someone plz help me to fix this
The text was updated successfully, but these errors were encountered: