Form for creating a new poll with question, dynamic options, anonymous voting, and hide results toggles.
| Property | Type | Required | Default | Description |
|---|---|---|---|---|
iconPack |
IconPack |
❌ | defaultIconPack |
Custom icon pack |
t |
RtkI18n |
❌ | - | i18n translation function |
onRtkCreatePoll |
any |
❌ | - | Callback when poll is created (receives question, options, anonymous, hideVotes) |
import { RtkPollForm } from "@cloudflare/realtimekit-react-native-ui";
function MyComponent() {
return <RtkPollForm onRtkCreatePoll={(data) => handleCreatePoll(data)} />;
}import { RtkPollForm } from "@cloudflare/realtimekit-react-native-ui";
function MyComponent() {
return (
<RtkPollForm
onRtkCreatePoll={(data) => handleCreatePoll(data)}
iconPack={customIconPack}
/>
);
}