Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Android: Setting numberOfLines to 0 behaves differently than on iOS.
Summary: **Motivation** For the `Text` component, if `numberOfLines` is set to `0`, the behavior on iOS is such that there is no limit. On Android, the behavior is such that `numberOfLines={0}` will not render the `Text` component. Since we want behavior to be the same across platforms, this change will make sure Android behaves the same as iOS. **Test Plan** Create a `Text` component specifying `numberOfLines={0}` on an Android project. Expected: - `Text` component displays, with no limit to number of lines. Result: - `Text` component does not appear at all. Closes #9188 Differential Revision: D3697115 fbshipit-source-id: c1768ac22bab3c0e41a9df38b7314f3201512eb2
- Loading branch information