react-native-ios

React Native Arabic (RTL) without forceRTL

泪湿孤枕 提交于 2020-08-27 21:35:51
问题 In RN my bilingual app (English - Arabic), I have used I18nManager (views) and I18n (for translations) When I am changing app language to Arabic, the whole app gets reloaded again from the splash-screen using this code: I18nManager.forceRTL(true) Ideally, it should not restart the app from start and it should continue with the current screen with Arabic data. Currently, it is not happening, only translation elements are getting converted using I18n.t('keyword') but for views Arabic alignment,

React Native Arabic (RTL) without forceRTL

柔情痞子 提交于 2020-08-27 21:35:27
问题 In RN my bilingual app (English - Arabic), I have used I18nManager (views) and I18n (for translations) When I am changing app language to Arabic, the whole app gets reloaded again from the splash-screen using this code: I18nManager.forceRTL(true) Ideally, it should not restart the app from start and it should continue with the current screen with Arabic data. Currently, it is not happening, only translation elements are getting converted using I18n.t('keyword') but for views Arabic alignment,

WKWebview cookie issue?

試著忘記壹切 提交于 2020-08-10 19:22:30
问题 Background: I'm upgrading my app to use WKWebview from UIWebview as it will no longer be accepted by App Store The App Store will no longer accept new apps using UIWebView as of April 2020 and app updates using UIWebView as of December 2020. Issue: What happen is, I'm getting cookie return from Webview (WKWebview) after logged in. I will retrieve a token I need for API firing, however I'm constantly hitting HTTP 401 status for all the API(s) fired. If I revert back to UIWebview , and repeat

CocoaPods could not find compatible versions for pod “GoogleDataTransportCCTSupport”

一世执手 提交于 2020-08-09 09:19:26
问题 I've installed Firebase In App Messaging according to the guide: https://rnfirebase.io/in-app-messaging/usage When I run pod install , I get this: Using firebase.json from '/../app/firebase.json' Adding a custom script phase for Pod RNFBApp: [RNFB] Core Configuration Adding a custom script phase for Pod RNFBCrashlytics: [RNFB] Crashlytics Configuration Detected React Native module pods for RNFBAnalytics, RNFBApp, RNFBCrashlytics, RNFBDynamicLinks, and RNFBInAppMessaging Updating local specs

How to view and share a pdf from an URL in a react native app?

╄→гoц情女王★ 提交于 2020-07-22 05:23:09
问题 I have a use-case in my react native app wherein I have to load and display a pdf from an endpoint and also share the same as an attachment(to Gmail app or WhatsApp or even download it) using the native share options (both ios and Android). I'm currently using the react-native-pdf library to load and show the pdf on the app and it's working fine. The problem is with the share option. I tried using facebook's Share API to achieve this but unfortunately, it doesn't serve my purpose as the pdf

Invariant Violation: TurboModuleRegistry.getEnforcing(…): 'DevSettings' could not be found

懵懂的女人 提交于 2020-06-27 17:15:59
问题 App get crashed with the above message. Unable to view my app screen. Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'DevSettings' could not be found. Verify that a module by this name is registered in the na..., stack: platform :ios, '9.0' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' target 'App' do # Pods for App pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector" #pod 'BVLinearGradient', :path => '..