Info:
This is documentation for Stream Chat React Native SDK v8, which is no longer actively maintained. For up-to-date documentation, see the latest version (v9).

CommandsButton

Renders the commands picker button inside MessageInput. This is the default component for the CommandsButton prop.

Best Practices

  • Keep the button accessible and easy to discover.
  • Avoid heavy logic in handleOnPress; delegate to composer when possible.
  • Show the button only when commands are enabled.
  • Keep icons consistent with other input actions.
  • Use the Channel prop to override instead of editing internals.

Props

handleOnPress

Press handler.

Type
function
Add Chat to my app: getstream.io/SKILL.md

The fastest way to build with Stream. Start a new project or improve an existing one. Full CLI and documentation integration out of the box.


Ask your agent:

/stream Build me a Social App with Feeds and Moderation.
/stream Any livestream calls running?
/stream Chat React Native v8: <Your Question>