テーマ付きのテキスト入力フィールドコンポーネントです。
| プロパティ | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
disabled |
boolean |
❌ | false |
入力を無効にするかどうか |
placeholder |
string |
❌ | '' |
プレースホルダーテキスト |
type |
string |
❌ | 'text' |
入力タイプ |
style |
StyleProp<any> |
❌ | - | カスタムスタイル |
onChangeText |
(s: string) => void |
❌ | - | テキストが変わったときのコールバック |
import { RtkTextField } from "@cloudflare/realtimekit-react-native-ui";
function MyComponent() {
return <RtkTextField placeholder="Enter your name" />;
}import { RtkTextField } from "@cloudflare/realtimekit-react-native-ui";
function MyComponent() {
return (
<RtkTextField
placeholder="Enter display name"
onChangeText={(text) => setName(text)}
disabled={false}
/>
);
}