// index.tsx
Код: Выделить всё
import {useFonts} from "expo-font";
import AppNavigator from "@/app/AppNavigator";
import React, {useEffect} from "react";
import {AuthProvider} from "@/contexts/AuthContext";
import moment from 'moment-jalaali';
import {I18nManager} from 'react-native';
I18nManager.allowRTL(false);
I18nManager.forceRTL(false);
I18nManager.allowRTL(true);
I18nManager.forceRTL(true);
I18nManager.swapLeftAndRightInRTL(false);
export default function Page() {
const [fontsLoaded] = useFonts({
...
});
if (!fontsLoaded) {
return null;
}
moment.loadPersian({
usePersianDigits: true,
dialect: 'persian-modern'
});
return (
);
}
Код: Выделить всё
Expo SDK 50
React Native 0.73.2
Production APK build
Подробнее здесь: https://stackoverflow.com/questions/791 ... pk-despite