Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix return type of StyleSheet.create to be the identity function
Summary: Changes the return type of StyleSheet.create to `$ReadOnly<S>`. At runtime, it just freezes the fields in dev mode and is the identity function otherwise. This cause 423 errors due to the wrong props being passed to different styles: P124372727 I went over errors at random with Eli to get confidence in the change. Changelog: [General][Fixed] Fix return type of StyleSheet.create Reviewed By: zackargyle, TheSavior Differential Revision: D19218817 fbshipit-source-id: b7aa10700f8333372c9f0bd61bfbef371caadf97
- Loading branch information