I recently started my main app for iOS with React Native. I turned on the performance monitor on Expo but I do not know what is a good stat for the app. I have uploaded the picture of the monitor and was wondering are these stats good or should I work more on optimizing my app?
Thank you for any help. and please feel free to suggest any other tools, techniques or anything else.
you can use react devtools to profile problematic parts of your app and determine what the bottlenecks are. https://reactjs.org/blog/2018/09/10/introducing-the-react-profiler.html
more info about using react devtools with react-native in the readme: https://www.npmjs.com/package/react-devtools#usage-with-react-native
Related
I am building an ios app, where we need to control the device sleep mode remotely from the socket events. Is there a way we can accomplish this in react native. I have a found a very old library https://github.com/rhaker/react-native-control-screen-sleep-ios. this library is not able to link with my app.
Please guide me how we can accomplish this. Thanks
Is it possible to code an iOS app with React Native in Xcode? I like the xcode UI better than vscode for mobile so I was wondering if there's a possibility, not talking about simulating cause that's all what I was getting when searching this on Google I'm talking about actually coding React Native in Xcode IDE. Thanks
I am trying to learn react Native for IOS development... I have researched a lot about Swift vs React native and came to this decision.
The question is I am poor as hell. But got a good PC. And I can run VMware OSX in my PC.
I understand that I can install an run Xcode and all that. But I am getting the question whether I can upload my app to an Iphone or Also Can I upload it to Apple Store using my VMware? There is a word comes up like final compiling can't be done without a Mac and All that. Since I got it using a VM is confusing and difficult and also slow. But still I can't spend on a MAC right now. But I have to learn and upload app into the Apple Store along with testing it on an Iphone.
So the question is, Is it a problem using VMware OSX to do these things?
please help, I researched a lot but could't get these things :)
TIA.
The answer is YES. You can make apps with VMware and upload them to App Store with no problems. I’ve done it myself previously.
However, since it is a virtual machine without full graphics support, you cannot simulate and run graphics-related apps and tools that use the GPU. For example,
You cannot use Simulator properly for iOS 11+
You cannot debug view hierarchy since it uses GPU for rendering and
debugging UI elements
You cannot debug SpriteKit or SceneKit projects properly etc.
AirPlay and AirDrop won’t work.
Other than those, you can do almost everything in a VMware macOS. For React native, I don’t think there would be a problem compiling apps with it. You are good to go. But as others said, it would be slower than a real Mac, so you have to bear with it.
You can do anything on your vm like a real mac . It will just be slower depending on your hardware. I installed macOS on a system and got my app to the app store with it.
General question. I'm developing an app using React Native, and certain actions bring my app up to around 500MB of RAM, where it usually gets killed.
I've searched the web for good material on RN memory profiling but have found nothing. I've tried using Instruments, but it's output doesn't give me much insight as to what are my memory guzzling processes.
TL;DR: Do you have a good way of profiling memory usage in React Native?
P.S. currently focusing on iOS.
Thanks in advance!
Uri
If you shake the device you can bring up the debug menu and enable perf.
Additionally if you're on iOS, xcode comes with a set of performance tools. In spotlight, cmd + space, search for instruments, open it and select Activity Monitor.
Performance
App developer menu - toggle Show Perf Monitor
You can use Xcode and Android studio for this case.
On Xcode, you can check below screenshot.
Also for the Android Studio, you can open profiler on 'View->Tool Windows->Profiler'
I am developing a mobile GPS tracking app and I would like to know if there are any classes available that output the mobile stats to a view? Memory, CPU etc. Similar to Hi-res-Stats in AS3.
I would like to see usage while the app is used however the only tool I know of is built in to xcode and it wouldn't really be feasible taking my mac with me.
Thanks