Nativebase logo
NativeBase
NativeBase Factory
NativeBase factory is a function that converts non-nativebase components to nativebase enabled components so you can pass style props to them.
Copy
import { Factory } from 'native-base';
Usage
Playground
Defining component theme
Playground
Using mode in component theme
Playground
Using ref
Playground
Params
Name
Type
Description
Default
component
React component
Original component to be passed on which nativebase props have to be applied.
-
componentTheme
Object
This object can include baseStyle, sizes, variants, defaultProps
-
Nativebase logo
MadeWithNativeBase