NativeBase Factory | NativeBase | Universal Components for React and React Native

Search
K
Hire us
Data Display
Typography
Disclosure
Media and Icons
Others
If you are starting a new project, please try gluestack-ui for better performance and new design.
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