I want to access React Native element property in onPress function i tried it with event.target and ReactNativeComponentTree but it not works , i want to access audioPath property in Onpress function
<Ionicons
name="ios-play"
size={35}
color={this.state.playAudio ? "red" : "blue"}
style={{
left: 90,
position: "relative",
shadowColor: "#000",
shadowOffset: { width: 0, height: 0 },
shadowOpacity: 0.5,
backgroundColor: "transparent"
}}
audioPath= {audioPath}
onPress={this.audioPathFunction.bind(this)}
/>