React Native iOS app crashes on language change with react-native-restart (works on Android) [closed]

1 day ago 1
ARTICLE AD BOX

I am facing an issue in my React Native application where the app crashes on iOS when changing the language and triggering a restart.


🔧 Environment:

react-native: 0.73.2

react-native-restart: 0.0.27

@gorhom/bottom-sheet: ^5

react-native-reanimated: 3.8.1


❗ Issue:

When I change the app language (for example, from English → Arabic) and trigger an app restart:

✅ Android: Works correctly

❌ iOS: App crashes immediately after restart


📱 Additional Context:

The Arabic (RTL) version of the app was previously working correctly

After some recent changes, UI issues started appearing in the Arabic layout

Now, the app crashes specifically on iOS when restarting after a language change

The restart is triggered using react-native-restart


🧪 What I’ve Tried:

Verified RTL setup using I18nManager

Ensured language state updates before calling restart

Checked layout-related components like bottom sheets and reanimated views

Confirmed that no obvious runtime errors appear before restart

Read Entire Article