react-native-copilot icon indicating copy to clipboard operation
react-native-copilot copied to clipboard

the text property in copilot module only takes static values it does not support dynamic values can anybody help with this

Open BhuttoZen opened this issue 4 years ago • 1 comments

This is what I am trying but cannot do it it takes first value stored in the state but when state changes it does not change the value in the text

<CopilotStep text={this.state.tutorial_text} order={2} name="floatingButton1" > <CopilotView> <FloatingButton /> </CopilotView> </CopilotStep>

BhuttoZen avatar Jun 03 '20 11:06 BhuttoZen

try add a key prop

<CopilotStep key={this.state.tutorial_text} text={this.state.tutorial_text} order={2} name="floatingButton1" > <CopilotView> <FloatingButton /> </CopilotView> </CopilotStep>

make sure this.state.tutorial_text is difference

GreatAuk avatar Jul 31 '20 02:07 GreatAuk