forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Zero cost bindings for style merge (array/list) (facebook#347)
* Zero cost bindings for style merge (array/list) RN accept works out of the box array of styles (object|int from StyleSheet entries). It also recursively resolve the array of styles, so list should work too (as list are just recursive array). I tried to find "smart" name but at the end, using merge/flatten/combine/concat just make this more confusing. I am deprecating combine/merge as this is totally unsafe IRL (you cannot merge object of style with a stylesheet entry, which works with current types...) Thoughts? Idea for better naming? * bs-react-native-next: Remove StyleSheet.flatten in Style module * Zero cost bindings for style merge (array/list) fixup
- Loading branch information
Showing
5 changed files
with
114 additions
and
61 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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