Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IosCompliantAppleAuthButton types: Limit what can get passed for `sty…
…le`. Partly in the spirit of 8b30fa9, but also because this helps us avoid a mystifying error reported by Flow when we take the upgrade to Flow v0.122.0, with the React Native v0.63 upgrade (zulip#4245). I was seeing the error on the use of `ZulipButton` in `AuthScreen`; it didn't like what I was passing for the `style` prop. When I temporarily commented out the `style` prop passed to `IosCompliantAppleAuthButton`, the error disappeared. It doesn't make a lot of sense to me, but it sounds like `IosCompliantAppleAuthButton`'s type for its `style` prop was influencing what type `styles.halfMarginTop` was inferred to have, when it was passed to `ZulipButton`.
- Loading branch information