= T & {
select: (_s: any) => any
@@ -11,11 +11,11 @@ export const withSettingEnabled =
IfComponent: FC | keyof JSX.IntrinsicElements,
ElseComponent: FC
| keyof JSX.IntrinsicElements,
) =>
- forwardRef((props, ref) => {
- const res = useSettings.select(condition)
- return res
- ? // @ts-expect-error
- createElement(IfComponent, { ...props, ref })
- : // @ts-expect-error
- createElement(ElseComponent, { ...props, ref })
- })
+ ({ ref, ...props }: P & { ref?: React.Ref }) => {
+ const res = useSettings.select(condition)
+ return res
+ ? // @ts-expect-error
+ createElement(IfComponent, { ...props, ref })
+ : // @ts-expect-error
+ createElement(ElseComponent, { ...props, ref })
+ }
diff --git a/apps/desktop/layer/renderer/src/modules/settings/modal/layout.tsx b/apps/desktop/layer/renderer/src/modules/settings/modal/layout.tsx
index 0fe2d817b..faca6fe28 100644
--- a/apps/desktop/layer/renderer/src/modules/settings/modal/layout.tsx
+++ b/apps/desktop/layer/renderer/src/modules/settings/modal/layout.tsx
@@ -106,6 +106,7 @@ export function SettingModalLayout(
cursor: "grabbing",
}}
>
+ {/* eslint-disable-next-line @eslint-react/no-context-provider */}
= ({ children }) => {
switch (prevType) {
case SettingSwitch: {
return cloneElement(child as React.ReactElement, {
+ // @ts-expect-error
className: "!-mt-2",
})
}
case SettingActionItem: {
return cloneElement(child as React.ReactElement, {
+ // @ts-expect-error
className: "!-mt-2",
})
}
diff --git a/apps/desktop/layer/renderer/src/modules/settings/tabs/lists/modals.tsx b/apps/desktop/layer/renderer/src/modules/settings/tabs/lists/modals.tsx
index 673f8fc7d..93722f64d 100644
--- a/apps/desktop/layer/renderer/src/modules/settings/tabs/lists/modals.tsx
+++ b/apps/desktop/layer/renderer/src/modules/settings/tabs/lists/modals.tsx
@@ -217,7 +217,7 @@ export const ListFeedsModalContent = ({ id }: { id: string }) => {
const { t } = useTranslation("settings")
const [feedSearchFor, setFeedSearchFor] = useState("")
- const selectedFeedIdRef = useRef()
+ const selectedFeedIdRef = useRef(undefined)
const addMutation = useAddFeedToFeedList({
onSuccess: () => {
setFeedSearchFor("")
diff --git a/apps/desktop/layer/renderer/src/modules/settings/title.tsx b/apps/desktop/layer/renderer/src/modules/settings/title.tsx
index fc7bd5af4..90a167ebe 100644
--- a/apps/desktop/layer/renderer/src/modules/settings/title.tsx
+++ b/apps/desktop/layer/renderer/src/modules/settings/title.tsx
@@ -1,7 +1,7 @@
import { EllipsisHorizontalTextWithTooltip } from "@follow/components/ui/typography/index.js"
import { cn } from "@follow/utils/utils"
import { Slot } from "@radix-ui/react-slot"
-import { useContext } from "react"
+import { use } from "react"
import { useTranslation } from "react-i18next"
import { useLoaderData } from "react-router"
@@ -44,7 +44,7 @@ export const SettingsTitle = ({
} = (useLoaderData() || loader || {}) as SettingPageConfig
const usedIcon = headerIcon || iconName
- const isInSettingIndependentWindow = useContext(IsInSettingIndependentWindowContext)
+ const isInSettingIndependentWindow = use(IsInSettingIndependentWindowContext)
if (!title) {
return null
}
diff --git a/apps/desktop/layer/renderer/src/modules/shared/ViewSelectorRadioGroup.tsx b/apps/desktop/layer/renderer/src/modules/shared/ViewSelectorRadioGroup.tsx
index 7c896a0d2..4280cca72 100644
--- a/apps/desktop/layer/renderer/src/modules/shared/ViewSelectorRadioGroup.tsx
+++ b/apps/desktop/layer/renderer/src/modules/shared/ViewSelectorRadioGroup.tsx
@@ -3,21 +3,27 @@ import { ScrollArea } from "@follow/components/ui/scroll-area/ScrollArea.js"
import { FeedViewType, views } from "@follow/constants"
import type { EntryModelSimple, FeedModel } from "@follow/models"
import { cn } from "@follow/utils/utils"
-import { cloneElement, forwardRef } from "react"
+import { cloneElement } from "react"
import { useI18n } from "~/hooks/common"
import { EntryItemSkeleton } from "../entry-column/EntryItemSkeleton"
import { EntryItemStateless } from "../entry-column/item-stateless"
-export const ViewSelectorRadioGroup = forwardRef<
- HTMLInputElement,
- {
- entries?: EntryModelSimple[]
- feed?: FeedModel
- view?: number
- } & React.InputHTMLAttributes
->(({ entries, feed, view, className, ...rest }, ref) => {
+export const ViewSelectorRadioGroup = ({
+ ref,
+ entries,
+ feed,
+ view,
+ className,
+ ...rest
+}: {
+ entries?: EntryModelSimple[]
+ feed?: FeedModel
+ view?: number
+} & React.InputHTMLAttributes & {
+ ref?: React.Ref
+ }) => {
const t = useI18n()
const showPreview = feed && entries && entries.length > 0
@@ -71,4 +77,4 @@ export const ViewSelectorRadioGroup = forwardRef<
{showLoading && }
)
-})
+}
diff --git a/apps/desktop/layer/renderer/src/modules/timeline-column/FeedCategory.tsx b/apps/desktop/layer/renderer/src/modules/timeline-column/FeedCategory.tsx
index 833d6d2bc..94ceef6c0 100644
--- a/apps/desktop/layer/renderer/src/modules/timeline-column/FeedCategory.tsx
+++ b/apps/desktop/layer/renderer/src/modules/timeline-column/FeedCategory.tsx
@@ -393,9 +393,9 @@ const RenameCategoryForm: FC<{
toast.success(t("sidebar.feed_column.context_menu.rename_category_success"))
},
})
- const formRef = useRef(null)
+ const formRef = useRef(null)
useOnClickOutside(
- formRef,
+ formRef as React.RefObject,
() => {
onFinished()
},
diff --git a/apps/desktop/layer/renderer/src/modules/timeline-column/FeedItem.tsx b/apps/desktop/layer/renderer/src/modules/timeline-column/FeedItem.tsx
index 3e740ec4a..208696b0a 100644
--- a/apps/desktop/layer/renderer/src/modules/timeline-column/FeedItem.tsx
+++ b/apps/desktop/layer/renderer/src/modules/timeline-column/FeedItem.tsx
@@ -12,7 +12,7 @@ import type { FeedViewType } from "@follow/constants"
import { nextFrame } from "@follow/utils/dom"
import { cn, isKeyForMultiSelectPressed } from "@follow/utils/utils"
import dayjs from "dayjs"
-import { memo, useCallback, useContext, useState } from "react"
+import { memo, use, useCallback, useState } from "react"
import { useTranslation } from "react-i18next"
import { MenuItemSeparator, MenuItemText, useShowContextMenu } from "~/atoms/context-menu"
@@ -51,7 +51,7 @@ const DraggableItemWrapper: Component<
isInMultipleSelection: boolean
} & React.HTMLAttributes
> = ({ children, isInMultipleSelection, ...props }) => {
- const draggableContext = useContext(DraggableContext)
+ const draggableContext = use(DraggableContext)
return (
(
- ({ className, view }, ref) => {
- const feedsData = useFeedsGroupedData(view)
- const listsData = useListsGroupedData(view)
- const inboxesData = useInboxesGroupedData(view)
+const FeedListImpl = ({ ref, className, view }: FeedListProps) => {
+ const feedsData = useFeedsGroupedData(view)
+ const listsData = useListsGroupedData(view)
+ const inboxesData = useInboxesGroupedData(view)
- const categoryOpenStateData = useCategoryOpenStateByView(view)
+ const categoryOpenStateData = useCategoryOpenStateByView(view)
- const hasData =
- Object.keys(feedsData).length > 0 ||
- Object.keys(listsData).length > 0 ||
- Object.keys(inboxesData).length > 0
+ const hasData =
+ Object.keys(feedsData).length > 0 ||
+ Object.keys(listsData).length > 0 ||
+ Object.keys(inboxesData).length > 0
- const { t } = useTranslation()
+ const { t } = useTranslation()
- // Data prefetch
- useAuthQuery(Queries.lists.list())
+ // Data prefetch
+ useAuthQuery(Queries.lists.list())
- const hasListData = Object.keys(listsData).length > 0
- const hasInboxData = Object.keys(inboxesData).length > 0
+ const hasListData = Object.keys(listsData).length > 0
+ const hasInboxData = Object.keys(inboxesData).length > 0
- const scrollerRef = useRef
(null)
- const selectoRef = useRef(null)
- const [selectedFeedIds, setSelectedFeedIds] = useSelectedFeedIdsState()
- const [currentStartFeedId, setCurrentStartFeedId] = useState(null)
- useEffect(() => {
- if (selectedFeedIds.length <= 1) {
- setCurrentStartFeedId(null)
- }
- }, [selectedFeedIds])
+ const scrollerRef = useRef(null)
+ const selectoRef = useRef(null)
+ const [selectedFeedIds, setSelectedFeedIds] = useSelectedFeedIdsState()
+ const [currentStartFeedId, setCurrentStartFeedId] = useState(null)
+ useEffect(() => {
+ if (selectedFeedIds.length <= 1) {
+ setCurrentStartFeedId(null)
+ }
+ }, [selectedFeedIds])
- const { attributes, listeners, setNodeRef, transform } = useDraggable({
- id: "selected-feed",
- disabled: selectedFeedIds.length === 0,
- })
- const style = useMemo(
- () =>
- transform
- ? ({
- transform: `translate3d(${transform.x}px, ${transform.y}px, 0)`,
- transitionDuration: "0",
- transition: "none",
- } as React.CSSProperties)
- : undefined,
- [transform],
- )
+ const { attributes, listeners, setNodeRef, transform } = useDraggable({
+ id: "selected-feed",
+ disabled: selectedFeedIds.length === 0,
+ })
+ const style = useMemo(
+ () =>
+ transform
+ ? ({
+ transform: `translate3d(${transform.x}px, ${transform.y}px, 0)`,
+ transitionDuration: "0",
+ transition: "none",
+ } as React.CSSProperties)
+ : undefined,
+ [transform],
+ )
- const draggableContextValue = useMemo(
- () => ({
- attributes,
- listeners,
- style: {
- ...style,
- willChange: "transform",
- },
- }),
- [attributes, listeners, style],
- )
-
- useImperativeHandle(ref, () => scrollerRef.current!)
-
- useEventListener(
- "scroll",
- () => {
- const round = (num: number) => Math.round(num * 1e2) / 1e2
- const getPositions = () => {
- const el = scrollerRef.current
- if (!el) return
-
- return {
- x: round(el.scrollLeft / (el.scrollWidth - el.clientWidth)),
- y: round(el.scrollTop / (el.scrollHeight - el.clientHeight)),
- }
- }
-
- const newScrollValues = getPositions()
- if (!newScrollValues) return
-
- const { y } = newScrollValues
- setFeedAreaScrollProgressValue(y)
+ const draggableContextValue = useMemo(
+ () => ({
+ attributes,
+ listeners,
+ style: {
+ ...style,
+ willChange: "transform",
},
- scrollerRef,
- { capture: false, passive: true },
- )
+ }),
+ [attributes, listeners, style],
+ )
- const shouldFreeUpSpace = useShouldFreeUpSpace()
+ useImperativeHandle(ref, () => scrollerRef.current!)
- const routerParams = useRouteParams()
- const { listId, isPreview, feedId } = routerParams
- const isFeedPreview = isPreview && !listId
- const isListPreview = isPreview && listId
+ useEventListener(
+ "scroll",
+ () => {
+ const round = (num: number) => Math.round(num * 1e2) / 1e2
+ const getPositions = () => {
+ const el = scrollerRef.current
+ if (!el) return
- useFeedQuery({ id: isFeedPreview ? feedId : undefined })
- useList({ id: isListPreview ? listId : undefined })
+ return {
+ x: round(el.scrollLeft / (el.scrollWidth - el.clientWidth)),
+ y: round(el.scrollTop / (el.scrollHeight - el.clientHeight)),
+ }
+ }
- return (
-
-
+ const newScrollValues = getPositions()
+ if (!newScrollValues) return
-
{
- const inputEvent = e.inputEvent as MouseEvent
- const target = inputEvent.target as HTMLElement
- const closest = target.closest("[data-feed-id]") as HTMLElement | null
- const dataFeedId = closest?.dataset.feedId
+ const { y } = newScrollValues
+ setFeedAreaScrollProgressValue(y)
+ },
+ scrollerRef as React.RefObject,
+ { capture: false, passive: true },
+ )
- if (
- dataFeedId &&
- selectedFeedIds.includes(dataFeedId) &&
- !isKeyForMultiSelectPressed(inputEvent)
+ const shouldFreeUpSpace = useShouldFreeUpSpace()
+
+ const routerParams = useRouteParams()
+ const { listId, isPreview, feedId } = routerParams
+ const isFeedPreview = isPreview && !listId
+ const isListPreview = isPreview && listId
+
+ useFeedQuery({ id: isFeedPreview ? feedId : undefined })
+ useList({ id: isListPreview ? listId : undefined })
+
+ return (
+
+
+
{
+ const inputEvent = e.inputEvent as MouseEvent
+ const target = inputEvent.target as HTMLElement
+ const closest = target.closest("[data-feed-id]") as HTMLElement | null
+ const dataFeedId = closest?.dataset.feedId
+
+ if (
+ dataFeedId &&
+ selectedFeedIds.includes(dataFeedId) &&
+ !isKeyForMultiSelectPressed(inputEvent)
+ )
+ return false
+
+ return true
+ }}
+ onDragStart={(e) => {
+ if (!isKeyForMultiSelectPressed(e.inputEvent as MouseEvent)) {
+ resetSelectedFeedIds()
+ }
+ }}
+ selectableTargets={["[data-feed-id]"]}
+ continueSelect
+ hitRate={1}
+ onSelect={(e) => {
+ const allChanged = [...e.added, ...e.removed]
+ .map((el) => el.dataset.feedId)
+ .filter((id) => id !== undefined)
+ const added = allChanged.filter((id) => !selectedFeedIds.includes(id))
+ const removed = allChanged.filter((id) => selectedFeedIds.includes(id))
+
+ if (isKeyForMultiSelectPressed(e.inputEvent as MouseEvent)) {
+ const allVisible = Array.from(document.querySelectorAll("[data-feed-id]")).map(
+ (el) => (el as HTMLElement).dataset.feedId,
)
- return false
+ const currentSelected =
+ added.length === 1 ? added[0] : removed.length === 1 ? removed[0] : null
+ const currentIndex = currentSelected ? allVisible.indexOf(currentSelected) : -1
- return true
- }}
- onDragStart={(e) => {
- if (!isKeyForMultiSelectPressed(e.inputEvent as MouseEvent)) {
- resetSelectedFeedIds()
- }
- }}
- selectableTargets={["[data-feed-id]"]}
- continueSelect
- hitRate={1}
- onSelect={(e) => {
- const allChanged = [...e.added, ...e.removed]
- .map((el) => el.dataset.feedId)
- .filter((id) => id !== undefined)
- const added = allChanged.filter((id) => !selectedFeedIds.includes(id))
- const removed = allChanged.filter((id) => selectedFeedIds.includes(id))
-
- if (isKeyForMultiSelectPressed(e.inputEvent as MouseEvent)) {
- const allVisible = Array.from(document.querySelectorAll("[data-feed-id]")).map(
- (el) => (el as HTMLElement).dataset.feedId,
- )
- const currentSelected =
- added.length === 1 ? added[0] : removed.length === 1 ? removed[0] : null
- const currentIndex = currentSelected ? allVisible.indexOf(currentSelected) : -1
-
- // command or ctrl with click, update start feed id
- if (!(e.inputEvent as MouseEvent).shiftKey && currentSelected) {
- setCurrentStartFeedId(currentSelected)
- }
-
- // shift with click, select all between
- if ((e.inputEvent as MouseEvent).shiftKey && currentSelected) {
- const firstSelected = currentStartFeedId ?? selectedFeedIds[0]
- if (firstSelected) {
- const firstIndex = allVisible.indexOf(firstSelected)
- const order =
- firstIndex < currentIndex
- ? [firstIndex, currentIndex]
- : [currentIndex, firstIndex]
- const between = allVisible.slice(order[0], order[1]! + 1) as string[]
- setSelectedFeedIds((prev) => {
- // with intersection, we need to update selected ids as between
- // otherwise, we need to add between to selected ids
- const hasIntersection = between.slice(1, -1).some((id) => prev.includes(id))
- return [
- ...(hasIntersection ? prev.filter((id) => between.includes(id)) : prev),
- ...between,
- ]
- })
- return
- }
- }
+ // command or ctrl with click, update start feed id
+ if (!(e.inputEvent as MouseEvent).shiftKey && currentSelected) {
+ setCurrentStartFeedId(currentSelected)
}
- setSelectedFeedIds((prev) => {
- return [...prev.filter((id) => !removed.includes(id)), ...added]
- })
- }}
- scrollOptions={{
- container: scrollerRef.current as HTMLElement,
- throttleTime: 30,
- threshold: 0,
- }}
- onScroll={(e) => {
- scrollerRef.current?.scrollBy(e.direction[0]! * 10, e.direction[1]! * 10)
- }}
- />
+ // shift with click, select all between
+ if ((e.inputEvent as MouseEvent).shiftKey && currentSelected) {
+ const firstSelected = currentStartFeedId ?? selectedFeedIds[0]
+ if (firstSelected) {
+ const firstIndex = allVisible.indexOf(firstSelected)
+ const order =
+ firstIndex < currentIndex
+ ? [firstIndex, currentIndex]
+ : [currentIndex, firstIndex]
+ const between = allVisible.slice(order[0], order[1]! + 1) as string[]
+ setSelectedFeedIds((prev) => {
+ // with intersection, we need to update selected ids as between
+ // otherwise, we need to add between to selected ids
+ const hasIntersection = between.slice(1, -1).some((id) => prev.includes(id))
+ return [
+ ...(hasIntersection ? prev.filter((id) => between.includes(id)) : prev),
+ ...between,
+ ]
+ })
+ return
+ }
+ }
+ }
- {
- selectoRef.current?.checkScroll()
- }}
- mask={false}
- flex
- viewportClassName={cn("!px-3", shouldFreeUpSpace && "!overflow-visible")}
- rootClassName={cn("h-full", shouldFreeUpSpace && "overflow-visible")}
- >
-
- {(hasListData || (isListPreview && listId)) && (
- <>
-
- {t("words.lists")}
-
- {isListPreview && listId && (
-
- )}
-
- >
- )}
- {hasInboxData && (
- <>
-
- {t("words.inbox")}
-
-
- >
- )}
+ setSelectedFeedIds((prev) => {
+ return [...prev.filter((id) => !removed.includes(id)), ...added]
+ })
+ }}
+ scrollOptions={{
+ container: scrollerRef.current as HTMLElement,
+ throttleTime: 30,
+ threshold: 0,
+ }}
+ onScroll={(e) => {
+ scrollerRef.current?.scrollBy(e.direction[0]! * 10, e.direction[1]! * 10)
+ }}
+ />
- {(hasListData || hasInboxData) && (
-
- {t("words.feeds")}
+
{
+ selectoRef.current?.checkScroll()
+ }}
+ mask={false}
+ flex
+ viewportClassName={cn("!px-3", shouldFreeUpSpace && "!overflow-visible")}
+ rootClassName={cn("h-full", shouldFreeUpSpace && "overflow-visible")}
+ >
+
+ {(hasListData || (isListPreview && listId)) && (
+ <>
+
+ {t("words.lists")}
- )}
- {isFeedPreview && feedId && (
-
- )}
-
-
- {hasData ? (
-
- ) : (
-
- )}
+ {isListPreview && listId && (
+
+ )}
+
+ >
+ )}
+ {hasInboxData && (
+ <>
+
+ {t("words.inbox")}
-
-
-
- )
- },
-)
+
+ >
+ )}
+
+ {(hasListData || hasInboxData) && (
+
+ {t("words.feeds")}
+
+ )}
+ {isFeedPreview && feedId && (
+
+ )}
+
+
+ {hasData ? (
+
+ ) : (
+
+ )}
+
+
+
+
+ )
+}
+
FeedListImpl.displayName = "FeedListImpl"
export const FeedList = memo(FeedListImpl)
diff --git a/apps/desktop/layer/renderer/src/modules/timeline-column/FeedList.mobile.tsx b/apps/desktop/layer/renderer/src/modules/timeline-column/FeedList.mobile.tsx
index 4c04469c0..6c6b4248e 100644
--- a/apps/desktop/layer/renderer/src/modules/timeline-column/FeedList.mobile.tsx
+++ b/apps/desktop/layer/renderer/src/modules/timeline-column/FeedList.mobile.tsx
@@ -14,11 +14,12 @@ import {
useListsGroupedData,
} from "~/store/subscription"
+import type { FeedListProps } from "./FeedList"
import { EmptyFeedList, ListHeader, StarredItem } from "./FeedList.shared"
import { SortableFeedList, SortByAlphabeticalInbox, SortByAlphabeticalList } from "./sort-by"
import { feedColumnStyles } from "./styles"
-const FeedListImpl = ({ className, view }: { className?: string; view: number }) => {
+const FeedListImpl = ({ className, view }: FeedListProps) => {
const feedsData = useFeedsGroupedData(view)
const listsData = useListsGroupedData(view)
const inboxesData = useInboxesGroupedData(view)
diff --git a/apps/desktop/layer/renderer/src/modules/timeline-column/FeedList.shared.tsx b/apps/desktop/layer/renderer/src/modules/timeline-column/FeedList.shared.tsx
index 60c0b5759..b5fa1931b 100644
--- a/apps/desktop/layer/renderer/src/modules/timeline-column/FeedList.shared.tsx
+++ b/apps/desktop/layer/renderer/src/modules/timeline-column/FeedList.shared.tsx
@@ -106,8 +106,8 @@ const SortButton = () => {
const { t } = useTranslation()
const [open, setOpen] = useState(false)
- const ref = useRef(null)
- useOnClickOutside(ref, () => {
+ const ref = useRef(null)
+ useOnClickOutside(ref as React.RefObject, () => {
setOpen(false)
})
diff --git a/apps/desktop/layer/renderer/src/modules/timeline-column/FeedList.tsx b/apps/desktop/layer/renderer/src/modules/timeline-column/FeedList.tsx
index 34f0d7475..282ce158a 100644
--- a/apps/desktop/layer/renderer/src/modules/timeline-column/FeedList.tsx
+++ b/apps/desktop/layer/renderer/src/modules/timeline-column/FeedList.tsx
@@ -4,3 +4,9 @@ import { FeedList as FeedListDesktop } from "./FeedList.electron"
import { FeedList as FeedListMobile } from "./FeedList.mobile"
export const FeedList = withResponsiveSyncComponent(FeedListDesktop, FeedListMobile)
+
+export type FeedListProps = ComponentType<
+ { className?: string; view: number } & {
+ ref?: React.Ref | ((node: HTMLDivElement | null) => void)
+ }
+>
diff --git a/apps/desktop/layer/renderer/src/modules/user/ProfileButton.electron.tsx b/apps/desktop/layer/renderer/src/modules/user/ProfileButton.electron.tsx
index cbeccfe9f..ac686cd4a 100644
--- a/apps/desktop/layer/renderer/src/modules/user/ProfileButton.electron.tsx
+++ b/apps/desktop/layer/renderer/src/modules/user/ProfileButton.electron.tsx
@@ -7,7 +7,7 @@ import { useMeasure } from "@follow/hooks"
import { cn } from "@follow/utils/utils"
import { repository } from "@pkg"
import type { FC } from "react"
-import { forwardRef, memo, useCallback, useLayoutEffect, useState } from "react"
+import { memo, useCallback, useLayoutEffect, useState } from "react"
import { useTranslation } from "react-i18next"
import { useNavigate } from "react-router"
@@ -219,12 +219,15 @@ export const ProfileButton: FC = memo((props) => {
})
ProfileButton.displayName = "ProfileButton"
-const TransitionAvatar = forwardRef<
- HTMLButtonElement,
- {
- stage: "zoom-in" | ""
- } & React.HTMLAttributes
->(({ stage, ...props }, forwardRef) => {
+const TransitionAvatar = ({
+ ref: forwardRef,
+ stage,
+ ...props
+}: {
+ stage: "zoom-in" | ""
+} & React.HTMLAttributes & {
+ ref?: React.Ref
+ }) => {
const [ref, { x, y }, forceRefresh] = useMeasure()
const [avatarHovered, setAvatarHovered] = useState(false)
@@ -274,4 +277,4 @@ const TransitionAvatar = forwardRef<
)}
>
)
-})
+}
diff --git a/apps/desktop/layer/renderer/src/modules/user/UserAvatar.tsx b/apps/desktop/layer/renderer/src/modules/user/UserAvatar.tsx
index d5ad1a6ee..ed1f0d95e 100644
--- a/apps/desktop/layer/renderer/src/modules/user/UserAvatar.tsx
+++ b/apps/desktop/layer/renderer/src/modules/user/UserAvatar.tsx
@@ -1,7 +1,6 @@
import { Avatar, AvatarFallback, AvatarImage } from "@follow/components/ui/avatar/index.jsx"
import { getColorScheme, stringToHue } from "@follow/utils/color"
import { cn } from "@follow/utils/utils"
-import { forwardRef } from "react"
import { useAuthQuery } from "~/hooks/common"
import { defineQuery } from "~/lib/defineQuery"
@@ -13,78 +12,80 @@ import { userActions } from "~/store/user"
import type { LoginProps } from "./LoginButton"
import { LoginButton } from "./LoginButton"
-export const UserAvatar = forwardRef<
- HTMLDivElement,
- {
- className?: string
- avatarClassName?: string
- hideName?: boolean
- userId?: string
- enableModal?: boolean
- } & LoginProps &
- React.HTMLAttributes
->(
- (
- { className, avatarClassName, hideName, userId, enableModal, style, onClick, ...props },
- ref,
- ) => {
- const { session, status } = useSession({
- enabled: !userId,
- })
- const presentUserProfile = usePresentUserProfileModal("drawer")
+export const UserAvatar = ({
+ ref,
+ className,
+ avatarClassName,
+ hideName,
+ userId,
+ enableModal,
+ style,
+ onClick,
+ ...props
+}: {
+ className?: string
+ avatarClassName?: string
+ hideName?: boolean
+ userId?: string
+ enableModal?: boolean
+} & LoginProps &
+ React.HTMLAttributes & { ref?: React.Ref }) => {
+ const { session, status } = useSession({
+ enabled: !userId,
+ })
+ const presentUserProfile = usePresentUserProfileModal("drawer")
- const profile = useAuthQuery(
- defineQuery(["profiles", userId], async () => {
- return userActions.getOrFetchProfile(userId!)
- }),
- {
- enabled: !!userId,
- },
- )
+ const profile = useAuthQuery(
+ defineQuery(["profiles", userId], async () => {
+ return userActions.getOrFetchProfile(userId!)
+ }),
+ {
+ enabled: !!userId,
+ },
+ )
- if (!userId && status !== "authenticated") {
- return
- }
+ if (!userId && status !== "authenticated") {
+ return
+ }
- const renderUserData = userId ? profile.data : session?.user
- const randomColor = stringToHue(renderUserData?.name || "")
- return (
- {
- if (enableModal) {
- presentUserProfile(userId)
- }
- onClick?.(e)
- }}
- {...props}
+ const renderUserData = userId ? profile.data : session?.user
+ const randomColor = stringToHue(renderUserData?.name || "")
+ return (
+
{
+ if (enableModal) {
+ presentUserProfile(userId)
+ }
+ onClick?.(e)
+ }}
+ {...props}
+ className={cn(
+ "text-text-secondary flex h-20 items-center justify-center gap-2 px-5 py-2 font-medium",
+ className,
+ )}
+ >
+
-
+
-
-
- {renderUserData?.name?.[0]}
-
-
- {!hideName &&
{renderUserData?.name}
}
-
- )
- },
-)
+ {renderUserData?.name?.[0]}
+
+
+ {!hideName &&
{renderUserData?.name}
}
+
+ )
+}
UserAvatar.displayName = "UserAvatar"
diff --git a/apps/desktop/layer/renderer/src/providers/app-grid-layout-container-provider.tsx b/apps/desktop/layer/renderer/src/providers/app-grid-layout-container-provider.tsx
index 193351512..9dc901719 100644
--- a/apps/desktop/layer/renderer/src/providers/app-grid-layout-container-provider.tsx
+++ b/apps/desktop/layer/renderer/src/providers/app-grid-layout-container-provider.tsx
@@ -1,6 +1,6 @@
import { throttle } from "es-toolkit/compat"
import type { FC, PropsWithChildren } from "react"
-import { createContext, useContext, useLayoutEffect, useRef, useState } from "react"
+import { createContext, use, useLayoutEffect, useRef, useState } from "react"
import { APP_GRID_CONTAINER_ID } from "~/constants/dom"
@@ -29,12 +29,12 @@ export const AppLayoutGridContainerProvider: FC = ({ children
}, [])
return (
-
+
{children}
-
+
)
}
-export const useAppLayoutGridContainerWidth = () => useContext(AppLayoutGridContainerWidthContext)
+export const useAppLayoutGridContainerWidth = () => use(AppLayoutGridContainerWidthContext)
diff --git a/apps/desktop/layer/renderer/src/providers/inject-styles-provider.tsx b/apps/desktop/layer/renderer/src/providers/inject-styles-provider.tsx
index 9fe524490..45828442d 100644
--- a/apps/desktop/layer/renderer/src/providers/inject-styles-provider.tsx
+++ b/apps/desktop/layer/renderer/src/providers/inject-styles-provider.tsx
@@ -1,7 +1,7 @@
import { MemoedDangerousHTMLStyle } from "@follow/components/common/MemoedDangerousHTMLStyle.jsx"
import { RootPortal } from "@follow/components/ui/portal/index.js"
import type { FC, PropsWithChildren } from "react"
-import { createContext, useCallback, useContext, useState } from "react"
+import { createContext, use, useCallback, useState } from "react"
const Provider = createContext<(id: string, styles: string) => () => void>(() => () => {})
export const PortalInjectStylesProvider: FC = ({ children }) => {
@@ -20,7 +20,7 @@ export const PortalInjectStylesProvider: FC = ({ children })
return dispose
}, [])
return (
-
+
{Object.entries(styles).map(([id, style]) => (
@@ -29,10 +29,10 @@ export const PortalInjectStylesProvider: FC = ({ children })
))}
{children}
-
+
)
}
export const useInjectStyles = () => {
- return useContext(Provider)
+ return use(Provider)
}
diff --git a/apps/desktop/layer/renderer/src/providers/wrapped-element-provider.tsx b/apps/desktop/layer/renderer/src/providers/wrapped-element-provider.tsx
index f3393f73d..df0ec8f53 100644
--- a/apps/desktop/layer/renderer/src/providers/wrapped-element-provider.tsx
+++ b/apps/desktop/layer/renderer/src/providers/wrapped-element-provider.tsx
@@ -5,7 +5,7 @@ import { createContextState } from "foxact/create-context-state"
import { useIsomorphicLayoutEffect } from "foxact/use-isomorphic-layout-effect"
import type { PrimitiveAtom } from "jotai"
import { atom, useAtomValue, useSetAtom } from "jotai"
-import { createContext, memo, useCallback, useContext, useEffect, useRef } from "react"
+import { createContext, memo, use, useCallback, useEffect, useRef } from "react"
import { ProviderComposer } from "~/components/common/ProviderComposer"
import { jotaiStore } from "~/lib/jotai"
@@ -32,7 +32,7 @@ const [IsStartOfElementProviderInternal, useIsSoFWrappedElement, useSetIsSOfElem
const Providers = [
,
,
- = ({
const ArticleElementResizeObserver = () => {
const setSize = useSetWrappedElementSize()
- const setPosition = useSetAtom(useContext(ElementPositionProviderInternal))
+ const setPosition = useSetAtom(use(ElementPositionProviderInternal))
const $element = useWrappedElement()
useIsomorphicLayoutEffect(() => {
if (!$element) return
@@ -140,11 +140,10 @@ const BoundingDetection: Component<{
return
}
-export const useWrappedElementPosition = () =>
- useAtomValue(useContext(ElementPositionProviderInternal))
+export const useWrappedElementPosition = () => useAtomValue(use(ElementPositionProviderInternal))
export const useGetWrappedElementPosition = () => {
- const atom = useContext(ElementPositionProviderInternal)
+ const atom = use(ElementPositionProviderInternal)
return useCallback(() => jotaiStore.get(atom), [atom])
}
diff --git a/apps/desktop/layer/renderer/src/store/entry/hooks.ts b/apps/desktop/layer/renderer/src/store/entry/hooks.ts
index cde2ca542..45ed4023c 100644
--- a/apps/desktop/layer/renderer/src/store/entry/hooks.ts
+++ b/apps/desktop/layer/renderer/src/store/entry/hooks.ts
@@ -86,7 +86,7 @@ export const useEntryIdsByView = (view: FeedViewType, filter?: EntryFilter) => {
return useEntryStore(
useCallback(
- () => getFilteredFeedIds([...feedIds, ...listFeedIds], filter) || [],
+ () => getFilteredFeedIds(Array.from(new Set([...feedIds, ...listFeedIds])), filter) || [],
[feedIds, listFeedIds, filter],
),
)
@@ -108,6 +108,7 @@ export const useEntryIdsByFeedIdOrView = (
const byView = useEntryIdsByView(feedIdOrView as FeedViewType, filter)
const byId = useEntryIdsByFeedId(feedIdOrView as string, filter)
const byFolder = useEntryIdsByFeedIds(feedIdOrView as string[], filter)
+
if (Array.isArray(feedIdOrView)) {
return byFolder
} else if (typeof feedIdOrView === "string") {
diff --git a/apps/desktop/package.json b/apps/desktop/package.json
index 36af96673..f8d7f2d7e 100644
--- a/apps/desktop/package.json
+++ b/apps/desktop/package.json
@@ -79,8 +79,8 @@
"html-minifier-terser": "7.2.0",
"js-yaml": "4.1.0",
"nbump": "2.1.2",
- "react": "18.3.1",
- "react-dom": "18.3.1",
+ "react": "19.0.0",
+ "react-dom": "19.0.0",
"tailwindcss-multi": "0.4.6",
"tar": "7.4.3",
"tsup": "8.4.0",
diff --git a/apps/mobile/.gitignore b/apps/mobile/.gitignore
index c9d575d70..3183cff7f 100644
--- a/apps/mobile/.gitignore
+++ b/apps/mobile/.gitignore
@@ -36,3 +36,11 @@ yarn-error.*
*.tsbuildinfo
app-example
+
+
+
+ios/Pods
+android
+Podfile.lock
+
+buildServer.json
\ No newline at end of file
diff --git a/apps/mobile/app.config.ts b/apps/mobile/app.config.ts
index 2692587a1..dc9e1c31f 100644
--- a/apps/mobile/app.config.ts
+++ b/apps/mobile/app.config.ts
@@ -4,7 +4,6 @@ import type { ConfigContext, ExpoConfig } from "expo/config"
import PKG from "./package.json"
-const isCI = process.env.CI === "true"
// const roundedIconPath = resolve(__dirname, "../../resources/icon.png")
const iconPathMap = {
production: resolve(__dirname, "./assets/icon.png"),
@@ -16,8 +15,10 @@ const iconPath = iconPathMap[process.env.PROFILE || "production"] || iconPathMap
const adaptiveIconPath = resolve(__dirname, "./assets/adaptive-icon.png")
+const isDev = process.env.NODE_ENV === "development"
+
export default ({ config }: ConfigContext): ExpoConfig => {
- const result = {
+ const result: ExpoConfig = {
...config,
extra: {
@@ -29,9 +30,7 @@ export default ({ config }: ConfigContext): ExpoConfig => {
updates: {
url: "https://u.expo.dev/a6335b14-fb84-45aa-ba80-6f6ab8926920",
},
- runtimeVersion: {
- policy: "appVersion" as const,
- },
+ runtimeVersion: isDev ? "0.0.0-dev" : PKG.version,
name: "Folo",
slug: "follow",
@@ -112,6 +111,7 @@ export default ({ config }: ConfigContext): ExpoConfig => {
},
],
"expo-apple-authentication",
+ "expo-web-browser",
[
"expo-video",
{
@@ -123,16 +123,15 @@ export default ({ config }: ConfigContext): ExpoConfig => {
require("./plugins/with-follow-assets.js"),
{
// Add asset directory paths, the plugin copies the files in the given paths to the app bundle folder named Assets
- assetsPath: !isCI ? resolve(__dirname, "..", "..", "out", "rn-web") : "/tmp/rn-web",
+ assetsPath: resolve(__dirname, "..", "..", "out", "rn-web"),
},
],
- require("./plugins/with-follow-app-delegate.js"),
+
require("./plugins/with-gradle-jvm-heap-size-increase.js"),
require("./plugins/with-android-day-night-theme-plugin.js"),
"expo-secure-store",
"@react-native-firebase/app",
"@react-native-firebase/crashlytics",
- "@react-native-firebase/app-check",
[
"expo-image-picker",
{
@@ -145,21 +144,11 @@ export default ({ config }: ConfigContext): ExpoConfig => {
enableBackgroundRemoteNotifications: true,
},
],
- [
- // Fix status bar flash issue on Android
- // Learn more: https://github.com/expo/expo/blob/main/packages/expo-status-bar/src/StatusBar.android.tsx#L21
- "react-native-edge-to-edge",
- {
- android: {
- parentTheme: "Default",
- enforceNavigationBarContrast: false,
- },
- },
- ],
],
}
if (process.env.PROFILE !== "production") {
+ result.plugins ||= []
result.plugins.push(require("./plugins/android-trust-user-certs.js"))
}
diff --git a/apps/mobile/babel.config.js b/apps/mobile/babel.config.js
index 3ed1f202f..004c8313f 100644
--- a/apps/mobile/babel.config.js
+++ b/apps/mobile/babel.config.js
@@ -1,7 +1,10 @@
module.exports = function (api) {
api.cache(true)
return {
- presets: [["babel-preset-expo", { jsxImportSource: "nativewind" }], "nativewind/babel"],
+ presets: [
+ ["babel-preset-expo", { jsxImportSource: "nativewind", unstable_transformImportMeta: true }],
+ "nativewind/babel",
+ ],
plugins: [
["inline-import", { extensions: [".sql"] }],
[
diff --git a/apps/mobile/ios/.gitignore b/apps/mobile/ios/.gitignore
new file mode 100644
index 000000000..8beb34430
--- /dev/null
+++ b/apps/mobile/ios/.gitignore
@@ -0,0 +1,30 @@
+# OSX
+#
+.DS_Store
+
+# Xcode
+#
+build/
+*.pbxuser
+!default.pbxuser
+*.mode1v3
+!default.mode1v3
+*.mode2v3
+!default.mode2v3
+*.perspectivev3
+!default.perspectivev3
+xcuserdata
+*.xccheckout
+*.moved-aside
+DerivedData
+*.hmap
+*.ipa
+*.xcuserstate
+project.xcworkspace
+.xcode.env.local
+
+# Bundle artifacts
+*.jsbundle
+
+# CocoaPods
+/Pods/
diff --git a/apps/mobile/ios/.xcode.env b/apps/mobile/ios/.xcode.env
new file mode 100644
index 000000000..3d5782c71
--- /dev/null
+++ b/apps/mobile/ios/.xcode.env
@@ -0,0 +1,11 @@
+# This `.xcode.env` file is versioned and is used to source the environment
+# used when running script phases inside Xcode.
+# To customize your local environment, you can create an `.xcode.env.local`
+# file that is not versioned.
+
+# NODE_BINARY variable contains the PATH to the node executable.
+#
+# Customize the NODE_BINARY variable here.
+# For example, to use nvm with brew, add the following line
+# . "$(brew --prefix nvm)/nvm.sh" --no-use
+export NODE_BINARY=$(command -v node)
diff --git a/apps/mobile/ios/Folo.xcodeproj/project.pbxproj b/apps/mobile/ios/Folo.xcodeproj/project.pbxproj
new file mode 100644
index 000000000..9dcc5a222
--- /dev/null
+++ b/apps/mobile/ios/Folo.xcodeproj/project.pbxproj
@@ -0,0 +1,665 @@
+// !$*UTF8*$!
+{
+ archiveVersion = 1;
+ classes = {
+ };
+ objectVersion = 54;
+ objects = {
+
+/* Begin PBXBuildFile section */
+ 08804409FAE316B2F4286290 /* Pods_Folo.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2C9A37CAFE9FFED2FCC141E3 /* Pods_Folo.framework */; };
+ 1274C3CE4776411EBE7CEAE8 /* rn-web in Resources */ = {isa = PBXBuildFile; fileRef = B69598E8ACBE445EA3C3DCEE /* rn-web */; };
+ 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
+ 21D47042A21541638A8813FF /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 771F66ABFAD64B3D89ABAB8A /* GoogleService-Info.plist */; };
+ 3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; };
+ 948BDAD26FE9D66B8735BBD0 /* ExpoModulesProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1CEF90D1FA529DB2CC2AE941 /* ExpoModulesProvider.swift */; };
+ A6D4133120E003E1031C2B48 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = BB62D7D685AF319E0A030204 /* PrivacyInfo.xcprivacy */; };
+ BB2F792D24A3F905000567C9 /* Expo.plist in Resources */ = {isa = PBXBuildFile; fileRef = BB2F792C24A3F905000567C9 /* Expo.plist */; };
+ F11748422D0307B40044C1D9 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F11748412D0307B40044C1D9 /* AppDelegate.swift */; };
+/* End PBXBuildFile section */
+
+/* Begin PBXFileReference section */
+ 13B07F961A680F5B00A75B9A /* Folo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Folo.app; sourceTree = BUILT_PRODUCTS_DIR; };
+ 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = Folo/Images.xcassets; sourceTree = ""; };
+ 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = Folo/Info.plist; sourceTree = ""; };
+ 1CEF90D1FA529DB2CC2AE941 /* ExpoModulesProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ExpoModulesProvider.swift; path = "Pods/Target Support Files/Pods-Folo/ExpoModulesProvider.swift"; sourceTree = ""; };
+ 2C9A37CAFE9FFED2FCC141E3 /* Pods_Folo.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Folo.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ 5D1548572A564A709411B1D2 /* Pods-Folo.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Folo.release.xcconfig"; path = "Target Support Files/Pods-Folo/Pods-Folo.release.xcconfig"; sourceTree = ""; };
+ 771F66ABFAD64B3D89ABAB8A /* GoogleService-Info.plist */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = text.plist.xml; name = "GoogleService-Info.plist"; path = "Folo/GoogleService-Info.plist"; sourceTree = ""; };
+ 84F18C4CB344992039541AAC /* Pods-Folo.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Folo.debug.xcconfig"; path = "Target Support Files/Pods-Folo/Pods-Folo.debug.xcconfig"; sourceTree = ""; };
+ AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = SplashScreen.storyboard; path = Folo/SplashScreen.storyboard; sourceTree = ""; };
+ B69598E8ACBE445EA3C3DCEE /* rn-web */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "rn-web"; path = "../../../out/rn-web"; sourceTree = ""; };
+ BB2F792C24A3F905000567C9 /* Expo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Expo.plist; sourceTree = ""; };
+ BB62D7D685AF319E0A030204 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = Folo/PrivacyInfo.xcprivacy; sourceTree = ""; };
+ ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
+ F11748412D0307B40044C1D9 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = Folo/AppDelegate.swift; sourceTree = ""; };
+ F11748442D0722820044C1D9 /* Folo-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = "Folo-Bridging-Header.h"; path = "Folo/Folo-Bridging-Header.h"; sourceTree = ""; };
+/* End PBXFileReference section */
+
+/* Begin PBXFrameworksBuildPhase section */
+ 13B07F8C1A680F5B00A75B9A /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 08804409FAE316B2F4286290 /* Pods_Folo.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXFrameworksBuildPhase section */
+
+/* Begin PBXGroup section */
+ 13B07FAE1A68108700A75B9A /* Folo */ = {
+ isa = PBXGroup;
+ children = (
+ F11748412D0307B40044C1D9 /* AppDelegate.swift */,
+ F11748442D0722820044C1D9 /* Folo-Bridging-Header.h */,
+ BB2F792B24A3F905000567C9 /* Supporting */,
+ 13B07FB51A68108700A75B9A /* Images.xcassets */,
+ 13B07FB61A68108700A75B9A /* Info.plist */,
+ AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */,
+ 771F66ABFAD64B3D89ABAB8A /* GoogleService-Info.plist */,
+ BB62D7D685AF319E0A030204 /* PrivacyInfo.xcprivacy */,
+ );
+ name = Folo;
+ sourceTree = "";
+ };
+ 2329C4DD95ED4964546416B9 /* Folo */ = {
+ isa = PBXGroup;
+ children = (
+ 1CEF90D1FA529DB2CC2AE941 /* ExpoModulesProvider.swift */,
+ );
+ name = Folo;
+ sourceTree = "";
+ };
+ 2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
+ 2C9A37CAFE9FFED2FCC141E3 /* Pods_Folo.framework */,
+ );
+ name = Frameworks;
+ sourceTree = "";
+ };
+ 486BB19B76483417F230E142 /* Pods */ = {
+ isa = PBXGroup;
+ children = (
+ 84F18C4CB344992039541AAC /* Pods-Folo.debug.xcconfig */,
+ 5D1548572A564A709411B1D2 /* Pods-Folo.release.xcconfig */,
+ );
+ path = Pods;
+ sourceTree = "";
+ };
+ 5A694C761377C5AE81D5B04E /* ExpoModulesProviders */ = {
+ isa = PBXGroup;
+ children = (
+ 2329C4DD95ED4964546416B9 /* Folo */,
+ );
+ name = ExpoModulesProviders;
+ sourceTree = "";
+ };
+ 62F56456C9AC4A5EA82DF7AB /* Assets */ = {
+ isa = PBXGroup;
+ children = (
+ B69598E8ACBE445EA3C3DCEE /* rn-web */,
+ );
+ name = Assets;
+ sourceTree = "";
+ };
+ 832341AE1AAA6A7D00B99B32 /* Libraries */ = {
+ isa = PBXGroup;
+ children = (
+ );
+ name = Libraries;
+ sourceTree = "";
+ };
+ 83CBB9F61A601CBA00E9B192 = {
+ isa = PBXGroup;
+ children = (
+ 13B07FAE1A68108700A75B9A /* Folo */,
+ 832341AE1AAA6A7D00B99B32 /* Libraries */,
+ 83CBBA001A601CBA00E9B192 /* Products */,
+ 2D16E6871FA4F8E400B85C8A /* Frameworks */,
+ 62F56456C9AC4A5EA82DF7AB /* Assets */,
+ 486BB19B76483417F230E142 /* Pods */,
+ 5A694C761377C5AE81D5B04E /* ExpoModulesProviders */,
+ );
+ indentWidth = 2;
+ sourceTree = "";
+ tabWidth = 2;
+ usesTabs = 0;
+ };
+ 83CBBA001A601CBA00E9B192 /* Products */ = {
+ isa = PBXGroup;
+ children = (
+ 13B07F961A680F5B00A75B9A /* Folo.app */,
+ );
+ name = Products;
+ sourceTree = "";
+ };
+ BB2F792B24A3F905000567C9 /* Supporting */ = {
+ isa = PBXGroup;
+ children = (
+ BB2F792C24A3F905000567C9 /* Expo.plist */,
+ );
+ name = Supporting;
+ path = Folo/Supporting;
+ sourceTree = "";
+ };
+/* End PBXGroup section */
+
+/* Begin PBXNativeTarget section */
+ 13B07F861A680F5B00A75B9A /* Folo */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Folo" */;
+ buildPhases = (
+ 08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */,
+ E2A317A7E9D9C06F986E7E62 /* [Expo] Configure project */,
+ 13B07F871A680F5B00A75B9A /* Sources */,
+ 13B07F8C1A680F5B00A75B9A /* Frameworks */,
+ 13B07F8E1A680F5B00A75B9A /* Resources */,
+ 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
+ 800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */,
+ 6E4ADCBDA5B760296BAE78FA /* [CP] Embed Pods Frameworks */,
+ 8F2D99FDEA6998C9D98BD7E0 /* [CP-User] [RNFB] Core Configuration */,
+ 8DF9409D54556D15DD94C0B5 /* [CP-User] [RNFB] Crashlytics Configuration */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ );
+ name = Folo;
+ productName = Folo;
+ productReference = 13B07F961A680F5B00A75B9A /* Folo.app */;
+ productType = "com.apple.product-type.application";
+ };
+/* End PBXNativeTarget section */
+
+/* Begin PBXProject section */
+ 83CBB9F71A601CBA00E9B192 /* Project object */ = {
+ isa = PBXProject;
+ attributes = {
+ LastUpgradeCheck = 1130;
+ TargetAttributes = {
+ 13B07F861A680F5B00A75B9A = {
+ LastSwiftMigration = 1250;
+ };
+ };
+ };
+ buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Folo" */;
+ compatibilityVersion = "Xcode 3.2";
+ developmentRegion = en;
+ hasScannedForEncodings = 0;
+ knownRegions = (
+ en,
+ Base,
+ );
+ mainGroup = 83CBB9F61A601CBA00E9B192;
+ productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */;
+ projectDirPath = "";
+ projectRoot = "";
+ targets = (
+ 13B07F861A680F5B00A75B9A /* Folo */,
+ );
+ };
+/* End PBXProject section */
+
+/* Begin PBXResourcesBuildPhase section */
+ 13B07F8E1A680F5B00A75B9A /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ BB2F792D24A3F905000567C9 /* Expo.plist in Resources */,
+ 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
+ 3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */,
+ 21D47042A21541638A8813FF /* GoogleService-Info.plist in Resources */,
+ 1274C3CE4776411EBE7CEAE8 /* rn-web in Resources */,
+ A6D4133120E003E1031C2B48 /* PrivacyInfo.xcprivacy in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
+/* Begin PBXShellScriptBuildPhase section */
+ 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ );
+ name = "Bundle React Native code and images";
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "if [[ -f \"$PODS_ROOT/../.xcode.env\" ]]; then\n source \"$PODS_ROOT/../.xcode.env\"\nfi\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\n# The project root by default is one level up from the ios directory\nexport PROJECT_ROOT=\"$PROJECT_DIR\"/..\n\nif [[ \"$CONFIGURATION\" = *Debug* ]]; then\n export SKIP_BUNDLING=1\nfi\nif [[ -z \"$ENTRY_FILE\" ]]; then\n # Set the entry JS file using the bundler's entry resolution.\n export ENTRY_FILE=\"$(\"$NODE_BINARY\" -e \"require('expo/scripts/resolveAppEntry')\" \"$PROJECT_ROOT\" ios absolute | tail -n 1)\"\nfi\n\nif [[ -z \"$CLI_PATH\" ]]; then\n # Use Expo CLI\n export CLI_PATH=\"$(\"$NODE_BINARY\" --print \"require.resolve('@expo/cli', { paths: [require.resolve('expo/package.json')] })\")\"\nfi\nif [[ -z \"$BUNDLE_COMMAND\" ]]; then\n # Default Expo CLI command for bundling\n export BUNDLE_COMMAND=\"export:embed\"\nfi\n\n# Source .xcode.env.updates if it exists to allow\n# SKIP_BUNDLING to be unset if needed\nif [[ -f \"$PODS_ROOT/../.xcode.env.updates\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.updates\"\nfi\n# Source local changes to allow overrides\n# if needed\nif [[ -f \"$PODS_ROOT/../.xcode.env.local\" ]]; then\n source \"$PODS_ROOT/../.xcode.env.local\"\nfi\n\n`\"$NODE_BINARY\" --print \"require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'\"`\n\n";
+ };
+ 08A4A3CD28434E44B6B9DE2E /* [CP] Check Pods Manifest.lock */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ "${PODS_PODFILE_DIR_PATH}/Podfile.lock",
+ "${PODS_ROOT}/Manifest.lock",
+ );
+ name = "[CP] Check Pods Manifest.lock";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-Folo-checkManifestLockResult.txt",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
+ showEnvVarsInLog = 0;
+ };
+ 6E4ADCBDA5B760296BAE78FA /* [CP] Embed Pods Frameworks */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-Folo/Pods-Folo-frameworks.sh",
+ "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/Pre-built/hermes.framework/hermes",
+ );
+ name = "[CP] Embed Pods Frameworks";
+ outputPaths = (
+ "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Folo/Pods-Folo-frameworks.sh\"\n";
+ showEnvVarsInLog = 0;
+ };
+ 800E24972A6A228C8D4807E9 /* [CP] Copy Pods Resources */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ "${PODS_ROOT}/Target Support Files/Pods-Folo/Pods-Folo-resources.sh",
+ "${PODS_CONFIGURATION_BUILD_DIR}/EXApplication/ExpoApplication_privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/EXConstants/EXConstants.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/EXConstants/ExpoConstants_privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/EXNotifications/ExpoNotifications_privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/EXTaskManager/ExpoTaskManager_privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/EXUpdates/EXUpdates.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ExpoDevice/ExpoDevice_privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ExpoFileSystem/ExpoFileSystem_privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ExpoLocalization/ExpoLocalization_privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ExpoMediaLibrary/ExpoMediaLibrary_privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ExpoSystemUI/ExpoSystemUI_privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/FirebaseCore/FirebaseCore_Privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/FirebaseCoreExtension/FirebaseCoreExtension_Privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/FirebaseCoreInternal/FirebaseCoreInternal_Privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/FirebaseCrashlytics/FirebaseCrashlytics_Privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/FirebaseInstallations/FirebaseInstallations_Privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/FirebaseMessaging/FirebaseMessaging_Privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/FollowNative/js.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/FollowNative/FollowNative.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/GoogleDataTransport/GoogleDataTransport_Privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/GoogleUtilities/GoogleUtilities_Privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/Mute/Mute.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/PromisesObjC/FBLPromises_Privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/PromisesSwift/Promises_Privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/RCT-Folly/RCT-Folly_privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/RNSVG/RNSVGFilters.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ReachabilitySwift/ReachabilitySwift.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/React-Core_privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-cxxreact/React-cxxreact_privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/SDWebImage/SDWebImage.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/SnapKit/SnapKit_Privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/boost/boost_privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/expo-dev-launcher/EXDevLauncher.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/expo-dev-menu/EXDevMenu.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/glog/glog_privacy.bundle",
+ "${PODS_CONFIGURATION_BUILD_DIR}/nanopb/nanopb_Privacy.bundle",
+ );
+ name = "[CP] Copy Pods Resources";
+ outputPaths = (
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoApplication_privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXConstants.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoConstants_privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoNotifications_privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoTaskManager_privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXUpdates.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoDevice_privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoFileSystem_privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoLocalization_privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoMediaLibrary_privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ExpoSystemUI_privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FirebaseCore_Privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FirebaseCoreExtension_Privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FirebaseCoreInternal_Privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FirebaseCrashlytics_Privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FirebaseInstallations_Privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FirebaseMessaging_Privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/js.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FollowNative.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleDataTransport_Privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/GoogleUtilities_Privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Mute.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/FBLPromises_Privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Promises_Privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RCT-Folly_privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RNSVGFilters.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/ReachabilitySwift.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/React-Core_privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/React-cxxreact_privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SDWebImage.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/SnapKit_Privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/boost_privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXDevLauncher.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/EXDevMenu.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/glog_privacy.bundle",
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/nanopb_Privacy.bundle",
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Folo/Pods-Folo-resources.sh\"\n";
+ showEnvVarsInLog = 0;
+ };
+ 8DF9409D54556D15DD94C0B5 /* [CP-User] [RNFB] Crashlytics Configuration */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ "${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}",
+ "$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)",
+ );
+ name = "[CP-User] [RNFB] Crashlytics Configuration";
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "#!/usr/bin/env bash\n#\n# Copyright (c) 2016-present Invertase Limited & Contributors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this library except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\nset -e\n\nif [[ ${PODS_ROOT} ]]; then\n echo \"info: Exec FirebaseCrashlytics Run from Pods\"\n \"${PODS_ROOT}/FirebaseCrashlytics/run\"\nelse\n echo \"info: Exec FirebaseCrashlytics Run from framework\"\n \"${PROJECT_DIR}/FirebaseCrashlytics.framework/run\"\nfi\n";
+ };
+ 8F2D99FDEA6998C9D98BD7E0 /* [CP-User] [RNFB] Core Configuration */ = {
+ isa = PBXShellScriptBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputPaths = (
+ "$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)",
+ );
+ name = "[CP-User] [RNFB] Core Configuration";
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "#!/usr/bin/env bash\n#\n# Copyright (c) 2016-present Invertase Limited & Contributors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this library except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n#\n\n##########################################################################\n##########################################################################\n#\n# NOTE THAT IF YOU CHANGE THIS FILE YOU MUST RUN pod install AFTERWARDS\n#\n# This file is installed as an Xcode build script in the project file\n# by cocoapods, and you will not see your changes until you pod install\n#\n##########################################################################\n##########################################################################\n\nset -e\n\n_MAX_LOOKUPS=2;\n_SEARCH_RESULT=''\n_RN_ROOT_EXISTS=''\n_CURRENT_LOOKUPS=1\n_JSON_ROOT=\"'react-native'\"\n_JSON_FILE_NAME='firebase.json'\n_JSON_OUTPUT_BASE64='e30=' # { }\n_CURRENT_SEARCH_DIR=${PROJECT_DIR}\n_PLIST_BUDDY=/usr/libexec/PlistBuddy\n_TARGET_PLIST=\"${BUILT_PRODUCTS_DIR}/${INFOPLIST_PATH}\"\n_DSYM_PLIST=\"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Info.plist\"\n\n# plist arrays\n_PLIST_ENTRY_KEYS=()\n_PLIST_ENTRY_TYPES=()\n_PLIST_ENTRY_VALUES=()\n\nfunction setPlistValue {\n echo \"info: setting plist entry '$1' of type '$2' in file '$4'\"\n ${_PLIST_BUDDY} -c \"Add :$1 $2 '$3'\" $4 || echo \"info: '$1' already exists\"\n}\n\nfunction getFirebaseJsonKeyValue () {\n if [[ ${_RN_ROOT_EXISTS} ]]; then\n ruby -Ku -e \"require 'rubygems';require 'json'; output=JSON.parse('$1'); puts output[$_JSON_ROOT]['$2']\"\n else\n echo \"\"\n fi;\n}\n\nfunction jsonBoolToYesNo () {\n if [[ $1 == \"false\" ]]; then\n echo \"NO\"\n elif [[ $1 == \"true\" ]]; then\n echo \"YES\"\n else echo \"NO\"\n fi\n}\n\necho \"info: -> RNFB build script started\"\necho \"info: 1) Locating ${_JSON_FILE_NAME} file:\"\n\nif [[ -z ${_CURRENT_SEARCH_DIR} ]]; then\n _CURRENT_SEARCH_DIR=$(pwd)\nfi;\n\nwhile true; do\n _CURRENT_SEARCH_DIR=$(dirname \"$_CURRENT_SEARCH_DIR\")\n if [[ \"$_CURRENT_SEARCH_DIR\" == \"/\" ]] || [[ ${_CURRENT_LOOKUPS} -gt ${_MAX_LOOKUPS} ]]; then break; fi;\n echo \"info: ($_CURRENT_LOOKUPS of $_MAX_LOOKUPS) Searching in '$_CURRENT_SEARCH_DIR' for a ${_JSON_FILE_NAME} file.\"\n _SEARCH_RESULT=$(find \"$_CURRENT_SEARCH_DIR\" -maxdepth 2 -name ${_JSON_FILE_NAME} -print | /usr/bin/head -n 1)\n if [[ ${_SEARCH_RESULT} ]]; then\n echo \"info: ${_JSON_FILE_NAME} found at $_SEARCH_RESULT\"\n break;\n fi;\n _CURRENT_LOOKUPS=$((_CURRENT_LOOKUPS+1))\ndone\n\nif [[ ${_SEARCH_RESULT} ]]; then\n _JSON_OUTPUT_RAW=$(cat \"${_SEARCH_RESULT}\")\n _RN_ROOT_EXISTS=$(ruby -Ku -e \"require 'rubygems';require 'json'; output=JSON.parse('$_JSON_OUTPUT_RAW'); puts output[$_JSON_ROOT]\" || echo '')\n\n if [[ ${_RN_ROOT_EXISTS} ]]; then\n if ! python3 --version >/dev/null 2>&1; then echo \"python3 not found, firebase.json file processing error.\" && exit 1; fi\n _JSON_OUTPUT_BASE64=$(python3 -c 'import json,sys,base64;print(base64.b64encode(bytes(json.dumps(json.loads(open('\"'${_SEARCH_RESULT}'\"', '\"'rb'\"').read())['${_JSON_ROOT}']), '\"'utf-8'\"')).decode())' || echo \"e30=\")\n fi\n\n _PLIST_ENTRY_KEYS+=(\"firebase_json_raw\")\n _PLIST_ENTRY_TYPES+=(\"string\")\n _PLIST_ENTRY_VALUES+=(\"$_JSON_OUTPUT_BASE64\")\n\n # config.app_data_collection_default_enabled\n _APP_DATA_COLLECTION_ENABLED=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"app_data_collection_default_enabled\")\n if [[ $_APP_DATA_COLLECTION_ENABLED ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseDataCollectionDefaultEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_APP_DATA_COLLECTION_ENABLED\")\")\n fi\n\n # config.analytics_auto_collection_enabled\n _ANALYTICS_AUTO_COLLECTION=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_auto_collection_enabled\")\n if [[ $_ANALYTICS_AUTO_COLLECTION ]]; then\n _PLIST_ENTRY_KEYS+=(\"FIREBASE_ANALYTICS_COLLECTION_ENABLED\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_AUTO_COLLECTION\")\")\n fi\n\n # config.analytics_collection_deactivated\n _ANALYTICS_DEACTIVATED=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_collection_deactivated\")\n if [[ $_ANALYTICS_DEACTIVATED ]]; then\n _PLIST_ENTRY_KEYS+=(\"FIREBASE_ANALYTICS_COLLECTION_DEACTIVATED\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_DEACTIVATED\")\")\n fi\n\n # config.analytics_idfv_collection_enabled\n _ANALYTICS_IDFV_COLLECTION=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_idfv_collection_enabled\")\n if [[ $_ANALYTICS_IDFV_COLLECTION ]]; then\n _PLIST_ENTRY_KEYS+=(\"GOOGLE_ANALYTICS_IDFV_COLLECTION_ENABLED\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_IDFV_COLLECTION\")\")\n fi\n\n # config.analytics_default_allow_analytics_storage\n _ANALYTICS_STORAGE=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_default_allow_analytics_storage\")\n if [[ $_ANALYTICS_STORAGE ]]; then\n _PLIST_ENTRY_KEYS+=(\"GOOGLE_ANALYTICS_DEFAULT_ALLOW_ANALYTICS_STORAGE\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_STORAGE\")\")\n fi\n\n # config.analytics_default_allow_ad_storage\n _ANALYTICS_AD_STORAGE=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_default_allow_ad_storage\")\n if [[ $_ANALYTICS_AD_STORAGE ]]; then\n _PLIST_ENTRY_KEYS+=(\"GOOGLE_ANALYTICS_DEFAULT_ALLOW_AD_STORAGE\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_AD_STORAGE\")\")\n fi\n\n # config.analytics_default_allow_ad_user_data\n _ANALYTICS_AD_USER_DATA=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_default_allow_ad_user_data\")\n if [[ $_ANALYTICS_AD_USER_DATA ]]; then\n _PLIST_ENTRY_KEYS+=(\"GOOGLE_ANALYTICS_DEFAULT_ALLOW_AD_USER_DATA\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_AD_USER_DATA\")\")\n fi\n\n # config.analytics_default_allow_ad_personalization_signals\n _ANALYTICS_PERSONALIZATION=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"analytics_default_allow_ad_personalization_signals\")\n if [[ $_ANALYTICS_PERSONALIZATION ]]; then\n _PLIST_ENTRY_KEYS+=(\"GOOGLE_ANALYTICS_DEFAULT_ALLOW_AD_PERSONALIZATION_SIGNALS\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_PERSONALIZATION\")\")\n fi\n\n # config.analytics_registration_with_ad_network_enabled\n _ANALYTICS_REGISTRATION_WITH_AD_NETWORK=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"google_analytics_registration_with_ad_network_enabled\")\n if [[ $_ANALYTICS_REGISTRATION_WITH_AD_NETWORK ]]; then\n _PLIST_ENTRY_KEYS+=(\"GOOGLE_ANALYTICS_REGISTRATION_WITH_AD_NETWORK_ENABLED\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_REGISTRATION_WITH_AD_NETWORK\")\")\n fi\n\n # config.google_analytics_automatic_screen_reporting_enabled\n _ANALYTICS_AUTO_SCREEN_REPORTING=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"google_analytics_automatic_screen_reporting_enabled\")\n if [[ $_ANALYTICS_AUTO_SCREEN_REPORTING ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseAutomaticScreenReportingEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_ANALYTICS_AUTO_SCREEN_REPORTING\")\")\n fi\n\n # config.perf_auto_collection_enabled\n _PERF_AUTO_COLLECTION=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"perf_auto_collection_enabled\")\n if [[ $_PERF_AUTO_COLLECTION ]]; then\n _PLIST_ENTRY_KEYS+=(\"firebase_performance_collection_enabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_PERF_AUTO_COLLECTION\")\")\n fi\n\n # config.perf_collection_deactivated\n _PERF_DEACTIVATED=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"perf_collection_deactivated\")\n if [[ $_PERF_DEACTIVATED ]]; then\n _PLIST_ENTRY_KEYS+=(\"firebase_performance_collection_deactivated\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_PERF_DEACTIVATED\")\")\n fi\n\n # config.messaging_auto_init_enabled\n _MESSAGING_AUTO_INIT=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"messaging_auto_init_enabled\")\n if [[ $_MESSAGING_AUTO_INIT ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseMessagingAutoInitEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_MESSAGING_AUTO_INIT\")\")\n fi\n\n # config.in_app_messaging_auto_colllection_enabled\n _FIAM_AUTO_INIT=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"in_app_messaging_auto_collection_enabled\")\n if [[ $_FIAM_AUTO_INIT ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseInAppMessagingAutomaticDataCollectionEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_FIAM_AUTO_INIT\")\")\n fi\n\n # config.app_check_token_auto_refresh\n _APP_CHECK_TOKEN_AUTO_REFRESH=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"app_check_token_auto_refresh\")\n if [[ $_APP_CHECK_TOKEN_AUTO_REFRESH ]]; then\n _PLIST_ENTRY_KEYS+=(\"FirebaseAppCheckTokenAutoRefreshEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"$(jsonBoolToYesNo \"$_APP_CHECK_TOKEN_AUTO_REFRESH\")\")\n fi\n\n # config.crashlytics_disable_auto_disabler - undocumented for now - mainly for debugging, document if becomes useful\n _CRASHLYTICS_AUTO_DISABLE_ENABLED=$(getFirebaseJsonKeyValue \"$_JSON_OUTPUT_RAW\" \"crashlytics_disable_auto_disabler\")\n if [[ $_CRASHLYTICS_AUTO_DISABLE_ENABLED == \"true\" ]]; then\n echo \"Disabled Crashlytics auto disabler.\" # do nothing\n else\n _PLIST_ENTRY_KEYS+=(\"FirebaseCrashlyticsCollectionEnabled\")\n _PLIST_ENTRY_TYPES+=(\"bool\")\n _PLIST_ENTRY_VALUES+=(\"NO\")\n fi\nelse\n _PLIST_ENTRY_KEYS+=(\"firebase_json_raw\")\n _PLIST_ENTRY_TYPES+=(\"string\")\n _PLIST_ENTRY_VALUES+=(\"$_JSON_OUTPUT_BASE64\")\n echo \"warning: A firebase.json file was not found, whilst this file is optional it is recommended to include it to configure firebase services in React Native Firebase.\"\nfi;\n\necho \"info: 2) Injecting Info.plist entries: \"\n\n# Log out the keys we're adding\nfor i in \"${!_PLIST_ENTRY_KEYS[@]}\"; do\n echo \" -> $i) ${_PLIST_ENTRY_KEYS[$i]}\" \"${_PLIST_ENTRY_TYPES[$i]}\" \"${_PLIST_ENTRY_VALUES[$i]}\"\ndone\n\nfor plist in \"${_TARGET_PLIST}\" \"${_DSYM_PLIST}\" ; do\n if [[ -f \"${plist}\" ]]; then\n\n # paths with spaces break the call to setPlistValue. temporarily modify\n # the shell internal field separator variable (IFS), which normally\n # includes spaces, to consist only of line breaks\n oldifs=$IFS\n IFS=\"\n\"\n\n for i in \"${!_PLIST_ENTRY_KEYS[@]}\"; do\n setPlistValue \"${_PLIST_ENTRY_KEYS[$i]}\" \"${_PLIST_ENTRY_TYPES[$i]}\" \"${_PLIST_ENTRY_VALUES[$i]}\" \"${plist}\"\n done\n\n # restore the original internal field separator value\n IFS=$oldifs\n else\n echo \"warning: A Info.plist build output file was not found (${plist})\"\n fi\ndone\n\necho \"info: <- RNFB build script finished\"\n";
+ };
+ E2A317A7E9D9C06F986E7E62 /* [Expo] Configure project */ = {
+ isa = PBXShellScriptBuildPhase;
+ alwaysOutOfDate = 1;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ inputFileListPaths = (
+ );
+ inputPaths = (
+ );
+ name = "[Expo] Configure project";
+ outputFileListPaths = (
+ );
+ outputPaths = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ shellPath = /bin/sh;
+ shellScript = "# This script configures Expo modules and generates the modules provider file.\nbash -l -c \"./Pods/Target\\ Support\\ Files/Pods-Folo/expo-configure-project.sh\"\n";
+ };
+/* End PBXShellScriptBuildPhase section */
+
+/* Begin PBXSourcesBuildPhase section */
+ 13B07F871A680F5B00A75B9A /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ F11748422D0307B40044C1D9 /* AppDelegate.swift in Sources */,
+ 948BDAD26FE9D66B8735BBD0 /* ExpoModulesProvider.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXSourcesBuildPhase section */
+
+/* Begin XCBuildConfiguration section */
+ 13B07F941A680F5B00A75B9A /* Debug */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 84F18C4CB344992039541AAC /* Pods-Folo.debug.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = Folo/Folo.entitlements;
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_TEAM = 492J8Q67PF;
+ ENABLE_BITCODE = NO;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "$(inherited)",
+ "FB_SONARKIT_ENABLED=1",
+ );
+ INFOPLIST_FILE = Folo/Info.plist;
+ IPHONEOS_DEPLOYMENT_TARGET = 15.1;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ MARKETING_VERSION = 1.0;
+ OTHER_LDFLAGS = (
+ "$(inherited)",
+ "-ObjC",
+ "-lc++",
+ );
+ OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG";
+ PRODUCT_BUNDLE_IDENTIFIER = is.follow;
+ PRODUCT_NAME = Folo;
+ SWIFT_OBJC_BRIDGING_HEADER = "Folo/Folo-Bridging-Header.h";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Debug;
+ };
+ 13B07F951A680F5B00A75B9A /* Release */ = {
+ isa = XCBuildConfiguration;
+ baseConfigurationReference = 5D1548572A564A709411B1D2 /* Pods-Folo.release.xcconfig */;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CLANG_ENABLE_MODULES = YES;
+ CODE_SIGN_ENTITLEMENTS = Folo/Folo.entitlements;
+ CURRENT_PROJECT_VERSION = 1;
+ DEVELOPMENT_TEAM = 492J8Q67PF;
+ INFOPLIST_FILE = Folo/Info.plist;
+ IPHONEOS_DEPLOYMENT_TARGET = 15.1;
+ LD_RUNPATH_SEARCH_PATHS = (
+ "$(inherited)",
+ "@executable_path/Frameworks",
+ );
+ MARKETING_VERSION = 1.0;
+ OTHER_LDFLAGS = (
+ "$(inherited)",
+ "-ObjC",
+ "-lc++",
+ );
+ OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE";
+ PRODUCT_BUNDLE_IDENTIFIER = is.follow;
+ PRODUCT_NAME = Folo;
+ SWIFT_OBJC_BRIDGING_HEADER = "Folo/Folo-Bridging-Header.h";
+ SWIFT_VERSION = 5.0;
+ TARGETED_DEVICE_FAMILY = "1,2";
+ VERSIONING_SYSTEM = "apple-generic";
+ };
+ name = Release;
+ };
+ 83CBBA201A601CBA00E9B192 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "c++20";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_OPTIMIZATION_LEVEL = 0;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ HEADER_SEARCH_PATHS = (
+ "$(inherited)",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon/ReactCommon.framework/Headers",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon/ReactCommon.framework/Headers/react/nativemodule/core",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers/platform/ios",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-Fabric/React_Fabric.framework/Headers/react/renderer/components/view/platform/cxx",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-NativeModulesApple/React_NativeModulesApple.framework/Headers",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers/react/renderer/graphics/platform/ios",
+ );
+ IPHONEOS_DEPLOYMENT_TARGET = 15.1;
+ LD_RUNPATH_SEARCH_PATHS = (
+ /usr/lib/swift,
+ "$(inherited)",
+ );
+ LIBRARY_SEARCH_PATHS = "$(SDKROOT)/usr/lib/swift\"$(inherited)\"";
+ MTL_ENABLE_DEBUG_INFO = YES;
+ ONLY_ACTIVE_ARCH = YES;
+ OTHER_LDFLAGS = (
+ "$(inherited)",
+ " ",
+ );
+ REACT_NATIVE_PATH = "${PODS_ROOT}/../../../../node_modules/react-native";
+ SDKROOT = iphoneos;
+ SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
+ USE_HERMES = true;
+ };
+ name = Debug;
+ };
+ 83CBBA211A601CBA00E9B192 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
+ CLANG_CXX_LANGUAGE_STANDARD = "c++20";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_COMMA = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INFINITE_RECURSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
+ CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = YES;
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ GCC_WARN_UNUSED_VARIABLE = YES;
+ HEADER_SEARCH_PATHS = (
+ "$(inherited)",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon/ReactCommon.framework/Headers",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon/ReactCommon.framework/Headers/react/nativemodule/core",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers",
+ "${PODS_CONFIGURATION_BUILD_DIR}/ReactCommon-Samples/ReactCommon_Samples.framework/Headers/platform/ios",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-Fabric/React_Fabric.framework/Headers/react/renderer/components/view/platform/cxx",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-NativeModulesApple/React_NativeModulesApple.framework/Headers",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers",
+ "${PODS_CONFIGURATION_BUILD_DIR}/React-graphics/React_graphics.framework/Headers/react/renderer/graphics/platform/ios",
+ );
+ IPHONEOS_DEPLOYMENT_TARGET = 15.1;
+ LD_RUNPATH_SEARCH_PATHS = (
+ /usr/lib/swift,
+ "$(inherited)",
+ );
+ LIBRARY_SEARCH_PATHS = "$(SDKROOT)/usr/lib/swift\"$(inherited)\"";
+ MTL_ENABLE_DEBUG_INFO = NO;
+ OTHER_LDFLAGS = (
+ "$(inherited)",
+ " ",
+ );
+ REACT_NATIVE_PATH = "${PODS_ROOT}/../../../../node_modules/react-native";
+ SDKROOT = iphoneos;
+ USE_HERMES = true;
+ VALIDATE_PRODUCT = YES;
+ };
+ name = Release;
+ };
+/* End XCBuildConfiguration section */
+
+/* Begin XCConfigurationList section */
+ 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Folo" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 13B07F941A680F5B00A75B9A /* Debug */,
+ 13B07F951A680F5B00A75B9A /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+ 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Folo" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 83CBBA201A601CBA00E9B192 /* Debug */,
+ 83CBBA211A601CBA00E9B192 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
+/* End XCConfigurationList section */
+ };
+ rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */;
+}
diff --git a/apps/mobile/ios/Folo.xcodeproj/xcshareddata/xcschemes/Folo.xcscheme b/apps/mobile/ios/Folo.xcodeproj/xcshareddata/xcschemes/Folo.xcscheme
new file mode 100644
index 000000000..47bb4350a
--- /dev/null
+++ b/apps/mobile/ios/Folo.xcodeproj/xcshareddata/xcschemes/Folo.xcscheme
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/apps/mobile/ios/Folo.xcworkspace/contents.xcworkspacedata b/apps/mobile/ios/Folo.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 000000000..a471a070e
--- /dev/null
+++ b/apps/mobile/ios/Folo.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
diff --git a/apps/mobile/ios/Folo/AppDelegate.swift b/apps/mobile/ios/Folo/AppDelegate.swift
new file mode 100644
index 000000000..6f315055d
--- /dev/null
+++ b/apps/mobile/ios/Folo/AppDelegate.swift
@@ -0,0 +1,89 @@
+import Expo
+import FirebaseCore
+import RNFBAppCheck
+import React
+import ReactAppDependencyProvider
+
+@UIApplicationMain
+public class AppDelegate: ExpoAppDelegate {
+ var window: UIWindow?
+
+ var reactNativeDelegate: ExpoReactNativeFactoryDelegate?
+ var reactNativeFactory: RCTReactNativeFactory?
+
+ public override func application(
+ _ application: UIApplication,
+ didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
+ ) -> Bool {
+ let delegate = ReactNativeDelegate()
+ let factory = ExpoReactNativeFactory(delegate: delegate)
+ delegate.dependencyProvider = RCTAppDependencyProvider()
+
+ reactNativeDelegate = delegate
+ reactNativeFactory = factory
+ bindReactNativeFactory(factory)
+
+ RNFBAppCheckModule.sharedInstance()
+ FirebaseApp.configure()
+
+ setAppAppearance()
+
+ #if os(iOS) || os(tvOS)
+ window = UIWindow(frame: UIScreen.main.bounds)
+ factory.startReactNative(
+ withModuleName: "main",
+ in: window,
+ launchOptions: launchOptions)
+ #endif
+
+ return super.application(application, didFinishLaunchingWithOptions: launchOptions)
+ }
+
+ // Linking API
+ public override func application(
+ _ app: UIApplication,
+ open url: URL,
+ options: [UIApplication.OpenURLOptionsKey: Any] = [:]
+ ) -> Bool {
+ return super.application(app, open: url, options: options)
+ || RCTLinkingManager.application(app, open: url, options: options)
+ }
+
+ // Universal Links
+ public override func application(
+ _ application: UIApplication,
+ continue userActivity: NSUserActivity,
+ restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void
+ ) -> Bool {
+ let result = RCTLinkingManager.application(
+ application, continue: userActivity, restorationHandler: restorationHandler)
+ return super.application(
+ application, continue: userActivity, restorationHandler: restorationHandler) || result
+ }
+}
+
+class ReactNativeDelegate: ExpoReactNativeFactoryDelegate {
+ // Extension point for config-plugins
+
+ override func sourceURL(for bridge: RCTBridge) -> URL? {
+ // needed to return the correct URL for expo-dev-client.
+ bridge.bundleURL ?? bundleURL()
+ }
+
+ override func bundleURL() -> URL? {
+ #if DEBUG
+ return RCTBundleURLProvider.sharedSettings().jsBundleURL(
+ forBundleRoot: ".expo/.virtual-metro-entry")
+ #else
+ return Bundle.main.url(forResource: "main", withExtension: "jsbundle")
+ #endif
+ }
+}
+
+private func setAppAppearance() {
+ let tintColor = UIColor(red: 255.0 / 255.0, green: 92.0 / 255.0, blue: 0.0 / 255.0, alpha: 1.0)
+ UIView.appearance(whenContainedInInstancesOf: [UIAlertController.self]).tintColor = tintColor
+
+ UIButton.appearance().tintColor = tintColor
+ UISwitch.appearance().onTintColor = tintColor
+}
diff --git a/apps/mobile/ios/Folo/Folo-Bridging-Header.h b/apps/mobile/ios/Folo/Folo-Bridging-Header.h
new file mode 100644
index 000000000..8361941af
--- /dev/null
+++ b/apps/mobile/ios/Folo/Folo-Bridging-Header.h
@@ -0,0 +1,3 @@
+//
+// Use this file to import your target's public headers that you would like to expose to Swift.
+//
diff --git a/apps/mobile/ios/Folo/Folo.entitlements b/apps/mobile/ios/Folo/Folo.entitlements
new file mode 100644
index 000000000..3f2ea618b
--- /dev/null
+++ b/apps/mobile/ios/Folo/Folo.entitlements
@@ -0,0 +1,12 @@
+
+
+
+
+ aps-environment
+ development
+ com.apple.developer.applesignin
+
+ Default
+
+
+
\ No newline at end of file
diff --git a/apps/mobile/ios/Folo/GoogleService-Info.plist b/apps/mobile/ios/Folo/GoogleService-Info.plist
new file mode 100644
index 000000000..2a5206366
--- /dev/null
+++ b/apps/mobile/ios/Folo/GoogleService-Info.plist
@@ -0,0 +1,30 @@
+
+
+
+
+ API_KEY
+ AIzaSyBD8lePDcfuPeJpJkvY1Egc_5sLX5lrtpg
+ GCM_SENDER_ID
+ 194977404578
+ PLIST_VERSION
+ 1
+ BUNDLE_ID
+ is.follow
+ PROJECT_ID
+ follow-428106
+ STORAGE_BUCKET
+ follow-428106.firebasestorage.app
+ IS_ADS_ENABLED
+
+ IS_ANALYTICS_ENABLED
+
+ IS_APPINVITE_ENABLED
+
+ IS_GCM_ENABLED
+
+ IS_SIGNIN_ENABLED
+
+ GOOGLE_APP_ID
+ 1:194977404578:ios:f26373d7487896293669fb
+
+
\ No newline at end of file
diff --git a/apps/mobile/ios/Folo/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png b/apps/mobile/ios/Folo/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png
new file mode 100644
index 000000000..61a26cce8
Binary files /dev/null and b/apps/mobile/ios/Folo/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png differ
diff --git a/apps/mobile/ios/Folo/Images.xcassets/AppIcon.appiconset/Contents.json b/apps/mobile/ios/Folo/Images.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 000000000..90d8d4c2a
--- /dev/null
+++ b/apps/mobile/ios/Folo/Images.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,14 @@
+{
+ "images": [
+ {
+ "filename": "App-Icon-1024x1024@1x.png",
+ "idiom": "universal",
+ "platform": "ios",
+ "size": "1024x1024"
+ }
+ ],
+ "info": {
+ "version": 1,
+ "author": "expo"
+ }
+}
\ No newline at end of file
diff --git a/apps/mobile/ios/Folo/Images.xcassets/Contents.json b/apps/mobile/ios/Folo/Images.xcassets/Contents.json
new file mode 100644
index 000000000..ed285c2e5
--- /dev/null
+++ b/apps/mobile/ios/Folo/Images.xcassets/Contents.json
@@ -0,0 +1,6 @@
+{
+ "info" : {
+ "version" : 1,
+ "author" : "expo"
+ }
+}
diff --git a/apps/mobile/ios/Folo/Images.xcassets/SplashScreenBackground.colorset/Contents.json b/apps/mobile/ios/Folo/Images.xcassets/SplashScreenBackground.colorset/Contents.json
new file mode 100644
index 000000000..0d8c7535f
--- /dev/null
+++ b/apps/mobile/ios/Folo/Images.xcassets/SplashScreenBackground.colorset/Contents.json
@@ -0,0 +1,38 @@
+{
+ "colors": [
+ {
+ "color": {
+ "components": {
+ "alpha": "1.000",
+ "blue": "1.00000000000000",
+ "green": "1.00000000000000",
+ "red": "1.00000000000000"
+ },
+ "color-space": "srgb"
+ },
+ "idiom": "universal"
+ },
+ {
+ "color": {
+ "components": {
+ "alpha": "1.000",
+ "blue": "0.00000000000000",
+ "green": "0.00000000000000",
+ "red": "0.00000000000000"
+ },
+ "color-space": "srgb"
+ },
+ "idiom": "universal",
+ "appearances": [
+ {
+ "appearance": "luminosity",
+ "value": "dark"
+ }
+ ]
+ }
+ ],
+ "info": {
+ "version": 1,
+ "author": "expo"
+ }
+}
\ No newline at end of file
diff --git a/apps/mobile/ios/Folo/Info.plist b/apps/mobile/ios/Folo/Info.plist
new file mode 100644
index 000000000..75e715444
--- /dev/null
+++ b/apps/mobile/ios/Folo/Info.plist
@@ -0,0 +1,115 @@
+
+
+
+
+ CADisableMinimumFrameDurationOnPhone
+
+ CFBundleAllowMixedLocalizations
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleDisplayName
+ Folo
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleLocalizations
+
+ en
+ ja
+ zh-CN
+ zh-TW
+
+ CFBundleName
+ $(PRODUCT_NAME)
+ CFBundlePackageType
+ $(PRODUCT_BUNDLE_PACKAGE_TYPE)
+ CFBundleShortVersionString
+ 0.1.7
+ CFBundleSignature
+ ????
+ CFBundleURLTypes
+
+
+ CFBundleURLSchemes
+
+ follow
+ is.follow
+
+
+
+ CFBundleURLSchemes
+
+ exp+follow
+
+
+
+ CFBundleVersion
+ 1
+ ITSAppUsesNonExemptEncryption
+
+ LSApplicationCategoryType
+ public.app-category.news
+ LSApplicationQueriesSchemes
+
+ bilibili
+ youtube
+
+ LSMinimumSystemVersion
+ 12.0
+ LSRequiresIPhoneOS
+
+ NSAppTransportSecurity
+
+ NSAllowsArbitraryLoads
+
+ NSAllowsLocalNetworking
+
+
+ NSCameraUsageDescription
+ Allow $(PRODUCT_NAME) to access your camera
+ NSFaceIDUsageDescription
+ Allow $(PRODUCT_NAME) to access your Face ID biometric data.
+ NSMicrophoneUsageDescription
+ Allow $(PRODUCT_NAME) to access your microphone
+ NSPhotoLibraryAddUsageDescription
+ Allow $(PRODUCT_NAME) to save photos.
+ NSPhotoLibraryUsageDescription
+ Allow $(PRODUCT_NAME) to access your photos.
+ UIBackgroundModes
+
+ audio
+ fetch
+ remote-notification
+
+ UILaunchStoryboardName
+ SplashScreen
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UIRequiresFullScreen
+
+ UIStatusBarStyle
+ UIStatusBarStyleDefault
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UIUserInterfaceStyle
+ Automatic
+ UIViewControllerBasedStatusBarAppearance
+
+
+
\ No newline at end of file
diff --git a/apps/mobile/ios/Folo/PrivacyInfo.xcprivacy b/apps/mobile/ios/Folo/PrivacyInfo.xcprivacy
new file mode 100644
index 000000000..bb8d0b671
--- /dev/null
+++ b/apps/mobile/ios/Folo/PrivacyInfo.xcprivacy
@@ -0,0 +1,50 @@
+
+
+
+
+ NSPrivacyAccessedAPITypes
+
+
+ NSPrivacyAccessedAPIType
+ NSPrivacyAccessedAPICategoryFileTimestamp
+ NSPrivacyAccessedAPITypeReasons
+
+ C617.1
+ 0A2A.1
+ 3B52.1
+
+
+
+ NSPrivacyAccessedAPIType
+ NSPrivacyAccessedAPICategoryUserDefaults
+ NSPrivacyAccessedAPITypeReasons
+
+ CA92.1
+ 1C8F.1
+ C56D.1
+
+
+
+ NSPrivacyAccessedAPIType
+ NSPrivacyAccessedAPICategorySystemBootTime
+ NSPrivacyAccessedAPITypeReasons
+
+ 35F9.1
+
+
+
+ NSPrivacyAccessedAPIType
+ NSPrivacyAccessedAPICategoryDiskSpace
+ NSPrivacyAccessedAPITypeReasons
+
+ E174.1
+ 85F4.1
+
+
+
+ NSPrivacyCollectedDataTypes
+
+ NSPrivacyTracking
+
+
+
diff --git a/apps/mobile/ios/Folo/SplashScreen.storyboard b/apps/mobile/ios/Folo/SplashScreen.storyboard
new file mode 100644
index 000000000..81f3d7227
--- /dev/null
+++ b/apps/mobile/ios/Folo/SplashScreen.storyboard
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/apps/mobile/ios/Folo/Supporting/Expo.plist b/apps/mobile/ios/Folo/Supporting/Expo.plist
new file mode 100644
index 000000000..f565f4c48
--- /dev/null
+++ b/apps/mobile/ios/Folo/Supporting/Expo.plist
@@ -0,0 +1,16 @@
+
+
+
+
+ EXUpdatesCheckOnLaunch
+ ALWAYS
+ EXUpdatesEnabled
+
+ EXUpdatesLaunchWaitMs
+ 0
+ EXUpdatesRuntimeVersion
+ 0.1.7
+ EXUpdatesURL
+ https://u.expo.dev/a6335b14-fb84-45aa-ba80-6f6ab8926920
+
+
\ No newline at end of file
diff --git a/apps/mobile/ios/Podfile b/apps/mobile/ios/Podfile
new file mode 100644
index 000000000..f7a945cfa
--- /dev/null
+++ b/apps/mobile/ios/Podfile
@@ -0,0 +1,64 @@
+require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
+require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods")
+
+require 'json'
+podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties.json'))) rescue {}
+
+ENV['RCT_NEW_ARCH_ENABLED'] = '0' if podfile_properties['newArchEnabled'] == 'false'
+ENV['EX_DEV_CLIENT_NETWORK_INSPECTOR'] = podfile_properties['EX_DEV_CLIENT_NETWORK_INSPECTOR']
+
+platform :ios, podfile_properties['ios.deploymentTarget'] || '15.1'
+install! 'cocoapods',
+ :deterministic_uuids => false
+
+prepare_react_native_project!
+
+target 'Folo' do
+ use_expo_modules!
+
+ if ENV['EXPO_USE_COMMUNITY_AUTOLINKING'] == '1'
+ config_command = ['node', '-e', "process.argv=['', '', 'config'];require('@react-native-community/cli').run()"];
+ else
+ config_command = [
+ 'npx',
+ 'expo-modules-autolinking',
+ 'react-native-config',
+ '--json',
+ '--platform',
+ 'ios'
+ ]
+ end
+
+ config = use_native_modules!(config_command)
+
+ use_frameworks! :linkage => podfile_properties['ios.useFrameworks'].to_sym if podfile_properties['ios.useFrameworks']
+ use_frameworks! :linkage => ENV['USE_FRAMEWORKS'].to_sym if ENV['USE_FRAMEWORKS']
+
+ use_react_native!(
+ :path => config[:reactNativePath],
+ :hermes_enabled => podfile_properties['expo.jsEngine'] == nil || podfile_properties['expo.jsEngine'] == 'hermes',
+ # An absolute path to your application root.
+ :app_path => "#{Pod::Config.instance.installation_root}/..",
+ :privacy_file_aggregation_enabled => podfile_properties['apple.privacyManifestAggregationEnabled'] != 'false',
+ )
+
+ post_install do |installer|
+ react_native_post_install(
+ installer,
+ config[:reactNativePath],
+ :mac_catalyst_enabled => false,
+ :ccache_enabled => podfile_properties['apple.ccacheEnabled'] == 'true',
+ )
+
+ # This is necessary for Xcode 14, because it signs resource bundles by default
+ # when building for devices.
+ installer.target_installation_results.pod_target_installation_results
+ .each do |pod_name, target_installation_result|
+ target_installation_result.resource_bundle_targets.each do |resource_bundle_target|
+ resource_bundle_target.build_configurations.each do |config|
+ config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
+ end
+ end
+ end
+ end
+end
diff --git a/apps/mobile/ios/Podfile.properties.json b/apps/mobile/ios/Podfile.properties.json
new file mode 100644
index 000000000..0e1daf4a9
--- /dev/null
+++ b/apps/mobile/ios/Podfile.properties.json
@@ -0,0 +1,7 @@
+{
+ "expo.jsEngine": "hermes",
+ "EX_DEV_CLIENT_NETWORK_INSPECTOR": "true",
+ "newArchEnabled": "true",
+ "ios.useFrameworks": "static",
+ "apple.privacyManifestAggregationEnabled": "true"
+}
diff --git a/apps/mobile/metro.config.js b/apps/mobile/metro.config.js
index b4934a582..ae283bef6 100644
--- a/apps/mobile/metro.config.js
+++ b/apps/mobile/metro.config.js
@@ -17,6 +17,7 @@ config.resolver.nodeModulesPaths = [
path.resolve(__dirname, "./node_modules"),
path.resolve(__dirname, "../../node_modules"),
]
+config.resolver.unstable_enablePackageExports = false
config.resolver.extraNodeModules = {
...config.resolver.extraNodeModules,
diff --git a/apps/mobile/native/example/package.json b/apps/mobile/native/example/package.json
index cbf79db7a..5ab18cfb1 100644
--- a/apps/mobile/native/example/package.json
+++ b/apps/mobile/native/example/package.json
@@ -11,14 +11,14 @@
"web": "expo start --web"
},
"dependencies": {
- "expo": "52.0.41",
+ "expo": "53.0.4",
"nativewind": "4.1.23",
- "react": "18.3.1",
- "react-native": "0.77.2",
+ "react": "19.0.0",
+ "react-native": "0.79.1",
"react-native-css-interop": "0.1.22",
- "react-native-reanimated": "3.17.1",
+ "react-native-reanimated": "3.17.4",
"react-native-safe-area-context": "5.3.0",
- "react-native-uikit-colors": "0.3.10"
+ "react-native-uikit-colors": "0.5.2"
},
"expo": {
"autolinking": {
diff --git a/apps/mobile/native/example/pnpm-lock.yaml b/apps/mobile/native/example/pnpm-lock.yaml
index a0fe77794..88de35fc3 100644
--- a/apps/mobile/native/example/pnpm-lock.yaml
+++ b/apps/mobile/native/example/pnpm-lock.yaml
@@ -10,28 +10,28 @@ importers:
dependencies:
expo:
specifier: 52.0.41
- version: 52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)
+ version: 52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)
nativewind:
specifier: 4.1.23
- version: 4.1.23(react-native-reanimated@3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native-safe-area-context@5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)(tailwindcss@3.4.17)
+ version: 4.1.23(react-native-reanimated@3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native-safe-area-context@5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)(tailwindcss@3.4.17)
react:
- specifier: 18.3.1
- version: 18.3.1
+ specifier: 19.0.0
+ version: 19.0.0
react-native:
specifier: 0.77.2
- version: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1)
+ version: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0)
react-native-css-interop:
specifier: 0.1.22
- version: 0.1.22(react-native-reanimated@3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native-safe-area-context@5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)(tailwindcss@3.4.17)
+ version: 0.1.22(react-native-reanimated@3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native-safe-area-context@5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)(tailwindcss@3.4.17)
react-native-reanimated:
specifier: 3.17.1
- version: 3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)
+ version: 3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)
react-native-safe-area-context:
specifier: 5.3.0
- version: 5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)
+ version: 5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)
react-native-uikit-colors:
specifier: 0.3.10
- version: 0.3.10(nativewind@4.1.23(react-native-reanimated@3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native-safe-area-context@5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)(tailwindcss@3.4.17))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)(tailwindcss@3.4.17)
+ version: 0.3.10(nativewind@4.1.23(react-native-reanimated@3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native-safe-area-context@5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)(tailwindcss@3.4.17))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)(tailwindcss@3.4.17)
packages:
@@ -2884,7 +2884,7 @@ packages:
react-is@16.13.1:
resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}
- react-is@18.3.1:
+ react-is@19.0.0:
resolution: {integrity: sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==}
react-native-css-interop@0.1.22:
@@ -2945,7 +2945,7 @@ packages:
resolution: {integrity: sha512-jCvmsr+1IUSMUyzOkRcvnVbX3ZYC6g9TDrDbFuFmRDq7PD4yaGbLKNQL6k2jnArV8hjYxh7hVhAZB6s9HDGpZA==}
engines: {node: '>=0.10.0'}
- react@18.3.1:
+ react@19.0.0:
resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==}
engines: {node: '>=0.10.0'}
@@ -5120,12 +5120,12 @@ snapshots:
'@react-native/normalize-colors@0.77.2': {}
- '@react-native/virtualized-lists@0.77.2(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)':
+ '@react-native/virtualized-lists@0.77.2(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)':
dependencies:
invariant: 2.2.4
nullthrows: 1.1.1
- react: 18.3.1
- react-native: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1)
+ react: 19.0.0
+ react-native: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0)
'@segment/loosely-validate-event@2.0.0':
dependencies:
@@ -5829,43 +5829,43 @@ snapshots:
signal-exit: 3.0.7
strip-eof: 1.0.0
- expo-asset@11.0.5(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1):
+ expo-asset@11.0.5(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0):
dependencies:
'@expo/image-utils': 0.6.5
- expo: 52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)
- expo-constants: 17.0.8(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))
+ expo: 52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)
+ expo-constants: 17.0.8(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))
invariant: 2.2.4
md5-file: 3.2.3
- react: 18.3.1
- react-native: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1)
+ react: 19.0.0
+ react-native: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0)
transitivePeerDependencies:
- supports-color
- expo-constants@17.0.8(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1)):
+ expo-constants@17.0.8(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0)):
dependencies:
'@expo/config': 10.0.11
'@expo/env': 0.4.2
- expo: 52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)
- react-native: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1)
+ expo: 52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)
+ react-native: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0)
transitivePeerDependencies:
- supports-color
- expo-file-system@18.0.12(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1)):
+ expo-file-system@18.0.12(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0)):
dependencies:
- expo: 52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)
- react-native: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1)
+ expo: 52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)
+ react-native: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0)
web-streams-polyfill: 3.3.3
- expo-font@13.0.4(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react@18.3.1):
+ expo-font@13.0.4(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react@19.0.0):
dependencies:
- expo: 52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)
+ expo: 52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)
fontfaceobserver: 2.3.0
- react: 18.3.1
+ react: 19.0.0
- expo-keep-awake@14.0.3(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react@18.3.1):
+ expo-keep-awake@14.0.3(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react@19.0.0):
dependencies:
- expo: 52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)
- react: 18.3.1
+ expo: 52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)
+ react: 19.0.0
expo-modules-autolinking@2.0.8:
dependencies:
@@ -5882,7 +5882,7 @@ snapshots:
dependencies:
invariant: 2.2.4
- expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1):
+ expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0):
dependencies:
'@babel/runtime': 7.27.0
'@expo/cli': 0.22.22
@@ -5892,16 +5892,16 @@ snapshots:
'@expo/metro-config': 0.19.12
'@expo/vector-icons': 14.0.4
babel-preset-expo: 12.0.9(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))
- expo-asset: 11.0.5(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)
- expo-constants: 17.0.8(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))
- expo-file-system: 18.0.12(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))
- expo-font: 13.0.4(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react@18.3.1)
- expo-keep-awake: 14.0.3(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react@18.3.1)
+ expo-asset: 11.0.5(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)
+ expo-constants: 17.0.8(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))
+ expo-file-system: 18.0.12(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))
+ expo-font: 13.0.4(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react@19.0.0)
+ expo-keep-awake: 14.0.3(expo@52.0.41(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react@19.0.0)
expo-modules-autolinking: 2.0.8
expo-modules-core: 2.2.3
fbemitter: 3.0.0
- react: 18.3.1
- react-native: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1)
+ react: 19.0.0
+ react-native: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0)
web-streams-polyfill: 3.3.3
whatwg-url-without-unicode: 8.0.0-3
transitivePeerDependencies:
@@ -6838,11 +6838,11 @@ snapshots:
nanoid@3.3.11: {}
- nativewind@4.1.23(react-native-reanimated@3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native-safe-area-context@5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)(tailwindcss@3.4.17):
+ nativewind@4.1.23(react-native-reanimated@3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native-safe-area-context@5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)(tailwindcss@3.4.17):
dependencies:
comment-json: 4.2.5
debug: 4.4.0
- react-native-css-interop: 0.1.22(react-native-reanimated@3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native-safe-area-context@5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)(tailwindcss@3.4.17)
+ react-native-css-interop: 0.1.22(react-native-reanimated@3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native-safe-area-context@5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)(tailwindcss@3.4.17)
tailwindcss: 3.4.17
transitivePeerDependencies:
- react
@@ -7077,7 +7077,7 @@ snapshots:
dependencies:
'@jest/schemas': 29.6.3
ansi-styles: 5.2.0
- react-is: 18.3.1
+ react-is: 19.0.0
proc-log@4.2.0: {}
@@ -7136,31 +7136,31 @@ snapshots:
react-is@16.13.1: {}
- react-is@18.3.1: {}
+ react-is@19.0.0: {}
- react-native-css-interop@0.1.22(react-native-reanimated@3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native-safe-area-context@5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)(tailwindcss@3.4.17):
+ react-native-css-interop@0.1.22(react-native-reanimated@3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native-safe-area-context@5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)(tailwindcss@3.4.17):
dependencies:
'@babel/helper-module-imports': 7.25.9
'@babel/traverse': 7.27.0
'@babel/types': 7.27.0
debug: 4.4.0
lightningcss: 1.29.3
- react: 18.3.1
- react-native: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1)
- react-native-reanimated: 3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)
+ react: 19.0.0
+ react-native: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0)
+ react-native-reanimated: 3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)
semver: 7.7.1
tailwindcss: 3.4.17
optionalDependencies:
- react-native-safe-area-context: 5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)
+ react-native-safe-area-context: 5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)
transitivePeerDependencies:
- supports-color
- react-native-is-edge-to-edge@1.1.6(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1):
+ react-native-is-edge-to-edge@1.1.6(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0):
dependencies:
- react: 18.3.1
- react-native: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1)
+ react: 19.0.0
+ react-native: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0)
- react-native-reanimated@3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1):
+ react-native-reanimated@3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0):
dependencies:
'@babel/core': 7.26.10
'@babel/plugin-transform-arrow-functions': 7.25.9(@babel/core@7.26.10)
@@ -7174,27 +7174,27 @@ snapshots:
'@babel/preset-typescript': 7.27.0(@babel/core@7.26.10)
convert-source-map: 2.0.0
invariant: 2.2.4
- react: 18.3.1
- react-native: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1)
- react-native-is-edge-to-edge: 1.1.6(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)
+ react: 19.0.0
+ react-native: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0)
+ react-native-is-edge-to-edge: 1.1.6(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)
transitivePeerDependencies:
- supports-color
- react-native-safe-area-context@5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1):
+ react-native-safe-area-context@5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0):
dependencies:
- react: 18.3.1
- react-native: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1)
+ react: 19.0.0
+ react-native: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0)
- react-native-uikit-colors@0.3.10(nativewind@4.1.23(react-native-reanimated@3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native-safe-area-context@5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)(tailwindcss@3.4.17))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)(tailwindcss@3.4.17):
+ react-native-uikit-colors@0.3.10(nativewind@4.1.23(react-native-reanimated@3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native-safe-area-context@5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)(tailwindcss@3.4.17))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)(tailwindcss@3.4.17):
dependencies:
apple-uikit-colors: 0.3.10
- nativewind: 4.1.23(react-native-reanimated@3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native-safe-area-context@5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)(tailwindcss@3.4.17)
- react: 18.3.1
- react-native: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1)
+ nativewind: 4.1.23(react-native-reanimated@3.17.1(@babel/core@7.26.10)(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native-safe-area-context@5.3.0(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0))(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)(tailwindcss@3.4.17)
+ react: 19.0.0
+ react-native: 0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0)
tailwindcss: 3.4.17
tailwindcss-uikit-colors: 0.3.10
- react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1):
+ react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0):
dependencies:
'@jest/create-cache-key-function': 29.7.0
'@react-native/assets-registry': 0.77.2
@@ -7203,7 +7203,7 @@ snapshots:
'@react-native/gradle-plugin': 0.77.2
'@react-native/js-polyfills': 0.77.2
'@react-native/normalize-colors': 0.77.2
- '@react-native/virtualized-lists': 0.77.2(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@18.3.1))(react@18.3.1)
+ '@react-native/virtualized-lists': 0.77.2(react-native@0.77.2(@babel/core@7.26.10)(@babel/preset-env@7.26.9(@babel/core@7.26.10))(react@19.0.0))(react@19.0.0)
abort-controller: 3.0.0
anser: 1.4.10
ansi-regex: 5.0.1
@@ -7224,7 +7224,7 @@ snapshots:
nullthrows: 1.1.1
pretty-format: 29.7.0
promise: 8.3.0
- react: 18.3.1
+ react: 19.0.0
react-devtools-core: 6.1.1
react-refresh: 0.14.2
regenerator-runtime: 0.13.11
@@ -7244,7 +7244,7 @@ snapshots:
react-refresh@0.14.2: {}
- react@18.3.1:
+ react@19.0.0:
dependencies:
loose-envify: 1.4.0
diff --git a/apps/mobile/native/example/src/components/Pager.tsx b/apps/mobile/native/example/src/components/Pager.tsx
index 1815204f7..382694a42 100644
--- a/apps/mobile/native/example/src/components/Pager.tsx
+++ b/apps/mobile/native/example/src/components/Pager.tsx
@@ -1,12 +1,6 @@
import { requireNativeView } from "expo"
-import type {
- FC,
- ForwardRefExoticComponent,
- PropsWithoutRef,
- ReactNode,
- RefAttributes,
-} from "react"
-import { forwardRef, useEffect, useImperativeHandle, useRef, useState } from "react"
+import type { FC, ReactNode } from "react"
+import { useEffect, useImperativeHandle, useRef, useState } from "react"
import type { NativeSyntheticEvent, ViewProps, ViewStyle } from "react-native"
const EnhancePagerView = requireNativeView("EnhancePagerView")
@@ -42,25 +36,24 @@ type PagerViewProps = {
onPageWillAppear?: (index: number) => void
containerStyle?: ViewStyle
containerClassName?: string
+ ref?: React.Ref
}
-const PagerViewImpl: FC = (
- {
- pageContainerStyle,
- renderPage,
- pageTotal,
- pageGap,
- transitionStyle,
- containerStyle,
- containerClassName,
- page,
- onPageChange,
- onScroll,
- onScrollBegin,
- onScrollEnd,
- onPageWillAppear,
- },
- ref: any,
-) => {
+export const PagerView: FC = ({
+ pageContainerStyle,
+ renderPage,
+ pageTotal,
+ pageGap,
+ transitionStyle,
+ containerStyle,
+ containerClassName,
+ page,
+ onPageChange,
+ onScroll,
+ onScrollBegin,
+ onScrollEnd,
+ onPageWillAppear,
+ ref,
+}) => {
const [currentPage, setCurrentPage] = useState(page ?? 0)
const nativeRef = useRef(null)
@@ -72,7 +65,7 @@ const PagerViewImpl: FC = (
}
}
}, [currentPage])
- useImperativeHandle(ref, () => nativeRef.current)
+ useImperativeHandle(ref, () => nativeRef.current!)
return (
= (
)
}
-
-export const PagerView = forwardRef(PagerViewImpl as any) as ForwardRefExoticComponent<
- PropsWithoutRef & RefAttributes
->
diff --git a/apps/mobile/native/ios/Modules/Galeria/EntryGaleriaAccessoryView.swift b/apps/mobile/native/ios/Modules/Galeria/EntryGaleriaAccessoryView.swift
index dba02a4f4..c96c939f0 100644
--- a/apps/mobile/native/ios/Modules/Galeria/EntryGaleriaAccessoryView.swift
+++ b/apps/mobile/native/ios/Modules/Galeria/EntryGaleriaAccessoryView.swift
@@ -9,7 +9,7 @@ import ExpoModulesCore
import SwiftUI
import UIKit
-class ExpoEntryGaleriaAccessoryViewProps: ExpoSwiftUI.ViewProps {
+final class ExpoEntryGaleriaAccessoryViewProps: ExpoSwiftUI.ViewProps {
@Field var author: String = ""
@Field var avatarUrl: URL?
@Field var publishedAt: Date = .now
@@ -18,7 +18,7 @@ class ExpoEntryGaleriaAccessoryViewProps: ExpoSwiftUI.ViewProps {
struct ExpoEntryGaleriaAccessoryView: ExpoSwiftUI.View {
- @EnvironmentObject var props: ExpoEntryGaleriaAccessoryViewProps
+ @ObservedObject var props: ExpoEntryGaleriaAccessoryViewProps
var body: some View {
let author = props.author
@@ -82,7 +82,7 @@ struct EntryGaleriaAccessoryView: View {
}
.padding(.horizontal, 16)
.padding(.top, 16)
-// Spacer()
+ // Spacer()
ScrollView {
WebViewManager.swiftUIView.frame(height: WebViewManager.state.contentHeight)
@@ -117,5 +117,3 @@ struct EntryGaleriaAccessoryView: View {
.edgesIgnoringSafeArea(.all)
}
}
-
-
diff --git a/apps/mobile/native/tsconfig.json b/apps/mobile/native/tsconfig.json
deleted file mode 100644
index cbe9e1971..000000000
--- a/apps/mobile/native/tsconfig.json
+++ /dev/null
@@ -1,9 +0,0 @@
-// @generated by expo-module-scripts
-{
- "extends": "expo-module-scripts/tsconfig.base",
- "compilerOptions": {
- "outDir": "./build"
- },
- "include": ["./src"],
- "exclude": ["**/__mocks__/*", "**/__tests__/*", "**/__rsc_tests__/*"]
-}
diff --git a/apps/mobile/package.json b/apps/mobile/package.json
index 58049049f..cdf4da20a 100644
--- a/apps/mobile/package.json
+++ b/apps/mobile/package.json
@@ -19,7 +19,7 @@
},
"dependencies": {
"@better-auth/expo": "1.2.7",
- "@expo/metro-runtime": "4.0.1",
+ "@expo/metro-runtime": "5.0.4",
"@expo/react-native-action-sheet": "4.1.1",
"@follow/components": "workspace:*",
"@follow/constants": "workspace:*",
@@ -33,15 +33,15 @@
"@hookform/resolvers": "4.1.3",
"@openpanel/sdk": "1.0.0",
"@react-native-community/image-editor": "4.3.0",
- "@react-native-firebase/analytics": "22.0.0",
- "@react-native-firebase/app": "22.0.0",
- "@react-native-firebase/app-check": "22.0.0",
- "@react-native-firebase/crashlytics": "22.0.0",
- "@react-native-firebase/messaging": "22.0.0",
+ "@react-native-firebase/analytics": "22.1.0",
+ "@react-native-firebase/app": "22.1.0",
+ "@react-native-firebase/app-check": "22.1.0",
+ "@react-native-firebase/crashlytics": "22.1.0",
+ "@react-native-firebase/messaging": "22.1.0",
"@react-native-masked-view/masked-view": "0.3.2",
"@react-native-menu/menu": "1.2.3",
"@react-native-picker/picker": "2.11.0",
- "@shopify/flash-list": "1.8.0",
+ "@shopify/flash-list": "1.7.6",
"@tanstack/query-sync-storage-persister": "5.74.7",
"@tanstack/react-query": "5.74.7",
"@tanstack/react-query-persist-client": "5.74.7",
@@ -51,38 +51,38 @@
"dayjs": "1.11.13",
"dnum": "2.14.0",
"es-toolkit": "1.36.0",
- "expo": "52.0.46",
- "expo-apple-authentication": "7.1.3",
- "expo-application": "6.0.2",
- "expo-background-fetch": "13.0.6",
- "expo-blur": "14.0.3",
- "expo-build-properties": "0.13.2",
- "expo-clipboard": "7.0.1",
- "expo-constants": "17.0.8",
- "expo-dev-client": "5.0.20",
- "expo-device": "7.0.3",
- "expo-document-picker": "13.0.3",
- "expo-file-system": "18.0.12",
- "expo-haptics": "14.0.1",
- "expo-image": "2.0.7",
- "expo-image-manipulator": "13.0.6",
- "expo-image-picker": "~16.0.6",
- "expo-linear-gradient": "14.0.2",
- "expo-linking": "7.0.5",
- "expo-localization": "16.0.1",
- "expo-media-library": "17.0.6",
- "expo-notifications": "0.29.14",
- "expo-secure-store": "14.0.1",
- "expo-sharing": "13.0.1",
- "expo-splash-screen": "0.29.24",
- "expo-sqlite": "15.1.4",
- "expo-status-bar": "2.0.1",
- "expo-symbols": "0.2.2",
- "expo-system-ui": "4.0.9",
- "expo-task-manager": "12.0.6",
- "expo-updates": "0.27.4",
- "expo-video": "2.0.6",
- "expo-web-browser": "14.0.2",
+ "expo": "53.0.4",
+ "expo-apple-authentication": "7.2.4",
+ "expo-application": "6.1.4",
+ "expo-background-fetch": "13.1.5",
+ "expo-blur": "14.1.4",
+ "expo-build-properties": "0.14.6",
+ "expo-clipboard": "7.1.4",
+ "expo-constants": "17.1.4",
+ "expo-dev-client": "5.1.7",
+ "expo-device": "7.1.4",
+ "expo-document-picker": "13.1.5",
+ "expo-file-system": "18.1.8",
+ "expo-haptics": "14.1.4",
+ "expo-image": "2.1.6",
+ "expo-image-manipulator": "13.1.5",
+ "expo-image-picker": "~16.1.4",
+ "expo-linear-gradient": "14.1.4",
+ "expo-linking": "7.1.4",
+ "expo-localization": "16.1.5",
+ "expo-media-library": "17.1.6",
+ "expo-notifications": "0.31.1",
+ "expo-secure-store": "14.2.3",
+ "expo-sharing": "13.1.5",
+ "expo-splash-screen": "0.30.7",
+ "expo-sqlite": "15.2.9",
+ "expo-status-bar": "2.2.3",
+ "expo-symbols": "0.4.4",
+ "expo-system-ui": "5.0.6",
+ "expo-task-manager": "13.1.5",
+ "expo-updates": "0.28.11",
+ "expo-video": "2.1.8",
+ "expo-web-browser": "14.1.6",
"franc-min": "6.2.0",
"hono": "4.7.7",
"i18next": "25.0.1",
@@ -93,26 +93,26 @@
"nativewind": "4.1.23",
"ofetch": "1.4.1",
"qrcode": "1.5.4",
- "react": "18.3.1",
- "react-dom": "18.3.1",
+ "react": "19.0.0",
+ "react-dom": "19.0.0",
"react-error-boundary": "5.0.0",
"react-hook-form": "7.56.1",
"react-i18next": "15.5.1",
- "react-native": "0.77.2",
+ "react-native": "0.79.1",
"react-native-awesome-slider": "2.9.0",
"react-native-bouncy-checkbox": "4.1.2",
"react-native-color-matrix-image-filters": "7.0.2",
"react-native-edge-to-edge": "1.6.0",
- "react-native-gesture-handler": "2.25.0",
+ "react-native-gesture-handler": "2.24.0",
"react-native-image-colors": "2.4.0",
"react-native-ios-context-menu": "3.1.1",
- "react-native-ios-utilities": "5.1.4",
+ "react-native-ios-utilities": "5.1.5",
"react-native-keyboard-controller": "1.17.0",
"react-native-otp-entry": "1.8.4",
- "react-native-pager-view": "6.7.0",
+ "react-native-pager-view": "6.7.1",
"react-native-reanimated": "3.17.4",
"react-native-root-siblings": "5.0.1",
- "react-native-safe-area-context": "5.4.0",
+ "react-native-safe-area-context": "5.3.0",
"react-native-screens": "4.10.0",
"react-native-sheet-transitions": "0.1.2",
"react-native-svg": "15.11.2",
@@ -132,7 +132,7 @@
"devDependencies": {
"@babel/core": "7.26.10",
"@follow/configs": "workspace:*",
- "@types/react": "18.3.12",
+ "@types/react": "19.1.3",
"babel-plugin-inline-import": "3.0.0",
"babel-plugin-module-resolver": "5.0.2",
"drizzle-kit": "0.31.0",
@@ -140,7 +140,8 @@
"expo-drizzle-studio-plugin": "0.1.2",
"nbump": "2.1.2",
"postcss": "8.5.3",
- "sf-symbols-typescript": "2.1.0"
+ "sf-symbols-typescript": "2.1.0",
+ "typescript": "catalog:"
},
"appName": "Folo",
"expo": {
diff --git a/apps/mobile/src/components/common/ErrorBoundary.tsx b/apps/mobile/src/components/common/ErrorBoundary.tsx
index c58d98658..658698769 100644
--- a/apps/mobile/src/components/common/ErrorBoundary.tsx
+++ b/apps/mobile/src/components/common/ErrorBoundary.tsx
@@ -1,5 +1,6 @@
import { useTypeScriptHappyCallback } from "@follow/hooks"
import { getCrashlytics, recordError } from "@react-native-firebase/crashlytics"
+import type { FC } from "react"
import { createElement, useEffect } from "react"
import { ErrorBoundary as ReactErrorBoundary } from "react-error-boundary"
import { Text, View } from "react-native"
@@ -9,7 +10,7 @@ export const ErrorBoundary = ({
fallbackRender,
}: {
children: React.ReactNode
- fallbackRender?: (props: { error: Error; resetError: () => void }) => React.ReactNode
+ fallbackRender: FC<{ error: Error; resetError: () => void }>
}) => {
return (
= ({
}
const id = React.useId()
- const { swipeableOpenedId } = React.useContext(SwipeableGroupContext)
+ const { swipeableOpenedId } = React.use(SwipeableGroupContext)
const setAtom = useSetAtom(swipeableOpenedId)
const isOpened = useAtomValue(
@@ -204,7 +204,7 @@ export const SwipeableGroupProvider = ({ children }: { children: React.ReactNode
[],
)
- return {children}
+ return {children}
}
const rightActionThreshold = -100
diff --git a/apps/mobile/src/components/common/ThemedBlurView.tsx b/apps/mobile/src/components/common/ThemedBlurView.tsx
index 1ff72e9fe..794011105 100644
--- a/apps/mobile/src/components/common/ThemedBlurView.tsx
+++ b/apps/mobile/src/components/common/ThemedBlurView.tsx
@@ -1,11 +1,14 @@
import type { BlurViewProps } from "expo-blur"
import { BlurView } from "expo-blur"
import { useColorScheme } from "nativewind"
-import { forwardRef } from "react"
import { Platform, StyleSheet, View } from "react-native"
import { useColor } from "react-native-uikit-colors"
-export const ThemedBlurView = forwardRef(({ tint, ...rest }, ref) => {
+export const ThemedBlurView = ({
+ ref,
+ tint,
+ ...rest
+}: BlurViewProps & { ref?: React.Ref }) => {
const { colorScheme } = useColorScheme()
const background = useColor("systemBackground")
@@ -30,4 +33,4 @@ export const ThemedBlurView = forwardRef(({ tint, ...re
])}
/>
)
-})
+}
diff --git a/apps/mobile/src/components/layouts/contexts/ModalScrollViewContext.ts b/apps/mobile/src/components/layouts/contexts/ModalScrollViewContext.ts
index e8311acca..aa0499763 100644
--- a/apps/mobile/src/components/layouts/contexts/ModalScrollViewContext.ts
+++ b/apps/mobile/src/components/layouts/contexts/ModalScrollViewContext.ts
@@ -1,4 +1,4 @@
-import { createContext, useContext } from "react"
+import { createContext, use } from "react"
import type { ScrollView } from "react-native"
import type { AnimatedRef, SharedValue } from "react-native-reanimated"
@@ -9,7 +9,7 @@ interface ModalScrollViewContextType {
export const ModalScrollViewContext = createContext(null!)
export const useModalScrollViewContext = () => {
- const context = useContext(ModalScrollViewContext)
+ const context = use(ModalScrollViewContext)
if (!context) {
throw new Error("ModalScrollViewContext not found")
}
diff --git a/apps/mobile/src/components/layouts/header/NavigationHeader.tsx b/apps/mobile/src/components/layouts/header/NavigationHeader.tsx
index 734826c61..44ae26c34 100644
--- a/apps/mobile/src/components/layouts/header/NavigationHeader.tsx
+++ b/apps/mobile/src/components/layouts/header/NavigationHeader.tsx
@@ -3,8 +3,8 @@ import { EventBus } from "@follow/utils/src/event-bus"
import type { FC, PropsWithChildren, ReactNode } from "react"
import {
createElement,
+ use,
useCallback,
- useContext,
useEffect,
useLayoutEffect,
useMemo,
@@ -84,7 +84,7 @@ const useHideableBottom = (
})
}, [hideableBottomRef, largeHeaderHeight, originalDefaultHeaderHeight])
- const { reAnimatedScrollY } = useContext(ScreenItemContext)!
+ const { reAnimatedScrollY } = use(ScreenItemContext)!
useAnimatedReaction(
() => reAnimatedScrollY.value,
(value) => {
@@ -192,9 +192,9 @@ export const InternalNavigationHeader = ({
const border = useColor("opaqueSeparator")
const opacityAnimated = useSharedValue(0)
- const { reAnimatedScrollY } = useContext(ScreenItemContext)!
+ const { reAnimatedScrollY } = use(ScreenItemContext)!
- const setHeaderHeight = useContext(SetNavigationHeaderHeightContext)
+ const setHeaderHeight = use(SetNavigationHeaderHeightContext)
useAnimatedReaction(
() => reAnimatedScrollY.value,
@@ -323,26 +323,27 @@ export const InternalNavigationHeader = ({
marginHorizontal: titleMarginHorizontal,
}}
>
-
-
{headerTitleAbsolute ? (
) : (
-
+
+
{headerTitle}
{/* Only show loading indicator when headerTitle is not absolute */}
- {!headerTitleAbsolute && isLoading && (
-
-
-
- )}
+
+ {!headerTitleAbsolute && isLoading && (
+
+
+
+ )}
+
+
)}
-
{/* Right */}
diff --git a/apps/mobile/src/components/layouts/header/hooks.ts b/apps/mobile/src/components/layouts/header/hooks.ts
index e393d2835..d6ce7e666 100644
--- a/apps/mobile/src/components/layouts/header/hooks.ts
+++ b/apps/mobile/src/components/layouts/header/hooks.ts
@@ -1,9 +1,9 @@
-import { useContext } from "react"
+import { use } from "react"
import { NavigationHeaderHeightContext } from "../views/NavigationHeaderContext"
export const useNavigationHeaderHeight = () => {
- const headerHeight = useContext(NavigationHeaderHeightContext)
+ const headerHeight = use(NavigationHeaderHeightContext)
if (!headerHeight) {
throw new Error("NavigationHeaderHeightContext is not found")
}
diff --git a/apps/mobile/src/components/layouts/tabbar/BottomTabHeightProvider.tsx b/apps/mobile/src/components/layouts/tabbar/BottomTabHeightProvider.tsx
index b720c2040..38dbc40d6 100644
--- a/apps/mobile/src/components/layouts/tabbar/BottomTabHeightProvider.tsx
+++ b/apps/mobile/src/components/layouts/tabbar/BottomTabHeightProvider.tsx
@@ -8,10 +8,8 @@ export const BottomTabHeightProvider = ({ children }: { children: React.ReactNod
const [height, setHeight] = useState(0)
return (
-
-
- {children}
-
-
+
+ {children}
+
)
}
diff --git a/apps/mobile/src/components/layouts/tabbar/BottomTabProvider.tsx b/apps/mobile/src/components/layouts/tabbar/BottomTabProvider.tsx
index ae5d79f4b..f38823489 100644
--- a/apps/mobile/src/components/layouts/tabbar/BottomTabProvider.tsx
+++ b/apps/mobile/src/components/layouts/tabbar/BottomTabProvider.tsx
@@ -36,14 +36,14 @@ export const BottomTabProvider = ({
)
return (
-
- ({ opacity }), [opacity])}>
-
-
+
+ ({ opacity }), [opacity])}>
+
+
{children}
-
-
-
-
+
+
+
+
)
}
diff --git a/apps/mobile/src/components/layouts/tabbar/BottomTabs.tsx b/apps/mobile/src/components/layouts/tabbar/BottomTabs.tsx
index 167072c65..0fd79b9c2 100644
--- a/apps/mobile/src/components/layouts/tabbar/BottomTabs.tsx
+++ b/apps/mobile/src/components/layouts/tabbar/BottomTabs.tsx
@@ -1,4 +1,4 @@
-import { useContext, useRef } from "react"
+import { use, useRef } from "react"
import { BottomTabBarBackgroundContext } from "./contexts/BottomTabBarBackgroundContext"
import { useNavigationScrollToTop } from "./hooks"
@@ -7,7 +7,7 @@ import { Tabbar } from "./Tabbar"
export const BottomTabs = () => {
const currentIndex = useRef(undefined)
const scrollToTop = useNavigationScrollToTop()
- const { opacity } = useContext(BottomTabBarBackgroundContext)
+ const { opacity } = use(BottomTabBarBackgroundContext)
return (
{
diff --git a/apps/mobile/src/components/layouts/tabbar/Tabbar.tsx b/apps/mobile/src/components/layouts/tabbar/Tabbar.tsx
index 61a868204..378b5f6ae 100644
--- a/apps/mobile/src/components/layouts/tabbar/Tabbar.tsx
+++ b/apps/mobile/src/components/layouts/tabbar/Tabbar.tsx
@@ -1,6 +1,6 @@
import { useAtom, useAtomValue } from "jotai"
import type { FC } from "react"
-import { memo, useCallback, useContext, useEffect, useMemo } from "react"
+import { memo, use, useCallback, useEffect, useMemo } from "react"
import type { StyleProp, TextStyle } from "react-native"
import { Platform, Pressable, StyleSheet, Text, View } from "react-native"
import Animated, {
@@ -28,12 +28,12 @@ import { BottomTabBarVisibleContext } from "./contexts/BottomTabBarVisibleContex
export const Tabbar: FC<{
onPress?: (index: number) => void
}> = ({ onPress: onPressProp }) => {
- const setTabBarHeight = useContext(SetBottomTabBarHeightContext)
+ const setTabBarHeight = use(SetBottomTabBarHeightContext)
const insets = useSafeAreaInsets()
- const tabBarVisible = useContext(BottomTabBarVisibleContext)
+ const tabBarVisible = use(BottomTabBarVisibleContext)
- const tabContext = useContext(BottomTabContext)
+ const tabContext = use(BottomTabContext)
const tabScreens = useAtomValue(tabContext.tabScreensAtom)
const [selectedIndex, setSelectedIndex] = useAtom(tabContext.currentIndexAtom)
const translateY = useSharedValue(0)
@@ -247,7 +247,7 @@ const styles = StyleSheet.create({
})
const TabBarBackground = () => {
- const { opacity } = useContext(BottomTabBarBackgroundContext)
+ const { opacity } = use(BottomTabBarBackgroundContext)
const animatedStyle = useAnimatedStyle(() => ({
opacity: opacity.value,
diff --git a/apps/mobile/src/components/layouts/tabbar/hooks.ts b/apps/mobile/src/components/layouts/tabbar/hooks.ts
index 3404cd076..2a2232114 100644
--- a/apps/mobile/src/components/layouts/tabbar/hooks.ts
+++ b/apps/mobile/src/components/layouts/tabbar/hooks.ts
@@ -1,5 +1,5 @@
import type { RefObject } from "react"
-import { useCallback, useContext, useEffect, useLayoutEffect, useRef } from "react"
+import { use, useCallback, useEffect, useLayoutEffect, useRef } from "react"
import type { FlatList, ScrollView } from "react-native"
import { findNodeHandle, Platform } from "react-native"
@@ -14,7 +14,7 @@ import { BottomTabBarBackgroundContext } from "./contexts/BottomTabBarBackground
import { BottomTabBarHeightContext } from "./contexts/BottomTabBarHeightContext"
export const useBottomTabBarHeight = () => {
- const height = useContext(BottomTabBarHeightContext)
+ const height = use(BottomTabBarHeightContext)
return height
}
@@ -57,7 +57,7 @@ export const useNavigationScrollToTop = (
export const useRegisterNavigationScrollView = (active = true) => {
const scrollViewRef = useRef(null)
const tabScreenIsFocused = useScreenIsAppeared()
- const setAttachNavigationScrollViewRef = useContext(SetAttachNavigationScrollViewContext)
+ const setAttachNavigationScrollViewRef = use(SetAttachNavigationScrollViewContext)
useEffect(() => {
if (!active) return
@@ -78,7 +78,7 @@ export const useRegisterNavigationScrollView = (active = true) => {
}
export const useResetTabOpacityWhenFocused = () => {
- const { opacity } = useContext(BottomTabBarBackgroundContext)
+ const { opacity } = use(BottomTabBarBackgroundContext)
const tabScreenIsFocus = useTabScreenIsFocused()
useLayoutEffect(() => {
if (tabScreenIsFocus) {
diff --git a/apps/mobile/src/components/layouts/views/SafeNavigationScrollView.tsx b/apps/mobile/src/components/layouts/views/SafeNavigationScrollView.tsx
index 100029a4c..bba50ae88 100644
--- a/apps/mobile/src/components/layouts/views/SafeNavigationScrollView.tsx
+++ b/apps/mobile/src/components/layouts/views/SafeNavigationScrollView.tsx
@@ -1,14 +1,7 @@
import { useTypeScriptHappyCallback } from "@follow/hooks"
import { useSetAtom, useStore } from "jotai"
import type { PropsWithChildren } from "react"
-import {
- forwardRef,
- useContext,
- useImperativeHandle,
- useLayoutEffect,
- useRef,
- useState,
-} from "react"
+import { use, useImperativeHandle, useLayoutEffect, useRef, useState } from "react"
import type { ScrollView, ScrollViewProps, StyleProp, ViewStyle } from "react-native"
import { findNodeHandle, View } from "react-native"
import type { SharedValue } from "react-native-reanimated"
@@ -51,104 +44,100 @@ type SafeNavigationScrollViewProps = Omit & {
export interface ForwardedSafeNavigationScrollView extends ScrollView {
checkScrollToBottom: () => void
}
-export const SafeNavigationScrollView = forwardRef(
- (
- {
- children,
- onScroll,
- withBottomInset = false,
- withTopInset = false,
- reanimatedScrollY,
- contentViewClassName,
- contentViewStyle,
- Header,
- ...props
- },
- forwardedRef,
- ) => {
- const insets = useSafeAreaInsets()
- const tabBarHeight = useBottomTabBarHeight()
+export const SafeNavigationScrollView = ({
+ ref: forwardedRef,
+ children,
+ onScroll,
+ withBottomInset = false,
+ withTopInset = false,
+ reanimatedScrollY,
+ contentViewClassName,
+ contentViewStyle,
+ Header,
+ ...props
+}: SafeNavigationScrollViewProps & { ref?: React.Ref }) => {
+ const insets = useSafeAreaInsets()
+ const tabBarHeight = useBottomTabBarHeight()
- const frame = useSafeAreaFrame()
- const sheetModal = useScreenIsInSheetModal()
- const [headerHeight, setHeaderHeight] = useState(() =>
- getDefaultHeaderHeight(frame, sheetModal, insets.top),
- )
- const screenCtxValue = useContext(ScreenItemContext)
+ const frame = useSafeAreaFrame()
+ const sheetModal = useScreenIsInSheetModal()
+ const [headerHeight, setHeaderHeight] = useState(() =>
+ getDefaultHeaderHeight(frame, sheetModal, insets.top),
+ )
+ const screenCtxValue = use(ScreenItemContext)
- const ref = useRef(null)
- useImperativeHandle(forwardedRef, () => {
- return Object.assign({}, ref.current!, {
- checkScrollToBottom,
- })
+ const ref = useRef(null)
+ useImperativeHandle(forwardedRef, () => {
+ return Object.assign({}, ref.current!, {
+ checkScrollToBottom,
})
- const { opacity } = useContext(BottomTabBarBackgroundContext)
+ })
+ const { opacity } = use(BottomTabBarBackgroundContext)
- const inTabScreen = useInTabScreen()
+ const inTabScreen = useInTabScreen()
- function checkScrollToBottom() {
- if (!inTabScreen) {
- return
- }
- const handle = findNodeHandle(ref.current!)
- if (!handle) {
- return
- }
-
- isScrollToEnd(handle).then((isEnd) => {
- opacity.value = isEnd ? 0 : 1
- })
+ function checkScrollToBottom() {
+ if (!inTabScreen) {
+ return
+ }
+ const handle = findNodeHandle(ref.current!)
+ if (!handle) {
+ return
}
- const scrollHandler = useAnimatedScrollHandler({
- onScroll: (event) => {
- if (reanimatedScrollY) {
- reanimatedScrollY.value = event.contentOffset.y
- }
- runOnJS(checkScrollToBottom)()
- screenCtxValue.reAnimatedScrollY.value = event.contentOffset.y
- },
+ isScrollToEnd(handle).then((isEnd) => {
+ opacity.value = isEnd ? 0 : 1
})
+ }
+ const scrollHandler = useAnimatedScrollHandler({
+ onScroll: (event) => {
+ if (reanimatedScrollY) {
+ reanimatedScrollY.value = event.contentOffset.y
+ }
- return (
-
-
- {Header}
- {
- screenCtxValue.scrollViewContentHeight.value = h
- },
- [screenCtxValue.scrollViewContentHeight],
- )}
- onLayout={useTypeScriptHappyCallback(
- (e) => {
- screenCtxValue.scrollViewHeight.value = e.nativeEvent.layout.height - headerHeight
- checkScrollToBottom()
- },
- [screenCtxValue.scrollViewHeight, headerHeight],
- )}
- automaticallyAdjustContentInsets={false}
- automaticallyAdjustsScrollIndicatorInsets={false}
- scrollIndicatorInsets={{
- top: headerHeight,
- bottom: tabBarHeight,
- }}
- {...props}
- >
-
-
- {children}
-
-
-
-
-
- )
- },
-)
+ runOnJS(checkScrollToBottom)()
+ screenCtxValue.reAnimatedScrollY.value = event.contentOffset.y
+ },
+ })
+
+ return (
+
+
+ {Header}
+ {
+ screenCtxValue.scrollViewContentHeight.value = h
+ },
+ [screenCtxValue.scrollViewContentHeight],
+ )}
+ onLayout={useTypeScriptHappyCallback(
+ (e) => {
+ screenCtxValue.scrollViewHeight.value = e.nativeEvent.layout.height - headerHeight
+ checkScrollToBottom()
+ },
+ [screenCtxValue.scrollViewHeight, headerHeight],
+ )}
+ automaticallyAdjustContentInsets={false}
+ automaticallyAdjustsScrollIndicatorInsets={false}
+ scrollIndicatorInsets={{
+ top: headerHeight,
+ bottom: tabBarHeight,
+ }}
+ {...props}
+ >
+
+
+ {children}
+
+
+
+
+
+ )
+}
export const NavigationBlurEffectHeaderView = ({
headerHideableBottom,
@@ -197,10 +186,10 @@ export const NavigationBlurEffectHeader = ({
headerHideableBottom?: () => React.ReactNode
headerTitleAbsolute?: boolean
}) => {
- const setHeaderHeight = useContext(SetNavigationHeaderHeightContext)
+ const setHeaderHeight = use(SetNavigationHeaderHeightContext)
const hideableBottom = headerHideableBottom?.()
- const screenCtxValue = useContext(ScreenItemContext)
+ const screenCtxValue = use(ScreenItemContext)
const setSlot = useSetAtom(screenCtxValue.Slot)
const store = useStore()
@@ -208,7 +197,7 @@ export const NavigationBlurEffectHeader = ({
setSlot({
...store.get(screenCtxValue.Slot),
header: (
-
+
-
+
),
})
}, [
diff --git a/apps/mobile/src/components/native/PagerView/index.tsx b/apps/mobile/src/components/native/PagerView/index.tsx
index f9a3c0782..0a20c339b 100644
--- a/apps/mobile/src/components/native/PagerView/index.tsx
+++ b/apps/mobile/src/components/native/PagerView/index.tsx
@@ -1,13 +1,7 @@
import { cn } from "@follow/utils"
import { cssInterop } from "nativewind"
-import type {
- FC,
- ForwardRefExoticComponent,
- PropsWithoutRef,
- ReactNode,
- RefAttributes,
-} from "react"
-import { forwardRef, useEffect, useImperativeHandle, useRef, useState } from "react"
+import type { FC, ReactNode, Ref } from "react"
+import { useEffect, useImperativeHandle, useRef, useState } from "react"
import type { StyleProp, ViewStyle } from "react-native"
import { StyleSheet } from "react-native"
@@ -33,27 +27,26 @@ interface PagerViewProps {
containerStyle?: StyleProp
containerClassName?: string
initialPageIndex?: number
+ ref?: Ref
}
-const PagerViewImpl: FC = (
- {
- pageContainerStyle,
- pageContainerClassName,
- renderPage,
- pageTotal,
- pageGap,
- transitionStyle,
- containerStyle,
- containerClassName,
- page,
- onPageChange,
- onScroll,
- onScrollBegin,
- onScrollEnd,
- onPageWillAppear,
- initialPageIndex,
- },
- ref: any,
-) => {
+export const PagerView: FC = ({
+ pageContainerStyle,
+ pageContainerClassName,
+ renderPage,
+ pageTotal,
+ pageGap,
+ transitionStyle,
+ containerStyle,
+ containerClassName,
+ page,
+ onPageChange,
+ onScroll,
+ onScrollBegin,
+ onScrollEnd,
+ onPageWillAppear,
+ initialPageIndex,
+ ref,
+}) => {
const [currentPage, setCurrentPage] = useState(page ?? 0)
const nativeRef = useRef(null)
@@ -71,7 +64,7 @@ const PagerViewImpl: FC = (
nativeRef.current?.setPage(index)
},
getPage: () => currentPage,
- getState: () => nativeRef.current?.getState(),
+ getState: () => nativeRef.current?.getState() ?? "idle",
}))
return (
= (
)
}
-
-export const PagerView = forwardRef(PagerViewImpl as any) as ForwardRefExoticComponent<
- PropsWithoutRef & RefAttributes
->
diff --git a/apps/mobile/src/components/native/PagerView/specs.ts b/apps/mobile/src/components/native/PagerView/specs.ts
index 2f46f88f6..251a91a7a 100644
--- a/apps/mobile/src/components/native/PagerView/specs.ts
+++ b/apps/mobile/src/components/native/PagerView/specs.ts
@@ -4,7 +4,7 @@ import type { NativeSyntheticEvent, ViewProps } from "react-native"
export const EnhancePagerView = requireNativeView<
ViewProps &
PagerProps & {
- ref: React.RefObject
+ ref: React.RefObject