I am trying this in React Native 0.64.3:
<View nativeID="yesButton">
<ToggleButton
icon="check"
value="yes"
onPress={(e) => getPollSelectionValue(e)}
/>
</View>
I want to send the value of "value" ("yes") to the getPollSelectionValue method. I have tried this:
getPollSelectionValue(e.target.value)
But this did not work. How do I send the props value in the getPollSelectionValue method?