triniwiz / triniwiz/nativescript-plugins

YogaLayout gives error when using marginVertical, marginHorizontal, paddingVertical, or paddingHorizontal

Open
#61 0 comments 0 reactions 0 assignees View on GitHub

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 on apps/demo-react/src/RNTesterExamples/ExampleList.tsx because they give the error:

Cannot read property 'yoga' of undefined

... Which indicates that the nativeView property of an element or child element lacked the yoga property.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.