Skip to content

Conversation

@hawkrives
Copy link
Contributor

Summary

Currently, Flow will yell loudly if you try to use useTheme from the result of createTheming; with this change, it's happy.

Test plan

Before, if you did

const {ThemeProvider, withTheme, useTheme} = createTheming(theme)

in a Flow project, you would get "unknown item useTheme".

With this change, Flow is silent, and properly assumes the return of a T-shaped object from useTheme.

@souhe souhe merged commit 271a58a into callstack:master Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants