Almost every app wants an "Ask AI" screen now. Building one in React Native sounds easy until you hit the details:
Text stutters while the response streams in, token by token
Half-written markdown ( **bold , an unclosed code block) breaks the layout
fetch in React Native doesn't stream response bodies out of the box
The keyboard covers the input on Android
Then come stop, retry, chat history, file uploads...
I rebuilt these one too many times, so I packaged them as an open-source library: react-native-ai-chat-kit . Here's how to add a full AI chat to an Expo app.
1. Create the app and install
npx create-expo-app@latest my-ai-app --template blank-typescript cd my-ai-app npx expo install react-native-ai-chat-kit react-native-safe-area-context
Enter fullscreen mode
Exit fullscreen mode
The kit is pure TypeScript with no native code, so it runs in Expo Go and in React Native CLI apps.
2.…