Comments (8)
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.
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.
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.
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:
from swiftui-react-native.
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.
It would be nice if we could have an option to do that. Thank you!
from swiftui-react-native.
@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.
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.
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)
- question about styled-components HOT 12
- Possible new color system HOT 2
- Proposing hot reload for development env HOT 7
- Navigation Views Proposal HOT 2
- Use Expo Module API HOT 6
- Use Flex Gap for spacing
- List component is not scrollable
- HeaderScrollContext is not being correctly passed from NavigationViewManager to ScrollView HOT 5
- Colors and Themes HOT 2
- ERROR TypeError: null is not an object (evaluating '_useColorScheme.colorScheme') HOT 3
- Compatible with Expo? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftui-react-native.