@yasinsensoy/native
React Native (Android and iOS) components with the same API and look as @yasinsensoy/web; no extra dependencies.
@yasinsensoy/native: React Native (Android and iOS) components. The same API, the same theme tokens and the same names as @yasinsensoy/web (web); the same look on both platforms. No extra dependencies: icons are drawn with the library's own native drawing view.
Each component folder has its own subpath (@yasinsensoy/native/button, /text-field, /theme…). Metro does not drop unused exports (no tree shaking). So add the Babel plugin; it rewrites root imports to subpaths at build time and only the used components go into the bundle (npx yasinsensoy-native init adds it itself):
Without the plugin the same result is achieved by importing from subpaths: import { Button } from "@yasinsensoy/native/button".
Components
- AccordionCollapsible sections (FAQ, settings groups).
- AlertIn-page alert: info, success, warning or error.
- AutocompleteText box that filters suggestions as you type.
- AvatarProfile photo.
- BackToTop"Back to top" button (same behavior as web): appears in the corner once the list is scrolled
thresholdfar, and scrolls smoothly to the top on press. - BadgeSmall badge showing a status, label or count (same colors and sizes as web's
Badge). - BreadcrumbBreadcrumb showing where the user is in the app (Home › Products › Phone).
- ButtonButton.
- CalendarMonth calendar: selects a single day, a range or multiple days.
- CameraViewCamera preview.
- CardSurface grouping content: title, description, content and footer.
- CarouselSwipeable slideshow: product images, promo cards, stories, logo strips.
- CascaderCascading picker (same API as web's
Cascader): leveled choices such as province → district → neighborhood or category → subcategory. - ChartChart: bar, line, area, pie, donut and scatter.
- ChatChat screen: messaging like WhatsApp or an AI chat like ChatGPT, with the same message data and prop names as web.
- CheckboxCheckbox (16 px box, same look as web).
- CodeBlockSyntax-highlighted code block.
- CollapsibleA single collapsible section: "Advanced settings", "Show details", "Show more" on long text.
- ColorPickerColor picker (same API as
ColorPickeron web). - CommandPaletteCommand palette: quick search, navigating to pages and running commands inside the app.
- CopyButtonButton that copies a value to the clipboard: when pressed the icon briefly becomes ✓ and "Copied" is read to the screen reader.
- CountdownCountdown or count-up (same API as web): sale end, "resend in 60 s", call duration.
- CountrySelectCountry picker: with flags, the country's name in the user's language and search.
- DataGridData grid: sorting, filters, search, grouping, trees, detail rows, editing, selection, pinned columns, pagination and infinite scroll.
- DatePickerDate picker: tapping the box opens a calendar in a bottom panel on a phone and below the box on a tablet.
- DialogA modal window that opens on top of the screen.
- EmptyStateScreen for an empty list, a search with no results, an error, offline or unauthorized state.
- EventCalendarEvent calendar and scheduler: month, week, day, agenda and year views.
- FabFloating action button (FAB) and speed dial; same API as
Fabon web. - FileUploadFile upload field: picks with the system picker (photo/video or file; no permission needed), validates by rules (type, size, count, duplicates), and uploads with progress when
uploadis given; failed uploads can be retried. - FormForm: collects field values, validates them with a schema and distributes errors to fields.
- GalleryPhoto and video gallery (same API as
Galleryon web): grid, masonry or rows layout, groups by date, virtual scrolling (even with 100,000 items only the visible ones are drawn), multiple selection by long-pressing and dragging, a full-screen view (Lightbox), infinite scroll and pagination. - GestureViewGesture region: a drag inside it does not conflict with scrolling.
- IconDraws an icon.
- ImageAn image that manages its loading, error and placeholder states itself (same API as
Imageon web). - InfiniteScrollA scroll area that loads the next page when reaching the end of the list (same API as web): feeds, comments, chat history.
- JsonViewJSON viewer: shows data like API responses, config files or log entries as a colored, collapsible tree.
- KanbanKanban board: manages cards by dragging them between stages (columns) and optional swimlanes.
- KbdA keyboard key or shortcut (the same notation as web).
- KeyboardAwareScrollViewWhen the keyboard opens (or another field is focused while it is open), scrolls the focused text field above the keyboard; scrolling advances frame by frame together with the keyboard.
- StackLays out items in a row or column with equal gaps between them (the same names as
Stackon web). - MarkdownRenders Markdown text safely; designed for streaming text like AI responses.
- MediaEditorImage and video editor: full screen, dark, suited to finger use.
- MentionInputMention input (same API as
MentionInputon web): typing@suggests people,#tags…; the selected name is highlighted in the box and stored in the value as@[Jane Doe](u1). - MenuAn action menu that opens when a button is pressed.
- NavigatorThe app's navigation: stack (pages sliding in from the right, modals from the bottom), tabs, nested stacks, swipe back, the Android back button, deep links.
- NotificationCenterNotification center (same API as web): a bell button, an unread count badge and the notification list it opens.
- NumberInputA field that accepts only numbers and is formatted in the language's style while typing (the same rules as
NumberInput/NumberFieldon web,@yasinsensoy/core/number-format). - OtpInputOne-time password (OTP), verification code and PIN input.
- PaginationPagination: numbered buttons, previous/next, a compact view or "show more".
- PopoverAn info or form panel that opens next to the trigger.
- ProgressProgress bar.
- QRCodeDraws text or an address as a QR code.
- RadioGroupA single-choice option list (the same
optionsAPI asRadioGroupon web). - RatingGiving and showing a rating with stars (or your own icon).
- ResizablePanelsPanels resized by dragging (the same rules as web): sidebar + list + detail on a tablet, code/output panes.
- RichTextEditorRich text editor: the same document model, commands, shortcuts and value formats (HTML, Markdown, JSON) as the web
RichTextEditor. - SafeAreaProviderOverrides safe area values for the subtree.
- ScrollViewScroll view connected to the gesture arbiter.
- SelectSelect box.
- SeparatorA thin line separating sections (1 px, theme
bordercolor). - SheetA panel that slides in from a screen edge: side menu, filters, cart, bottom sheet, result list over a map.
- SidebarThe app's main navigation menu: on wide screens (tablet) a sidebar on the left with the screen content next to it; on phones a top bar with a menu opening from the left, or a bottom navigation bar.
- SignaturePadSignature area: sign with a finger or a stylus.
- SkeletonA faded box that holds the place of content while it loads.
- SliderSlider: a single value or a range.
- SortableListA list sorted by dragging: task lists, priority order, form rows.
- SpinnerLoading indicator: a spinning arc.
- SplashScreenA splash screen you design with your own components.
- StatMetric (KPI) card for dashboards: name, large value, change vs the previous period, description and trend chart.
- StepperProgress indicator for multi-step flows (checkout, sign-up, wizard).
- SwipeableA container that reveals actions when the row is swiped sideways (like iOS Mail, Android Gmail).
- SwitchOn/off switch.
- SystemBarsSets the bars declaratively.
- TableData table (same API as web).
- TableOfContentsIn-page table of contents (same behavior as web): links to sections and highlights the section being read.
- TabsSwitches between views in the same area.
- TagInputTag field: type and add a tag with a comma or the "done" key, remove it with the chip's × button; backspace in an empty input removes the last tag.
- TextText in the theme color and the library's type scale.
- TextFieldLabeled text field: label, description, error message, required marker, password show/hide and icons.
- TextareaMulti-line text field: label, description, error and the same appearances as fields on web.
- TimelineShows events or steps in time order along a line: activity feeds, order/shipping tracking, change history, process steps.
- ToasterPlaces notifications shown with
toaston screen. - TooltipA short description bubble.
- TourProduct tour (onboarding): highlights elements on screen one by one and shows a description card next to them.
- TransferMoving items between two lists (same API as the web
Transfer): role permissions, team members, columns to show and so on. - TreeSelectA select box picking from a tree (same API as the web
TreeSelect): nested options such as categories, departments, folders. - TreeViewTree view: file explorer, category tree, permission list.
- VideoPlayerVideo player (same API as the web
VideoPlayer). - ViewA surface tied to the theme and the appearance system: lays out like a plain
View, and optionally takes a card surface (variant), an accent color (tone) and effects (effect). - VirtualListA virtual list for very long lists: only the visible items (and a bit more) are rendered.
- WatermarkWatermark: tiles a tilted, repeating text or logo over the content (same pattern and measurements as web,
@yasinsensoy/core/watermark).
APIs and utilities
- AppRegisters the app's root component.
- App iconSelectable icons and switching.
- Store updatesIn-app update.
- AppearanceThe library's built-in effects.
- AudioAudio API.
- Background tasksBackground tasks.
- BiometricsBiometric authentication.
- ClipboardClipboard.
- Configuration (ui.config)Built-in permission names.
- DeviceDevice and app info.
- FieldCommon props of form fields (the same names as the fields on web).
- File systemFile system: read/write, folders, download/upload, picking files and media, save as, saving to the gallery, opening a file.
- FontsThe Inter font family, with only the weights added to the app.
- HapticsHaptic feedback.
- HooksWrites text to the clipboard and keeps a "copied" state for a short while (same API as
useClipboardon web). - LicenseResult of the last license check;
undefinedif no check has run yet or the environment is development. - LocationLocation API.
- Native modulesThe native module.
- NetworkNetwork state.
- NotificationsNotification API.
- Overlay placementPosition of a floating element (Menu, Popover, Tooltip…) relative to its trigger: the side and the alignment on that side.
- PermissionsPermission status, requesting and settings.
- In-app purchasesPurchase API.
- Responsive layoutLayout info based on the window: breakpoint, orientation, whether it is a tablet.
- App reviewApp rating.
- ScreenScreen settings.
- Secure storageEncrypted key-value store: for small secrets such as tokens and passwords (not for large data).
- ShareSystem share sheet.
- StorageKey-value store.
- ThemeThe app root: theme, color scheme (light/dark/system), density, font and icons.
- OTA updatesUpdate operations that can be called individually.
- UtilitiesConverts any CSS color string (hex, rgb, hsl, oklch) to an
rgba()string React Native understands.