[iOS] Why is the sizing required in the provided Fabric component example #267
Answered
by
s77rt
jdesgagne-onemedical
asked this question in
Q&A
-
In this example, why is hardcoded height from react required? Is there a way to not have to specify it from react, but infer it natively from its children sizing? |
Beta Was this translation helpful? Give feedback.
Answered by
s77rt
May 24, 2025
Replies: 1 comment 1 reply
-
👋 Hi! I was struggling with this too. The key here is to provide your own shadow view then you would have more control over the layout. For instance you can:
Here are helpful resources on getting started with shadow view:
Credits to Software Mansion team. Here is a PR that you can use as a reference: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jdesgagne-onemedical
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👋 Hi! I was struggling with this too. The key here is to provide your own shadow view then you would have more control over the layout. For instance you can:
setSize
to change the size of the view from nativemeasureContent
Here are helpful resources on getting started with shadow view:
Credits to Software Mansion team.
Here is a PR that you can use as a reference:
s77rt/react-native-date-picker#20