Hi I am using managed workflow. How do I remove dependencies that expo adds on time of building the app, When I decompiled apk, I saw many packages that I really don’t use like BioMetric, ads (facebook/google) and many more.
Expo Diagnostics -
Expo CLI 3.22.3 environment info:
System:
OS: Linux 4.15 Ubuntu 20.04 LTS (Focal Fossa)
Shell: 5.0.16 - /bin/bash
Binaries:
Node: 12.16.1 - ~/.nvm/versions/node/v12.16.1/bin/node
Yarn: 1.22.4 - /usr/bin/yarn
npm: 6.13.4 - ~/.nvm/versions/node/v12.16.1/bin/npm
npmPackages:
@expo /webpack-config: ^0.12.16 => 0.12.20
expo: ^38.0.0 => 38.0.8
react: 16.11.0 => 16.11.0
react-dom: 16.11.0 => 16.11.0
react-native: https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz => 0.62.2
react-native-web: ~0.11.7 => 0.11.7
1 Like
wodin
July 19, 2020, 9:50pm
#2
Hi
That is one of the downsides of using the managed workflow.
There is experimental support for removing some dependencies on Android. See here:
# App size in the managed workflow
A documented [limitation](https://docs.expo.io/introduction/why-not-expo/) of
managed workflow apps is that the minimum size of the standalone app binary
is not as small as a bare React Native "Hello, world!" - it's in the 15mb to
20mb range. In this post I'm going to answer some common questions that Expo
users have about app size, explain why things work how they do, and discuss
some strategies for reducing your app size and limiting growth.
## How the managed workflow works currently
If you're already familiar with how the managed workflow works, then jump ahead
to the recommendations section.
### Understanding the managed workflow through a car metaphor
Let's [use a metaphor](https://youtu.be/K8MF3aDg-bM?t=13849) to make this
easier to think about: if the native iOS and Android parts of a React Native
app are a car, then the JavaScript parts are the driver of the car. The car
has a steering wheel that the driver can use to tell it which way to go, gas
This file has been truncated. show original
1 Like
Hey @shahidcodes ,
In addition to @wodin ’s wonderful answer I’d like to add a link to the section that discusses a potential alternative to the Managed workflow called the Bare workflow which gives you the ability to select which modules you want bundled in. https://docs.expo.io/introduction/managed-vs-bare/#bare-workflow Just be sure to read all the differences so you understand the trade-offs between Managed and Bare.
Cheers,
Adam
1 Like
system
closed
August 8, 2020, 11:58pm
#4
This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.