Version: 3.0.0

NativeBase Factory

NativeBase factory is a function that converts non-nativebase components to nativebase enabled components so you can pass style props to them.

import { Factory } from 'native-base';

Usage#

Defining component theme#

Using mode in component theme#

Using ref#

Params#

NameTypeDescriptionDefault
componentReact componentOriginal component to be passed on which nativebase props have to be applied.-
componentThemeObjectThis object can include baseStyle, sizes, variants, defaultProps-