Expo app unable to download js bundle

My Expo app is unable to download jsbundle after installation, sometime it automatic start downloading, sometime it start downloading after 1-2 days.
i could not understand the rootcause of this issue.
please guide us to solve this issue , unable to continue my work with jsbundle download.

Hey @caa0558,

Can you share your app.json? Also, what platform is this occurring on? The more information you can provide with your initial post, the better equipped we are to help.

Cheers,
Adam

import React, { useState } from ‘react’;
import { AppLoading } from ‘expo’;
import { createStore, combineReducers, applyMiddleware } from ‘redux’;
import { Provider } from ‘react-redux’;
import ReduxThunk from ‘redux-thunk’;
// import { composeWithDevTools } from ‘redux-devtools-extension’;

import * as Font from ‘expo-font’;

import productsReducer from ‘./store/reducers/products’;
import cartReducer from ‘./store/reducers/carts’;
import authReducer from ‘./store/reducers/auth’;
import orderReducer from ‘./store/reducers/orders’;
import NavigationContainer from ‘./navigation/NavigationContainer’;

const fetchFonts = () => {
return Font.loadAsync({
‘open-sans’: require(’./assets/fonts/OpenSans-Regular.ttf’),
‘open-sans-bold’: require(’./assets/fonts/OpenSans-Bold.ttf’)
});
};

const rootReducer = combineReducers({
products: productsReducer,
carts: cartReducer,
orders: orderReducer,
auth: authReducer
});

// const store = createStore(rootReducer, composeWithDevTools());
const store = createStore(rootReducer, applyMiddleware(ReduxThunk));
export default function App() {

const [fontLoaded, setFontLoaded] = useState(false);

if (!fontLoaded) {
return <AppLoading startAsync={fetchFonts} onFinish={() =>
setFontLoaded(true)
} />;
}

return (<Provider store={store}>  <NavigationContainer />   
                          </Provider>);

}

Hi @caa0558

@adamjnav was asking for app.json. Not App.js.

When you post it, please post it like this so that it will be formatted well:

```
contents
here
```

{
“expo”: {
“name”: “RN-Shop-Rev-App”,
“slug”: “RN-Shop-Rev-App”,
“privacy”: “public”,
“sdkVersion”: “35.0.0”,
“platforms”: [
“ios”,
“android”,
“web”
],
“version”: “1.0.0”,
“orientation”: “portrait”,
“icon”: “./assets/icon.png”,
“splash”: {
“image”: “./assets/splash.png”,
“resizeMode”: “contain”,
“backgroundColor”: “#ffffff
},
“updates”: {
“fallbackToCacheTimeout”: 0
},
“assetBundlePatterns”: [
“**/*”
],
“ios”: {
“supportsTablet”: true
}
}
}

Hi Adam,
Could you have any advice for my post ?

The Updates module gives you more control over this.

Maybe calling Updates.checkForUpdateAsync() will help?