React Native component library for components used by React Native applications of Observation.org. There are 2 kinds of components: UI components:
AccordionBackButtonBackgroundImageBottomActionBar (+ BottomActionBarProps)BottomSheet: Deprecated, useBottomActionBarBottomSheetWithSearchInputBrandIconBrandIconsCapitalizeTextCheckboxChipContentImageDateDateFromToFilterDatePickerDiscloseDocumentLinkFilterButtonFilterOptionFilterSelectFieldHtmlContent (+ HtmlContentProps, CustomRendererProps, RenderersProps, TBlock)IconIconButtonIconNameIconTextIconViewIconsInputFieldInputPanelItemSeparatorLargeButton (+ LargeButtonProps)LightboxListItemLocationMessageMoreInfoNotificationNotificationPopup (+ NotificationPopupStaticProps)PageIndicatorPanelPopupProgressBarProgressBarListRarityRaritySliderSectionHeaderSingleLineTextLinkTooltip (+ TooltipProps)WebLink
non-UI components:
Log.setLogConfiguration: A function to change the logging of the component libraryopenUrl: Opens URLsSnackbarReporterContext (+ SnackbarReporter): Context through which a screen reports bottom insets and open modals to the app's snackbaruseBottomSheetBackHandler: A hook to close a BottomSheet on the Android hardware back buttonuseReportSnackbarInset: A hook to report the height of a UI element at the bottom of the screen, so a snackbar is shown above ituseShowBlurView: A safe way to set a blur on the background
Additionally, the package exposes two subpath entry points:
react-native-components/theme:
ThemeProvider,useTheme,useStylescreateTheme,defaultTheme: The default theme with colors, margins, text styles, shadows, and the surface and elevation an app uses for specific roles
react-native-components/styles:
font,fontSize,lineHeight: Font styleslayout,rounded: Layout stylesshadow: Deprecated, usetheme.shadowcreateInputStyles,createBottomSheetStyles