Input (bare)

A plain native input that takes dictation — zero kit markup, zero kit styles. Yours to design.

Same speech behavior as the text field — claim on a starts-with match, stream the remainder into the value filtered by type, contains fallback, onMatch flushed once on stop — rendered as exactly one native element with nothing added. While the mic is open the element carries data-listening.

Your input, our dictation

All visible styling belongs to the sample; the kit adds only behavior.

Loading the React Native kit…

Hold anywhere and say:“callsign rocinante”“callsign apollo”

Props

  • not set
  • not set
React Native
Updates as you tick props
import { ListensInput } from "@listenssoft/speechui-react-native";import { useState } from "react";
function Demo() {  const [callsign, setCallsign] = useState("");  return (    <ListensInput      command="callsign"      label="Callsign"      type="letters"      value={callsign}      onChangeText={setCallsign}      onMatch={setCallsign}      style={{        padding: 10,        borderWidth: 1,        borderColor: "#888",        borderRadius: 6,      }}    />  );}

What you can say

SayEffect
“callsign rocinante”Starts-with match: streams “rocinante” into the value (filtered by type).
“the callsign is rocinante”Contains fallback: sets the value to the words after the command (“is rocinante”) if nothing else claimed the phrase.

See the text field for the full dictation semantics — they are identical by design.

API reference

React Native props for @listenssoft/speechui-react-native.

Props

PropTypeDefaultDescription
typeListensTextValueType—Speech filter for dictated text.

Extra props

PropTypeDefaultDescription
commandstringlabelThe spoken prefix that starts dictation.
labelstring—Contract label and command fallback. Not rendered.
onMatch(value: string) => void—Fires once when listening stops.
…TextInputPropsTextInput props—value, onChangeText, placeholder, style — a plain TextInput with zero default styling.

Styling hooks

Styling hooks

HookTypeDefaultDescription
styleStyleProp—The TextInput is unstyled; bring your own design system.

Was this page helpful?