Comments (7)
👍
from create-react-native-app.
Hi,
I was just going through the react native scripts and xdl libraries. Here is what I can understand so far. Please do tell me if I am missing something, as the documentation is a bit sparse and I might have missed something:
To get some kind of information about the last request, we will need to either hook into the xdl library, and pass in some kind of middleware to the express server being created here But this functionality is not present in xdl right now.
The other option will be to hook into the xdl Logs, and look for the last request, which I don't think is the most ideal of solutions.
The easiler solution however would be to just warm both caches at startup.
from create-react-native-app.
I suspect that the easiest way to do this is going to be to build something in xdl which makes use of the ProjectSettings API: https://github.com/exponent/xdl/blob/master/src/ProjectSettings.js. This information is stored in the project's .expo
directory, so we can store information there about what platforms have been loading.
cc @jesseruder
from create-react-native-app.
Can you please clarify something, I'm sorry. Are we looking to warm the respective platform's cache when a user say runs npm run android/ios
, or do we decide the platfrom based on the actual platform from which the app is accessed, i.e. an iphone or an android?
from create-react-native-app.
I think the ideal situation would be a combination:
- On a fresh load, warm both caches
- Record which platforms are being loaded, and on subsequent packager starts warm the most recently loaded platform
- Warm the appropriate cache on
yarn run android
oryarn run ios
regardless of what's been loaded most recently
from create-react-native-app.
Recording the last platform loaded in ProjectSettings
sounds reasonable.
from create-react-native-app.
I think now that we have progress indicators this isn't a big deal. In the future we will also show the progress in the app as well. Closing this for now.
from create-react-native-app.
Related Issues (20)
- When enabling debug mode, the crash application HOT 2
- i have a probleme anyone can help me HOT 1
- Can't run npm run eject HOT 1
- ```open -a Simulator && expo start```
- Typo in error message HOT 1
- Uncaught Error: java.net.SocketTimeoutException: failed to connect to /192.168.0.102 (port 19000) - Doubt on security HOT 2
- "Npm run ios" Bug on expo 45.0 when it build infinite installed Error
- Unable to build Android using "expo run:android" HOT 3
- Outdated template (eas.json)
- npx create-react-native-dapp failed HOT 1
- Expo template build fails (drawer-navigation)
- Something went wrong in downloading and extracting the project files. HOT 5
- I can't connect to my phone
- minifyEnabled true ERROR : Compilation failed to complete, origin: /Users/mesutaltas/.gradle/caches/transforms-3/a334453207e8f257bd8e5065fd1e9287/transformed/jetified-kotlin-reflect-1.8.10.jar:kotlin/reflect/jvm/internal/impl/serialization/deserialization/builtins/BuiltInsResourceLoader.class HOT 6
- Build Failures and Configuration Issues in Expo React Native Application HOT 2
- npx create-expo-app@latest --template tabs@sdk-49 but without typescript HOT 3
- Notifications.scheduleNotificationAsync when called 2nd time resulted in undefined is not a function at getRandomBase64 HOT 2
- Initialize template with a scoped package name HOT 1
- Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
- Help !!! Unable to solve it tried whatever is available in google "The development server returned response error code 500 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-react-native-app.