Open MicahDavid opened 1 year ago
@MicahDavid can't guarantee it will fix it but classesStyles
does not expects StyleSheet.create
styles, but rather a plain object.
@jsamr Thanks for the suggestion. I did try this, but I had the same result adding the style object inline.
The StyleSheet.create did work previously in v5. I used this approach, because I import the stylesheet in multiple components. But, I suppose, i could just create an object variable to import in multiple places.
@MicahDavid did u found any solution? i'm having trouble rendering on absolute positioning. mine was all inline styles.
"react-native-render-html": "^6.3.4",
Decision Table
<yyy>
is not rendered”Good Faith Declaration
Description
Using div elements with absolute positioning is not working in v6.x, but works fine in v5.
React Native Information
RNRH Version
6.3.4
Tested Platforms
Reproduction Platforms
Minimal, Reproducible Example
Here is what my html component looks like
Here's a simple example that is not working with absolute positioning. Note the div with absolute positioning also has a style attribute that contains the left positioning and width of the element. The left/width work fine, but the element is not being absolute positioned.
style example
Additional Notes
The Code works fine in 5.1.1.
The absolute positioning is not working the v6 versions that I've tested: 6.3.4 and 6.2.0.