Skip to main content

Components

All components come from @kog/ui (or via the react-native alias). Props follow React Native naming where an equivalent exists.

note

This page is the index; each component gains a dedicated page with a full props table as it ships. Prop lists below are the v1 surface.

Layout & content

ComponentNative widgetKey props
Viewbase objectstyle, layout/flex props, onPress passthrough
Textlabelstyle (text props), numberOfLines, children: strings/numbers/expressions only
Imageimagesource (require('./img.png') or URI), resizeMode, tintColor
ScrollViewscrollable objecthorizontal, showsScrollIndicator, onScroll
FlatListnative recycling listdata, renderItem, keyExtractor, rowHeight, numColumns, horizontal, onEndReached, initialNumToRender, header/footer/separator components — see Lists

Input & controls

ComponentNative widgetKey props
Pressablebutton-like objectonPress, onPressIn, onPressOut, onLongPress, disabled, style({pressed})
Buttonstyled buttontitle or children, onPress, disabled
TextInputtextareavalue, onChangeText, placeholder, secureTextEntry, keyboardType, maxLength, onFocus/onBlur/onSubmitEditing (on-screen keyboard appears on focus)
Switchswitchvalue, onChange, disabled
Sliderslidervalue, min, max, onChange
Checkboxcheckboxchecked, onChange, label

Embedded-flavored extras

ComponentNative widgetKey props
Arcarcvalue, min, max, startAngle, endAngle, onChange — dials and gauges
Bar / ProgressBarbarvalue, min, max, indeterminate
Spinnerspinneranimating
Rollerrolleroptions, selectedIndex, onChange — the classic scroll-wheel picker
Dropdowndropdownoptions, selectedIndex, onChange
Chartchartseries data props — see its page when it lands

Structural

ComponentPurpose
NavigationContainer, Stack.*Navigation
PortalRender into the top layer (modals, toasts)
ErrorBoundaryfallback render on descendant mount/effect errors
ThemeProviderTheme tokens + dark mode — see Styling