I'm trying to develop my first react-native app. Before I used capacitor, that creates for me the android/ios platforms inside my angular/react project and threat them just as normal assets.
ReactNative instead didn't create anything beyond my regular typescript project (I used expo-cli to setup). Problems arise when I try to use react-native-charts-wrapper, that asks me to manipulate gradle/pod file to use it (doc).
Thinking in general terms, it seems pretty weird that my project totally miss the android/ios native assets.
What am I missing? So what I'm supposed to do now?
After some research I found that to get the android/ios projects I need to setup my project with react-nativle-cli intead of expo-cli.
Instead of expo-cli, try react-native-cli, that resolved the same issue when I had faced it.
Related
Couple of days ago I upgraded react-native project and also changed a lot of settings in my android and ios folders. After that it stopped to work properly and I deleted it. Now, I want to regenerate ios & android folder and make it work with my existing code. The question is: how can I do that?
Thanks!
As mentioned in the comments,
If you are using Expo as your development tool for react native, you can always reset the android and ios folders by running:
expo eject
from the command line when ever you need, just notice it will override changes made directly on these folders, so eject cerfully.
I'm programming on Expo for Android and I'm totally new to React-Native and Expo and really can't find something about a detached app's VCS on Expo docs, nor another similar question in the forums or SO (I "detached" my app because I needed React-Native-signature-capture).
Here are some things to have in mind:
We are a team of 2 developers working with the same app.
Each one manages his own tasks/issues
I'm the one who used to build the Expo app with my own expo account when the app was "attached".
When I was About to Stage SourceTree showed me this
The thing is, when I was about to stage and commmit React-Native code I saw all the /.expo-source and /android files and all that weights 10MB!... 10mb on a single commit, is that right? Is there something I can do about it? Do we need those files on VCS? Sorry for my bad english.
You don't need the Expo directory anymore. For Android, look at the React Native .gitignore here.
Also check if an .apk is trying to make its way into the repo. Add *.apk to .gitignore.
Well, those were all necessary files needed for the repo (my fault, I have lots of dependecies) also there were plenty of auto-generated files there (when you do gradle build these files are rebuild each time). So I kept managing the repo like I was doing before the Detach
How to use j2objc in android studio?
I did not find any manual. How to implement and work with j2objc in android studio?
I'm a junior in java language, and I wrote one app for android, and now I need convert this app for iOS. It's a simple app.
I want use j2Objc for a separate build app for iOS, but I don't know how to work with j2objc.
Download distribution and this plugin. Follow instructions and everything will work.
Forgive this obvious question, but you have a Mac, right? You won't be able to build iOS apps without one. That's why many j2objc engineers use Xcode, since UI development and debugging are easier to do there.
I have win 10 machine.
OK, I downloaded it, unzip, and next step? I dont see any instruction, what i do with this. Paste in specific folder? Implement with plugin wizard? or? Maybe Im stupid, but realy I dont know how these features work on.
I see only:
This package must be built on an OS X system, with: ...
and for gradle plugin ...
oh shit!
Is it required to have Intellij or Eclipse or can one simply write apps by simply using some editor like Sublime and Cordova CLI? Is there something I cannot do without using an IDE?
since a cordova application project conists of html and js files a text editor would be enough , i am using visual community code 1
No, its pretty easy to develop cordova not using an IDE. In fact it gives you a good understanding of whats really going on.
Take a look at the docs http://cordova.apache.org/docs/en/5.0.0/guide_cli_index.md.html#The%20Command-Line%20Interface and create the example to get an idea. After that its just using the command line tool to add plugins and your editor to write html/js
You might miss the simulator that comes with the IDE. In particular, XCode. Testing on IOS simulator and publishing to the App Store is relatively easier using XCode.
But is IDE required? Not really.
If you need custom plugin for your app, you have to use an IDE since java classes from different packages must be imported. Thus, this work can be very waste of time without an IDE like Android Studio.
I have an android library in the form of an eclipse project that I want to integrate with unity3d. I know I can make a jar from eclipse and drop it in unity's plugins/android folder. However as I understand it that necessarily strips out the resources from the project.
If I export the unity game to an eclipse project, I can right-click and add the android project as a library. However I don't like this approach because it doesn't fit with our current automation process - which basically just script's unity's build dialog.
I'd like a way to tell unity that I want this eclipse project linked as an android library on export. Does anyone know a way to do that, or how to pack the resources into the jar or another way of getting this stuff to talk?
One possible way to go is using Unity's Build Player Pipeline. Depending on the platform you are working on you then have to set up a shell script or do your stuff in C#.
It's some year ago that I were a Java/Eclipse expert as I am working on iOS now. The Android Developers page shows some way to manipulate projects via command line.
Maybe the better way to go is using Eclipse switches like --import (s. 1st answer in Create an Eclipse project on the command line? and the link provided) but on the other hand I can't find the switch in the help pages.
Well, not really a bounty answer but maybe some inspiration :-)
The only real answer I've found is that in 4.2, you can drop an eclipse project in plugins/android and it will be linked correctly. Just have to hang on I suppose. :-/