Broken on SDK 47 when exporting production build
ricohumme opened this issue · 1 comments
ricohumme commented
Decision Table
- My issue does not look like “The HTML attribute 'xxx' is ignored” (unless we claim support for it)
- My issue does not look like “The HTML element
<yyy>
is not rendered”
Good Faith Declaration
- I have read the HELP document here: https://git.io/JBi6R
- I have read the CONTRIBUTING document here: https://git.io/JJ0Pg
- I have confirmed that this bug has not been reported yet
Description
When exporting a project using npx expo export:web
(production build) the app won't render at all.
After some digging in components I found that when I disabled the following piece, the app did render as expected:
<RenderHtml
source={{
html: `<div style='font-size: 24px;width: 24px;'>${icon}</div>`,
}}
/>
When downgrading from 6.3.4 to 5.1.1, got the issue resolved.
I didn't have this issue on Expo SDK 44 but it started occuring on SDK 47.
React Native Information
expo-env-info 1.0.5 environment info:
System:
OS: macOS 13.2
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.14.0 - /usr/local/bin/node
Yarn: 1.22.19 - ~/.yarn/bin/yarn
npm: 9.3.1 - /usr/local/bin/npm
Watchman: 2023.02.06.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9477386
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
npmPackages:
@expo/metro-config: ^0.3.17 => 0.3.22
@expo/webpack-config: ^0.17.2 => 0.17.4
expo: ^47.0.0 => 47.0.13
react: 18.1.0 => 18.1.0
react-dom: 18.1.0 => 18.1.0
react-native: 0.70.5 => 0.70.5
react-native-web: ~0.18.9 => 0.18.12
npmGlobalPackages:
eas-cli: 3.5.2
expo-cli: 6.2.1
Expo Workflow: managed
RNRH Version
6.3.4
Tested Platforms
- Android
- iOS
- Web
- MacOS
- Windows
Reproduction Platforms
- Android
- iOS
- Web
- MacOS
- Windows
Minimal, Reproducible Example
https://snack.expo.dev/@ricohumme/renderhtml-example
Additional Notes
No response