export const SelectedChoice: (choiceProps) => { ... }
<ChoicePicker {...props}
onRenderItem={SelectedChoice}
/>
I have this, the argument choiceProps is implicitly provided, but now I want to add a function to the second argument so I can call it inside of SelectedChoice, how do I do this? The issue is that I don't know what is being passed to SelectedChoice so I can't call it explicitly without breaking the function. If I knew what was being passed as choiceProps, I wouldn't have this issue. I feel like it's being called as a callback function and the argument is explicitly provided inside onRenderItem, but I might be mistaken.