Rakesh Shewale
Rakesh Shewale

Reputation: 507

Codepush - js and css files (from assets) not loaded in device

Currently working on react native app and using codepush to update the app data. I am terribly stuck in a problem where js and css files on webView are not downloading. I checked the 'application support' from home directory. I found that only images are downloaded from codePush but cannot see js or css files.

Provided the folder structure from Xocde and the response getting from CodePush in application support path.

enter image description here

enter image description here

Following command used to create main.jsbundle.

react-native bundle --platform ios --assets-dest ./ --dev false --entry-file index.ios.js --bundle-output iOS/main.jsbundle

To send update to codePush used following command.

code-push release-react app_name ios --description "message" 

I will really appreciate if you can at least point me in a right direction.

Upvotes: 2

Views: 689

Answers (1)

Max Mironov
Max Mironov

Reputation: 121

The problem seems to refer more to react-native than to codepush itself, as stated here - js and css files will not be bundled and it is not possible to treat them as assets.

Upvotes: 1

Related Questions