-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a way to pass in a child component to the renderRow api ? #20
Comments
Can you show some code to check, what you are trying? I think it should be possible through the existing react-native-modal-dropdown/components/ModalDropdown.js Lines 391 to 405 in 619ca1a
|
Currently MainDropDown is a function present in the same class so I don't need to pass any props. If I convert it into a functional component I'll need to pass props. Is that possible here ? I was not able to figure out the right syntax. Please excuse my ignorance I am a beginner. |
And what is the problem this way? It should be a possible way.
The object passed in to I haven't tested it, but does this successfully render and show you your data passed to the dropdown? |
…80bd43519 [Snyk] Security upgrade react-native from 0.53.3 to 0.64.0
So I want to pass a functional component to the renderRow api. Currently I have been passing a function present in the same component. I was not able to find any relevant information anywhere. Is it possible to do that?
The text was updated successfully, but these errors were encountered: