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

Search
K
Hire us
Please opt in to our enterprise plan (coming soon) for priority support with NativeBase. If you are starting a new project, we recommend using gluestack-ui. For your existing projects, you can utilize @gluestack-ui/themed-native-base (beta).
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