UNPKG
native-variants
Version:
latest (0.1.74)
0.1.74
0.1.73
0.1.72
0.1.69
0.1.64
0.1.63
0.1.62
0.1.61
0.1.56
0.1.55
0.1.54
0.1.53
0.1.51
0.1.47
0.1.44
0.1.42
0.1.41
0.1.40
0.1.39
0.1.38
0.1.35
0.1.34
0.1.33
0.1.32
0.1.30
0.1.29
0.1.28
0.1.27
A library for handling variants in React Native components with theme support.
native-variants
/
dist
/
provider
/
create-provider.d.ts
8 lines
(7 loc)
•
253 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
import
{
PropsWithChildren
}
from
"react"
;
export
declare
const
createCTX
: <T>
() =>
{
CTXProvider
:
(
{ children, props, }:
PropsWithChildren
& { props: T; }
) =>
import
(
"react/jsx-runtime"
).
JSX
.
Element
;
useCTX
:
() =>
T |
undefined
; };