triniwiz / triniwiz/nativescript-plugins
YogaLayout gives error when using marginVertical, marginHorizontal, paddingVertical, or paddingHorizontal
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 87
- Forks
- 57
- Avg merge
- 1h 36m
- Merged PRs (30d)
- 4
Description
Identified in: https://github.com/triniwiz/nativescript-plugins/pull/59
margin/padding vertical/horizontal convenience styles
I had to comment out all usages of
marginVertical,marginHorizontal,paddingVertical,paddingHorizontal(see the FIXME notes onapps/demo-react/src/RNTesterExamples/ExampleList.tsxbecause they give the error:Cannot read property 'yoga' of undefined
... Which indicates that the
nativeViewproperty of an element or child element lacked theyogaproperty.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the FIXME notes in apps/demo-react/src/RNTesterExamples/ExampleList.tsx and reproduce the reported error for marginVertical, marginHorizontal, paddingVertical, and paddingHorizontal. Trace the YogaLayout/nativeView path implicated by “Cannot read property 'yoga' of undefined,” then verify those convenience styles no longer produce the error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100