Skip to content

Conversation

r17x
Copy link
Contributor

@r17x r17x commented Oct 26, 2021

This PR is implement binding for withTheme based on https://callstack.github.io/react-native-paper/theming.html#using-the-theme-in-your-own-components

example

@react.component let make = () => { ...// implementation } let make = Paper.withTheme(make)
example ```rescript @react.component let make = () => { ...// implementation } let make = Paper.withTheme(make) ```
@r17x r17x added the enhancement New feature or request label Oct 26, 2021
@r17x r17x requested a review from MoOx October 26, 2021 08:16
module Icon = Paper__Icon

@module("react-native-paper")
external withTheme: React.component<'props> => React.component<'props> = "withTheme"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this specify somehow that the theme prop is injected?

@MoOx MoOx merged commit 9ce8b92 into rescript-react-native:main May 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

2 participants