Skip to main content

Overview

The InputAccessoryView component (iOS only) displays a custom view above the keyboard. Uniwind provides className prop support for styling this component.

Styling Convention

For style props: Use regular Tailwind classes directly (e.g., className="p-4").For non-style props (like color): Use the accent- prefix (e.g., colorClassName="accent-bg-blue-500").

Uniwind Bindings

className
string
Maps to the style prop. Use any Tailwind utility classes.
backgroundColorClassName
string
Maps to the backgroundColor prop. Requires accent- prefix for color values.

Usage Example

import { InputAccessoryView, Button } from 'react-native'

<InputAccessoryView
  nativeID="uniqueID"
  className="p-4 border-t border-gray-300"
  backgroundColorClassName="accent-bg-white dark:accent-bg-gray-800"
>
  <Button title="Done" onPress={() => {}} />
</InputAccessoryView>
I