Skip to content

Inline Style not working  #314

Open
Open

Description

@gowdruNikhil

<p> Add <span style="color:green">₹56</span> more to cart for <span style="color:green">FREE</span> Delivery</p>

the color green is not applying on the span tagged elements

Activity

  1. rianfloo commented on Apr 20, 2022

    @rianfloo

    Not very elegant but I tricked it by recreating a custom node with the data inside.

    Hope it will help few other like me :)

     if (node.name == 'span') {
          const data = node.children[0].data;
          const width = Dimensions.get('window').width;
          return (
              <View key={index} style={{ backgroundColor: 'red', borderRadius: 12, padding: 14, width: width - 24 }}>
                  <Text style={{color: '#FFFFFF', fontSize: 14, lineHeight: 24}} >
                      {data}
                  </Text>
              </View>
          )
    } 
    
  2. KarthikBaleneni commented on Dec 12, 2022

    @KarthikBaleneni

    Please provide an version update with this Fix.

  3. tuanphamhnl commented on Mar 7, 2023

    @tuanphamhnl

    Do we have any updates? Please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions