App clip size too big for react-native app - react-native

We have a react native app. Now we are trying to fit app clip into it. The issue we are facing is with the package.json file. The app requires a lot of packages that the app clip does not, but due to a single package.json file, the appclip size is getting bloated up unnecessarily. Has anyone faced this issue before? Is there a way to minimize this problem?

I was facing a similar issue and what I did is to skip the native libraries for the app clip iOS target in Podfile using this technique: https://github.com/react-native-community/cli/issues/1179#issuecomment-756539463

Related

React Native stuck on white screen IOS

My app is working fine on the web but stuck on the XCode Simulator upon running the initiating cmd expo start
List of files
Tried removing node_modules , package-lock etc but nothing seems to work
App has been reloaded numerous times but only works on web.
I found where the problem was, having expo-splash-screen was causing this issue. I was using this in a useEffect to load my project font but having removed this package resolved the issue.

How can I check the version of a Lottie file?

I am building a react native app using expo and trying to use a couple lottie files using the lottie-react-native library. When I use the iOS simulator the files load fine, but when I try to run the app on my actual iPhone I get this warning:
"ReactNative.NativeModules.LottieAnimationView.pause did not have a corresponding prop defined
in the mock provided to SafeModule"
I know that expo relies on Lottie v2 so v3 files will cause the app to crash, but is it normal for the Lottie animations to work on the simulator but not the phone? And is there a way for me to check if an animation is v2? I can't seem to find any kind of indication of version when browsing the animations.
Thanks to anyone who can help!

Lottie Performance expo (react native)

I’m having problems with the performance of a composition at the expo (react native), I tried to change the image to vector but I couldn’t solve the problem. Could someone help me with this problem?
https://lottiefiles.com/28372-world27
There are known issues with Lottie working on expo, check the docs below
“ The Lottie SDK is currently considered to be under Expo's "DangerZone" because it's implementation is still in Alpha.
Importing Lottie 3 files causes the previewer to crash without a visible error, because Expo relies on lottie-react-native v2.”
https://docs.expo.io/versions/latest/sdk/lottie/

Use react-native created an application installation package big size

I used react-native, expo, native-base & typescript. I created a simple function inside my application. After installing I found size of the application was too large, I don't know why, what should I do to make it more concise or smaller?
Expo adds a lot of extra size to the apk. If you can eject from expo: https://github.com/react-community/create-react-native-app/blob/master/EJECTING.md

React native app is taking time to load assets?

My react native android app is not loading some png files ,and taking time to load them ,sometime it loads sometime it wont,all the png are static files
Try using react-native-cached-image to cache the images.
npm install react-native-cached-image --save
Its been a ongoing bug in the react native community
The problem is resolved.Actually the pixels of images are very large like which make the app jerking. So its better to use the icon having proper resolution like 64X64 128X128.In my case the icons resolutions are 1400X1200 which doesn't load the image in android .