react-native-swiftui This project is to research what we can do to take advantage of using SwiftUI as a replacement for UIKit being the iOS…
react-native-swiftui This project is to research what we can do to take advantage of using SwiftUI as a replacement for UIKit being the iOS…
This project is to research what we can do to take advantage of using SwiftUI as a replacement for UIKit being the iOS native framework used by React Native to render user interfaces. Especially, it would make it possible to use React Native on other Apple platforms such as macOS, watchOS, tvOS and iOS widgets.
backgroundColorcoloropacityborderLeft (borderLeftWidth and borderLeftColor)ViewfontSizefontWeightfontStyle (only italic so far)textAlign (no justify support)numberOfLines propellipsizeMode propheadcentertailclip (no such equivalent in SwiftUI, but it can be implemented the other way)Button component instead.onPressonActiveStateChangeViewplaceholdervaluemultiline, read more belowonChangeonFocusonBluronEndEditingTextField doesn't provide much functionalities yet. Under the hood it still uses UITextField from UIKit so hopefully it will be improved soon. So far it isn't yet possible to:TextEditor however it doesn't meet our requirements even more as it doesn't support any events and placeholder text.valuetrackColor (only false state is supported by SwiftUI yet)onChangeUIScrollView are missing in SwiftUI, so we have our own ScrollView component.onScroll event other than just adding drag gesture.scrollTo command is implemented.axes that takes vertical/horizontal/both as an argument.showsIndicators — as opposed to UIScrollView, for 2-directional scroll views, we cannot specify different arguments for specific axis.scrollTo(options: { y: number, animated: boolean }) — works only for vertical scrolls, as it would be a significant performance hit in the current implementation to support both axes.source property is supported. Accepts the same value types as Image from React Native.Animates changes to all animatable values within this view (including its subviews).
type (easeIn, easeOut, easeInOut, linear)duration (in seconds)Adds a shadow with given radius, offsetX, offsetY, opacity and color to children views.
Masks children views using the alpha channel of the views provided by shape prop.
SVG-like shape components. Shapes are not managed by Yoga which means they have their own layouting mechanism (configurable with alignment, offsetX and offsetY props) that makes them positioned absolutely to the parent view.
As opposed to SVG, our shapes can contain children.
Common shape props: fill, alignment, offsetX, offsetY, stroke, strokeWidth, strokeLineCap, strokeLineJoin, strokeDashes, strokeDashPhase.
Additional props: width, height
Additional props: radius
No open issues yet, or sync has not completed.