React Native: Determine number of lines of Text component
As the title says, I've been trying to find a way to determine the number of lines the text component AFTER it has been given text. Look at my example below.<Text> Lorem ipsum dolor sit amet,...
View ArticleReact Native android build failed. SDK location not found
I have error when i start running androidWhat went wrong: A problem occurred evaluating project ':app'. > SDK location not found. Define location with sdk.dir in the local.properties file or with an...
View ArticleGot this bug in React-Native I can't figure out
Task :app:preDebugBuild FAILEDFAILURE: Build failed with an exception.What went wrong:xecution failed for task ':app:preDebugBuild'. Android dependency 'com.google.android.gms:play-services-base' has...
View ArticleDoes the react javascript run time is guaranteed to be started when a service...
In my app the BroadcastReceiver receives the intent and starts the service by calling "context.startForegroundService(service)". Does this start the react javascript runtime ? The android Application...
View ArticleCamera Preview in Expo is Distorted
I'm using Camera that comes from expo package and I'm having trouble with camera preview distortion. The preview makes images appear wider in landscape view and thinner in portrait view. I've tried to...
View ArticleIs there a possibility to install mapbox navigation on react-native?
I am developing a react-native application using mapbox gl. I would like to use navigation turn by turn, but can't find a way to install sdk for react-native (only java from the mapbox website) Is...
View ArticleCould not find com.android.tools.build:gradle:3.5
I'm trying to update gradle from 1.3.1 to 3.5, as some of my dependencies requires version 3.3 or above.I've seen similar questions, but none of them help.build.gradle:buildscript { repositories {...
View ArticleReact native exception: The specified child already has a parent.
I'm getting the following error triggered by React Native. I'm pretty sure its linked to a custom view I am using. The view is generated by some C++ code (via OpenGL) which is added to a ViewGroup and...
View ArticleEdit AndroidManifest in un-ejected Expo App?
I've been building my RN app directly from Expo (expo build:ios/expo build:android) without ejecting, without opening the app in Xcode or Android Studio.To get KeyboardAwareScrollView to work on...
View ArticleFirst argument "email" must be a valid string
I'm recently practicing React Native and developing a signup form attached to Firebase.But whenever I tried to click the button, it gives an error: createUserWithEmailAndPassword failed first argument...
View ArticleHow to integrate native ios camera SDK in existing react native App?
I am currently working with a react native app as per requirement i need to integrate external camera with ios and android SDK.As react native SDK for particular camera is not available can anyone help...
View Articlecould not generate APK on react native : :app:lintVitalRelease
I create a key with this command :keytool -genkey -v -keystore first-key.keystore -alias first-key-alias -keyalg RSA -keysize 2048 -validity 1000 and add this to gradle file :signingConfigs { release {...
View ArticleReact native Android App wont't build and displays the following error
PFA image for reference.Screenshot Real DeviceOne Plus 6Oxygen OSMy app/build.gradleapply plugin: "com.android.application" import com.android.build.OutputFile project.ext.react = [ entryFile:...
View Articlecom.facebook.react.bridge.WritableMap.copy() on a null object reference
I have a background service on my app wrote with react-native. When start service then closed app and alert: "Stoped: Unfortunately". I open project on android studio for test and debug. and i take it...
View ArticleLocalNotificationSchedule not working on android react native v0.60
localNotificationSchedule is not working react-native-push-notification while localNotification is working normally:PushNotification.localNotificationSchedule({ message: "Notification", date: new...
View Articlereact-native android bundle release fails to run on some devices
I am working on a mobile application and developing it using react-native.I can successfully run the project on my emulator via react-native run-android and i can successfully have a bundle release...
View Articlereact-native : can't push to git because of hprof file
I would like to push my project into the github, however i just notice there is a file called java_pid14920.hprof inside the android folder and cause around 300MBremote: error: File...
View Articlereact-native run-android keeps failing. What am I doing wrong?
I setup a react native environment and created a new project using react native cli. But it fails when I run react-native run-androidThis is what I get in my terminal. Can anyone please help?PS...
View ArticleShare custom file using React Native
I have a custom file something like file.myext wich I create it using rn-fetch-blob:RNFetchBlob.fs.writeFile(path, JSON.stringify(data), 'utf8')And I'm using react-native-share to share the file, I...
View ArticleAndroid Calendar API set ACL on Calendar
I have a react-native app which uses react-native-calendar-events to read calendar events. This works nicely.But I also have the requirement of sharing the user's calendar with other people (using...
View Article