Coder Social home page Coder Social logo

Comments (8)

zpg6 avatar zpg6 commented on August 16, 2024 2

Just a heads up, @zpg6 and I are working on some new features for a v4 release with some better documentation and feature support. Should be out in the next month or so.

@prinsss Stay tuned 🚀

from swiftui-react-native.

andrew-levy avatar andrew-levy commented on August 16, 2024 2

Yeah it was pretty inefficient and was bloating the library with a bunch of opinionated dependencies, but I plan to bring it back (will take some time tho). In the meantime, you can just use a HStack to add the chevron manually. Closing this issue out now! Let me know if you have any more questions.

from swiftui-react-native.

andrew-levy avatar andrew-levy commented on August 16, 2024

Hey glad to hear you're liking it! Do you have the dependency react-native-sfsymbols installed correctly? This library uses it under the hood to display sf symbols like the chevron. If you think you have it installed correctly, I can take a look to see if so can reproduce the error.

Just a heads up, @zpg6 and I are working on some new features for a v4 release with some better documentation and feature support. Should be out in the next month or so.

from swiftui-react-native.

prinsss avatar prinsss commented on August 16, 2024

Thanks for the quick replies. Nice to hear that!

The dependencies are installed correctly since other SF Symbols are rendering well. I grabbed the source code of the example app from here and changed it a little bit:

<List inset header="Buttons">
  <Button action={() => setShowAlert(true)}>
    <Text alignment="leading">Button</Text>
  </Button>
  <Link destination="https://www.apple.com">
    <Text alignment="leading">Link</Text>
  </Link>
  <Link
    destination="https://www.apple.com"
    style={{
      flexDirection: 'row',
    }}>
    <Text alignment="leading" style={{ flex: 1 }}>
      With SF Symbol
    </Text>
    <Image systemName="info.circle" />
    <Image systemName="chevron.forward" />
  </Link>
</List>

And here is the screenshot after running the example app:

Snipaste_2022-03-06_06-18-47

from swiftui-react-native.

andrew-levy avatar andrew-levy commented on August 16, 2024

Ah okay I see. The way it's currently set up, Link and Button components don't "know" that they are in a list, so they don't automatically add the chevron. The only way to achieve this right now is with an Image component like you put manually. We wont always be able to replicate how it works in SwiftUI, but I can look to see if I can implement something like that.

from swiftui-react-native.

prinsss avatar prinsss commented on August 16, 2024

It would be nice if we could have an option to do that. Thank you!

from swiftui-react-native.

andrew-levy avatar andrew-levy commented on August 16, 2024

@prinsss Hey. So i just checked the default behavior in SwiftUI and it seems like SwiftUI does not automatically add a a chevron to Link when they shows up in a list. let me know if this address the issue you were having so we can close this issue out.

Screen Shot 2022-03-06 at 9 10 01 AM

That being said, it does show up when you use NavigationLink inside of a list, which I plan to implement in a complementary library with all navigation views. Maybe swiftui-react-native/navigation ? TBD.

from swiftui-react-native.

prinsss avatar prinsss commented on August 16, 2024

Oh, yes, I meant NavigationLink which has a chevron. I used that for navigating to new content. Sorry for the confusion. 🙏

I've noticed that in the previous version (v1.9.4) of the library there was actually a component called NavigationLink whose functionality is just what I want to achieve. But it seems that it was removed now?

That will helps a lot if we could somehow have it back! :)

from swiftui-react-native.

Related Issues (12)

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.