import ObsStatus from "components/MyObservations/ObsStatus"; import ActivityItem from "components/ObsDetails/ActivityItem"; import { ActivityCount, Body1, Body2, Body3, Body4, Button, CloseButton, CommentsCount, DateDisplay, Divider, EvidenceButton, FloatingActionBar, Heading1, Heading2, Heading3, Heading4, Heading5, IdentificationsCount, INatIcon, INatIconButton, InlineUser, List1, List2, ObservationLocation, PhotoCount, QualityGradeStatus, SearchBar, StickyToolbar, Subheading1, Tabs, UploadStatus, UserIcon } from "components/SharedComponents"; import AddObsButton from "components/SharedComponents/Buttons/AddObsButton"; import glyphmap from "components/SharedComponents/INatIcon/glyphmap.json"; import UserText from "components/SharedComponents/UserText"; import ViewWrapper from "components/SharedComponents/ViewWrapper"; import { fontMonoClass, ScrollView, View } from "components/styledComponents"; import type { Node } from "react"; import React, { useState } from "react"; import { Alert } from "react-native"; import { IconButton, useTheme } from "react-native-paper"; import useCurrentUser from "sharedHooks/useCurrentUser"; import useTranslation from "sharedHooks/useTranslation"; /* eslint-disable i18next/no-literal-string */ /* eslint-disable react/no-unescaped-entities */ const UiLibrary = (): Node => { const { t } = useTranslation(); const theme = useTheme(); const currentUser = useCurrentUser(); const userId = currentUser?.id; const [loading, setLoading] = useState( false ); const userText = ` User-generated text should support markdown, like **bold**, *italic*, and [links](https://www.inaturalist.org). `.trim(); const exampleId = { body: "", category: "leading", created_at: "2023-01-02T14:34:02-05:00", flags: [], id: 324447975, taxon: { // eslint-disable-next-line max-len default_photo: { attribution: "(c) Ján Svetlík, some rights reserved (CC BY-NC-ND)", id: 3688643, license_code: "cc-by-nc-nd", url: "https://inaturalist-open-data.s3.amazonaws.com/photos/3688643/square.jpg" }, id: 4343, name: "Larus", preferred_common_name: "Large White-headed Gulls", rank: "genus", rank_level: 10 }, user: { icon_url: "https://static.inaturalist.org/attachments/users/icons/1044550/medium.jpg?1653532155", id: 1, locale: null, login: "frogfinder" }, uuid: "9abd103b-097e-4d32-a0a3-6a23f98ca333", vision: false }; return ( Floating Action Bar {/* TODO replace these text components with our typography header components */} All the re-usable UI components we've got. If you're making a new UI component, please put it here first and try to show what it looks like with different property configurations. Buttons Button