Skip to content
This repository has been archived by the owner on Mar 4, 2019. It is now read-only.

Fix: Text component cascades styles #199

Merged
merged 1 commit into from
Jan 23, 2019
Merged

Conversation

RobinCsl
Copy link
Collaborator

Summary: To extend React Native's Text component, we should allow styles to cascade. This behaviour was prevented because default values ewere set for the size, the weight and the type.

Closes #198

@netlify
Copy link

netlify bot commented Jan 22, 2019

Deploy preview for kiwicom-universal-components ready!

Built with commit ce7d1c6

https://deploy-preview-199--kiwicom-universal-components.netlify.com

@RobinCsl RobinCsl force-pushed the fix/text-styles-should-cascade branch from 644c4a9 to ca2fd14 Compare January 22, 2019 10:38
- undefined,
- undefined,
- undefined,
- undefined,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably will be nice have there some values instead of undefined

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I will improve the implementation to avoid these undefined from popping up.

Summary: To extend React Native's Text component, we should allow styles to cascade. This behaviour was prevented because default values ewere set for the size, the weight and the type.

Closes #198
@RobinCsl
Copy link
Collaborator Author

@FilipMessa It should be better now 🙂

@RobinCsl RobinCsl merged commit e95113a into master Jan 23, 2019
@RobinCsl RobinCsl deleted the fix/text-styles-should-cascade branch January 23, 2019 08:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants