Looking to implement a profile picture upload feature with the ability to choose between getting an image from the camera (using getMediaFromCamera) or selecting one from the gallery (using getMediaFromImageLibrary). I currently have a TouchableOpacity set up, but I'm considering adding a menu for method selection upon click. Is it necessary to create a separate menu or can this functionality be integrated within the TouchableOpacity component?
<View style={imageUploaderStyles.uploadBtnContainer}>
<TouchableOpacity
onPress={getMediaFromCamera}
style={imageUploaderStyles.uploadBtn}>
<Text>
{props.profile_photo
? Language.PersonalInformation.change_photo
: Language.PersonalInformation.add_photo}{' '}
</Text>
</TouchableOpacity>
</View>
Desiring a popup similar to the following when the user triggers the action: