import { PackageManagerTabs } from '@theme'
Several functions that are internally used by the AI SDK might not be available in the React Native runtime depending on your configuration and the target platform.
First, install the following packages:
Then create a new file in the root of your project with the following polyfills:
Make sure to import this file early in your app's entry point (e.g., at the top of your App.tsx or index.js):
For projects not using Expo, you'll need additional stream polyfills since Expo provides some of these out of the box.
First, install the following packages:
Then create a new file in the root of your project with the following polyfills:
Make sure to import this file early in your app's entry point (e.g., at the top of your App.tsx or index.js):