react-native create reuseable myController component #3235
Unanswered
yossimenash
asked this question in
General
Replies: 2 comments 7 replies
-
reproduce this problem in a codesandbox plz. |
Beta Was this translation helpful? Give feedback.
7 replies
-
if you face the same issue use the following link there is a solution. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, is it possible to create reuseable Controller componet that recives 'name' prop instead of copy-pasting the same Controller tags with diffrent 'name' prop again and again?
i mean instead of writing this:
MyScreen.tsx
write something like this:
MyScreen.tsx
and:
MyControllerComponet.tsx.tsx
this example doesn't working - the data of the object doesn't passes from child to parent screen.
how i can make this work?
Thank for helping :)
Beta Was this translation helpful? Give feedback.
All reactions