react-native-android

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,

Delay on the capture of an image - React Native Camera / Expo Camera

只谈情不闲聊 提交于 2020-08-27 02:31:13
问题 I am trying to realize the same functionnality as in Facebook or Instagram: Preview the image taken by the camera instantly At this point, my taken is correctly taken when this function is called : takePicture = async function() { if (this.camera && this.state.isConnected === true) { const options = { quality: 0, base64: false }; const data = await this.camera.takePictureAsync(options); this.toLoading(data.uri); } }; As displayed here, camera quality option is set to 0 to assure that the

Delay on the capture of an image - React Native Camera / Expo Camera

早过忘川 提交于 2020-08-27 02:30:40
问题 I am trying to realize the same functionnality as in Facebook or Instagram: Preview the image taken by the camera instantly At this point, my taken is correctly taken when this function is called : takePicture = async function() { if (this.camera && this.state.isConnected === true) { const options = { quality: 0, base64: false }; const data = await this.camera.takePictureAsync(options); this.toLoading(data.uri); } }; As displayed here, camera quality option is set to 0 to assure that the

React-Native productFlavors (Error type 3: Activity class does not exist)

亡梦爱人 提交于 2020-08-22 09:55:08
问题 I want to use 2 productFlavors for my Android App: live and staging . In app/build.grandle I defined them like this: defaultConfig { applicationId "com.some.id" minSdkVersion 16 targetSdkVersion 22 versionCode 1 versionName "1.0" ndk { abiFilters "armeabi-v7a", "x86" } } splits {...} buildTypes { release { minifyEnabled enableProguardInReleaseBuilds proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" } debug { debuggable true minifyEnabled false proguardFiles

Activity class {rcm.samapp/com.comp.android.ui…} does not exist

孤街醉人 提交于 2020-08-10 19:16:34
问题 I am trying to integrate react native and native android app. applicationId in apps build.gradle is rcm.samapp package in manifest tag is com.comp.android . Line 1 in SplashActivity.kt is package com.comp.android.ui activity is Manifest looks like: <activity android:name=".ui.SplashActivity" android:screenOrientation="portrait"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> <category android:name="android

Activity class {rcm.samapp/com.comp.android.ui…} does not exist

巧了我就是萌 提交于 2020-08-10 19:15:30
问题 I am trying to integrate react native and native android app. applicationId in apps build.gradle is rcm.samapp package in manifest tag is com.comp.android . Line 1 in SplashActivity.kt is package com.comp.android.ui activity is Manifest looks like: <activity android:name=".ui.SplashActivity" android:screenOrientation="portrait"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> <category android:name="android

All my react-native projects shows error TypeError: cb.apply is not a function

China☆狼群 提交于 2020-08-10 19:12:13
问题 I'm realtively new to react-native. All my projects were running fine in the morning, but somehow they stopped working. When I run react-native start and the react-native run-android, the app gets installed on the device but then this error props up which was not happening before. Loading dependency graph, done. DELTA [android, dev] ./index.js ░░░░░░░░░░░░░░░░ 0.0% (0/1)/home/yehyaumar/Documents/dumm/busybee/node_modules/graceful-fs/polyfills.js:285 if (cb) cb.apply(this, arguments) ^

Running RN View in existing android app gives error Unable to load script

不羁岁月 提交于 2020-08-10 18:51:06
问题 I have integrated existing android app in react native app. When I run using react native cli it opens the app and after clicking a button to open RN view it gives the error Unable to load script Make sure you are either running a Metro server or that your bundle 'index.android.bundle' is packaged correctly for release (refer image) If I manually create the index.android.js using command react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src