Skip to content

React Native - Troubleshooting

This page describes solutions to issues you may encounter when integrating or updating the Literal SDK in React Native applications.

Library updates

Updating a React Native dependency may require updating the iOS or Android dependencies as well. Here are some useful steps to follow.

Update React dependency

yarn upgrade @literal.ai/literator-react-native

Update iOS dependency

Close XCode if open, then delete ios/build and ios/DerivedData.

Ensure the iOS pod is updated:

cd ios && pod install --repo-update

Update Android dependency

No real updates should be required here, but often a clean helps.

cd android && ./gradlew clean

Perform a fresh build

npx react-native run-ios
npx react-native run-android