Everyone.
I'm developing React Native lately.
I've successfully created a android app sample as installation guide:
https://facebook.github.io/react-native/docs/getting-started.html
but the Hot Reloading function is not working for me...
so it's not really convenient to develop something.
I don't have mac to test React Native and my development environment is based on Windows 7, android studio(Android SDK, JDK1.8), HTC one(Android 5.0.2)
Is it the reason react-native start server not firing when index.android.js file changed?
or some plugin I should add in the project? like webpack or watchman..
thanks!
Installing the latest NodeJS Long Term Support release (6.10.x) should fix this issue.
Related
So I built an android app using flutter on Android studio but I see that in order to build an IPA I need to use Xcode on a MAC device so I was really wondering what to do to transfer the flutter app to Xcode? or do I need to rewrite the whole code again?
I tried using a ci/cd service too it would build the app in .app format but would never install on my IOS device, I followed another procedure to transfer .app to .ipa but still it can't be installed so I'd be really grateful if someone could give me an insight on what to do at least
thanks in advance
Flutter can directly compile an iOS and Android version. You do not need to rewrite anything(unless you have Android native code in your App). Just open your Project on a Mac with Flutter and Xcode installed and compile it by running flutter build ios.
You won't be able to do anything without a Mac though. Since Xcode is required to sign your App and Apple doesn't let you do that on any other OS.
I have an Android app built from scratch using React Native. Can I migrate the same app to iOS? If so, how tough will it be?
The Android app is already built and working fine.
If the app is done in React Native, you could build it using Xcode, of course you need a Mac, https://facebook.github.io/react-native/docs/getting-started#xcode.
You can also try from command line
react-native run-ios
Remember that you still need to install Xcode and the tools needed to build on the simulator or your device.
Also remember that you might have to do some changes in your code, not always the code for android works in iOS, moreover if you are using native modules done by you or from a library.
A project written in react-native should, by default, work on iOS.
Normally tho, every package you have used, some styles still differs from each other from platform, some things are avaiable to do on Android and not on iOS, some things are avaiable on iOS and not on Android.
Some packages needs linking. Some needs additional steps to run on iOS changing some datas/informations using xcode. (like deep linking).
On react-native 0.60 you need to install the pods manually as it's not done by the autolinking, there are a lot things to check and it may not be automatic for the majority of the cases
Is there any way to develop a React Native app for Android without installing Android Studio ?
On Ubuntu 18.04 the apt command proposes a lot of android packages: android-sdk, android-sdk-platform-tools etc...
What do I need exactly to get React Native working properly ?
Please don't use expo or another SDKs of react native. React Native CLI is recommended everywhere because its performance is not comparable to expo and it is much more lightweight! Android Studio is just an IDE! If you setup your android development environment correctly there is no need to install Android Studio IDE (This is for experts!) but it is recommended to install for amateur users.
If you don't want to use the Android studio, you can take advantage of the Expo. Expo is the best way to assist React-native. You can run the app without the Android studio, and when you refresh, you can see the modified code right away.
Look at this official document and follow it slowly.
you don't need Android Studio at all, if you are using react native cli you can install it on your phone and run it there.
An attempt of solution to use react native without android studio and without expo is to build directly in your device.
you must install adb first by following this link install-adb-fastboot-on-ubuntu 18.04
and then you should follow this link react-native running-on-device
It will help you.
I'm using usb cable to install debug apk in my phone (react-native run-android). I put my phone in the same network (WIFI) with my machine (server) and configure the server address and port to debug remotely in the phone. After that i remove the usb cable.
In short everything is explained on the link above
I have developed a Sencha Touch Application. My platform is Linux. I have done the following steps from developing to deploying it on Android:
1) Downloaded Sencha Touch and Sencha CMD.
2) After running the command
sencha generate app appname ../appname
My project was created. With the help of eclipse plugin I was able to open the project in Eclipse and make changes to it.
3) Built the project using
sencha app build production
4) Downloaded cordova for native packaging
5) Created a project in cordova using cordova create appname
6) Copied contents of sencha production to www folder of cordova application
7) Ran the following commands
cordova prepare android
cordova compile android
cordova run android
After going through all these steps, I was able to run my application on my mobile.
But I have the following doubts.
1) Is this approach the best? Or is there any other way which is more efficient. Any tutorial or links will be of great help.
2) Is Cordova really necessary in my case? Because I am not using any of phone native features like camera, accerelometer etc.
I tried using sencha native packaging for android. But when I run the following command,
sencha app package build packager.json,
it shows the following error. Sencha Native Package (stbuild) is currently unsupported on linux
So, is there a way not to use cordova or phonegap and directly build using sencha native packaging.
3) How can I debug my application in Eclipse while deploying it on Android as I can debug my normal android application.
4) If I want to deploy it on ios, then is it possible to deploy it without using Mac?
Follow the instructions about using Sencha Touch with Cordova/Phonegap from Sencha themselves. Make sure to download Sencha Cmd 4.0 or higher.
Their recommended way is to create a project with Sencha Cmd
sencha -sdk /path/to/SenchaTouch generate app MyApp /path/to/MyApp
initialize Cordova
sencha cordova init [AppID]
configure the config.xml at the root level of your project where your index.html file resides and build/run with
sencha app build -run native
This has worked great for me. Unfortunately you need a Mac in order to develop for iOS. Even with Sencha Touch and Cordova, Xcode is a requirement.
If you want your web app to be distributed through the app stores, to be natively installed on iPhones or Android devices then yes, you need some kind of wrapper around it. There are certainly other ways but Cordova/Phonegap is an easy starting point and since version 3.0 quite light weight in its core.
Say I'm a windows dev, familiar with Visual Studio and with a need of developing an Andriod app. I looked at both the andriod and wp7 getting started guides, but found the windows phone version http://phonegap.com/start/#wp guide much simpler than the Android version (of course, as a windows dev I have already everything installed).
Then comes my question:
Could I develop my app using the Windows Phone environment, and then use the PhoneGap Build services to get the Android version build?
In case, what should I upload to the build service?
Sorry if I got this all wrong, and thanks for any help!
Larsi
The whole idea of phonegap is to develop a multi platform app writing the code once.
So the answer is yes, you should be able to build the app for wp, and then re-use your code for all the other platforms, only if you onlyuse the phonegap API and do all your programming in JS, HTML and CSS.
About what you should upload, I haven't doned it myself, but I think that It would have to be all the JS, HTML and CSS from your app. In android all is located on a folder called "assets".
Good Luck!