Skip to content

[iOS] Why is the sizing required in the provided Fabric component example #267

Answered by s77rt
jdesgagne-onemedical asked this question in Q&A
Discussion options

You must be logged in to vote

👋 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:

  1. Call setSize to change the size of the view from native
  2. Override measureContent

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jdesgagne-onemedical
Comment options

Answer selected by jdesgagne-onemedical
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants