
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-dfcx
Advanced tools
A customizable React Native chat interface for Dialogflow CX agents
This React Native component provides a chat interface that communicates securely with a Dialogflow CX agent via a Google Cloud Function middleware proxy. It supports a wide range of Dialogflow Messenger response types and is designed to drop easily into any mobile app using React Native.
🔧 Note: You must deploy the required Cloud Function Middleware in your Google Cloud project before using this component.
The component supports the following standard Dialogflow response types in your conversation flows, as detailed in Google’s documentation: Dialogflow Messenger Fulfillment:
Text: Simple text responses
Description: Multi-line text with a header and body
Info: Image with a title, body text, and optional URL
Image: Direct image display
Video: Embedded video via URL
Button: Interactive buttons
List: Scrollable lists of items with titles, subtitles, and images
Files: Downloadable file attachments with name and preview
Chips: Quick reply suggestions
Accordion: Expandable content blocks
NOTE This component requires the chat Cloud Function to be deployed in the same Google Cloud project as your Dialogflow CX agent.
npm install react-native-dfcx
import { ChatDialog } from 'react-native-dfcx';
<ChatDialog
chatURL="https://europe-west1-dotstorming.cloudfunctions.net/cx-chat"
apiKey="cb2be986-6b84-4ab1-8eeb-b2fc40402077"
agentPath="https://dialogflow.cloud.google.com/cx/projects/dotstorming/locations/global/agents/4459aa96-eebe-4419-8d28-77207f442165"
sessionTimeout={30}
mainColor="#ff0000"
mainTextColor="#FFFFFF"
sessionVariables={{
userId: '12345',
userName: 'John Doe',
}}
/>;
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
chatURL | string | ✅ | — | The URL of your deployed Dialogflow CX chat function. |
apiKey | string | ❌ | — | Optional API key required to call the chat function. |
agentPath | string | ✅ | — | The full Dialogflow Agent path URL. |
languageCode | string | ❌ | 'en' | Language code of the Dialogflow CX agent. |
sessionTimeout | number | ❌ | 30 | Time in minutes before session resets and new session ID is generated. |
placeholder | string | ❌ | 'Message...' | Input placeholder text. |
startMessage | string | ❌ | — | Hidden message sent to Dialogflow when session starts. |
welcomeMessage | string | ❌ | — | Message shown to user at session start (not sent to Dialogflow). |
mainColor | string | ✅ | — | Background color for user messages. |
mainTextColor | string | ✅ | — | Color for user input text. |
sessionVariables | object | ❌ | {} | Parameters sent with each user input. |
| Name | Description |
|---|---|
restart | Restarts the chat session with a new session ID. |
To find your agent path:
The copied URL can be pasted directly into the agentPath prop.
For help or customizations, reach out to gareth@dotstorming.com.
FAQs
A react native implementation for Dialogflow CX
We found that react-native-dfcx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.