React Native app, installing release apk, parse error - javascript

meizu m2 mini android 5.1 screenshot
I have parse error on some devices, but i cannot find reason, because for example it works on one Meizu and not working on another Meizu, and the same with android version, it work on Android 5 on one phone and not working on another phone with android 5. It not works if i build app release apk and try to install it manually, but if i try to debug with usb cabel - it works , also it works if i install app by using command react-native run-android --variant=release

This is due to already installed debuged mode app in your device. Uninstall previously installed debug apk from your devive then install new released apk.

Related

Issue with the ios folder, after expo ejecting

I'm trying to integrate paypal payments into my expo app, but as expo not yet supports paypal i was trying the react-native-paypal package. This requires to add some extra dependencies into the ios/android folders so i was trying to eject from expo using expo eject. Note that im running this command from a windows operating system and i also did find a way to install cocoapods. But the thing is that after running expo eject it warns me that i should do this procedure from macOS or linux to get the ios folder. How else can i get this? Thanks in advance.

Javascript version mismatch for Tabris framework

Few month ago I gave a try to Tabris, a nice framework for the development of native Android and iOS apps in Javascript. I wanted to get back to it today but my test app has javascript version issues.
First, the QR code scanning on Tabris mobile app side failed with error udefined. I setup the IP address manually and the app got connected to the Tabris server running on my laptop. However, the console on the mobile app complains with: Version mismatch: Javascript module "Tabris" (version 3.5.0) is incompatible with the native tabris platform (version 3.6.0)..
I started by upgrading tabris-cli with npm i -g tabris-cli. It didn't help. Then I uninstalled and reinstalled both the mobile app and tabris-cli. Both are now in version 3.6.0 but the same error remains.
Any idea ?
The Version mismatch error stems from the fact that the native application code and the code of the JavaScript framework of your project are different. If you look at the package.json file of the directory where you are running tabris serve it will probably have the tabris dependency set to 3.5.0
You can update it by running this command:
npm install tabris#3.6.0 --save

React Native app runs on emulator, not on device

The app runs perfectly on an emulator from Android Studio, but returns
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment
When I run it from the CLI
I've tried rerunning the command and creating a new project
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment
Follow the steps below in order to solve the issue:
Go to the root project folder.
Find the Android project (which the Android Studio would recognize)
Open it on Android Studio and fix all the Gradle-related issues.
Once there is no more issue, close Android Studio and rerun the
react command.

How to build react-native app for iOS properly?

I developed a react native app (version 57.4) on windows for android and it works fine.
Now I'm trying to build for iOS with no luck (as I don't have any experience with Xcode).
What I tried so far:
I knew that it requires a Mac and Xcode so I downloaded a VM, install Xcode.
Git clone myApp
react-native run-ios
But I got a lot of errors and build failures so after some search, I make these more steps:
react-native link
link some fonts manually
add a pod file and pod install
make some Xcode changes which I can't remember
react-native run-ios
And it works :)
BUT I had an issue with axios so I tried to fix it but I ruined the app so I removed the folder and re-cloned it again.
This time, I can't build successfully again!! and if it builds it crashes instantly!
My Question is what the exact steps do I need to make to build successfully on Mac (especially steps for Xcode)? including how to link all native dependencies correctly? and Is the pod file is necessary?

React Native DeviceInfo native module is not installed correctly

I'm trying to run a React-Native application on my Android device which is a Huawei Honor 7, the device is connected to the pc through USB and I'm running it through command with: react-native run-android why am I getting this error?
Check this issue: https://github.com/rebeccahughes/react-native-device-info/issues/176
Looks like you just need to reinstall node_modules

Categories

Resources