-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add StyleSheet.absoluteFill convenience constant
Summary: It's annoying and inefficient to create styles like ``` wrapper: { position: 'absolute', left: 0, right: 0, top: 0, bottom: 0, }, ``` all the time, so this makes a handy constant for reuse and a helper method to create customized styles. Reviewed By: devknoll Differential Revision: D3389612 fbshipit-source-id: 88fbe9e8ca32a0bc937bf275cf5ae0739ee21302
- Loading branch information
Showing
2 changed files
with
55 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e79f5d7
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just want to link to my library react-native-tachyons here, which includes this constant and similar styling as well.