Skip to content

[New] add support for hoisting statics to withTheme #368

@bcgilliom

Description

@bcgilliom

Describe your feature request

When using react-navigation, it's sometimes nice to be able to define navOptions in the screen using static navigationOptions = {...}. other HOCs like connect, use hoist-non-react-statics so wrapped components can still work in the above case

Context
See above. There are def. workarounds, but it took a while to figure out what was going on, so I would suggest that it's simpler to just make it work than to try to explain it in a Readme :-)

Proposed solution
Use hoist-non-react-statics https://github.com/mridgway/hoist-non-react-statics

Will try for a PR as soon as I have time

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions