react-native-code-push icon indicating copy to clipboard operation
react-native-code-push copied to clipboard

React Native Windows Images Disappear After Codepush

Open WilliamWelsh opened this issue 1 year ago • 2 comments

Steps to Reproduce

  1. Create a C# React Native Windows app
  2. Set up CodePush
  3. Create an iOS app on AppCenter to use as project push

Expected Behavior

Nothing to happen to my images

Actual Behavior

All of my images disappear. I use require("./assets/background.png") for example

Reproducible Demo

Environment

  • react-native-code-push version: 8.1.1
  • react-native version: 0.72.4
  • iOS/Android/Windows version: 0.72.10

I was using the guide below, which is the only link I've found to actually show start to finish for Windows. Even official Microsoft docs leave out setting up Windows on AppCenter, pushing Windows via the cli, and only showing the FULL steps for iOS/Android

https://devblogs.microsoft.com/react-native/rnw-codepush/

Here are my commands for pushing:

mkdir Bundle

npx --no-install react-native bundle --platform windows --entry-file index.js --bundle-output ./Bundle/index.windows.bundle --assets-dest ./Bundle --dev false --reset-cache

appcenter codepush release -a my/app -c .\Bundle -t 3.0.10 --mandatory true -d Production

WilliamWelsh avatar Dec 26 '23 21:12 WilliamWelsh

HI @WilliamWelsh could you please confirm what this issue still persist on latest version (8.2.1)?

MikhailSuendukov avatar Jan 31 '24 12:01 MikhailSuendukov

Hi this issue is happening for me as well using 8.2.1

projay11 avatar Feb 01 '24 08:02 projay11

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.