Skip to main content

React Native Troubleshooting

Unable to resolve @saltware/fidbek-react-native

Check package installation and reset caches:

npm install
watchman watch-del-all || true
rm -rf $TMPDIR/metro-* $TMPDIR/haste-* || true
npx react-native start --reset-cache

Android build fails with New Architecture error

Set this in android/gradle.properties:

newArchEnabled=true

Android crash: NoClassDefFoundError androidx.viewbinding.ViewBinding

Use the latest package release, then clean and rebuild:

cd android
./gradlew clean
cd ..
npx react-native run-android

Shake trigger opens too often

  • Upgrade to the latest release line (includes tuned Android shake sensitivity).
  • If your app has frequent motion gestures, disable shake and use manual trigger:
await Fidbek.configure({
token: "YOUR_TOKEN",
shakeToOpenEnabled: false,
});

Runtime error: Tried to show an alert while not attached to an Activity

This happens when calling open() too early. Ensure:

  • configure() completed successfully
  • app is in foreground/resumed state
  • call is user-triggered after first render

Expo prebuild error: Failed to create the native directories

Native folders already exist. Either:

  • remove ios/ and android/ then run npx expo prebuild
  • or run npx expo prebuild --clean