GithubHelp home page GithubHelp logo

Add support for borderRadius about litho HOT 8 CLOSED

facebook avatar facebook commented on April 19, 2024 5
Add support for borderRadius

from litho.

Comments (8)

muraziz avatar muraziz commented on April 19, 2024 1

Yes, Border API supports not only border radius, but also other effects such as dotted, dash, multi-color borders. Entry at docs about this API is coming soon.

from litho.

chakkrachak avatar chakkrachak commented on April 19, 2024

It would be so great !

from litho.

ooga avatar ooga commented on April 19, 2024

I could help you if you have an idea of ​​the implementation

from litho.

passy avatar passy commented on April 19, 2024

Doesn't the new Border effects API provide this now?

from litho.

ooga avatar ooga commented on April 19, 2024

If we set a background color, it overflow in the corner

from litho.

muraziz avatar muraziz commented on April 19, 2024

Hey @ooga, thanks for raising this. Could you create a new issue with some screenshot?

from litho.

ooga avatar ooga commented on April 19, 2024

@muraziz The issue is created #235

from litho.

muraziz avatar muraziz commented on April 19, 2024

Rounded corner borders are already supported, now you can add border radius like this:

Row.create(c)
  .child(
    Text.create(c)
      .text("Hello Litho")
      .textSizeSp(16))
  .border(
    Border.create(c)
      .widthDip(YogaEdge.ALL, 5)
      .color(YogaEdge.ALL, 0xfff36b7f)
      // We set a corner radius of 10 here
      .cornerEffect(10f)
      .build())
  .build();

See https://fblitho.com/docs/borders

from litho.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.