expo-rollup module. Expo and React Native explains how to install it. Each function wraps a call of the Swift SDK, and each value has the fields of its Swift type, in the shapes below. The package ships these TypeScript types.
Setup
configure
missingRequirement when the app lacks something the SDK needs, and with simulatorUnsupported in the iOS Simulator.
requestPhotoAccess
startIndexing
pauseIndexing
resumeIndexing. Indexing under way stops, and what it finished stays searchable. Nothing is indexed, in the foreground or the background, not even new photos. The pause lasts across launches, and reset ends it. While paused, startIndexing does nothing.
resumeIndexing
startIndexing does. Call it from a user action, such as a button press.
isIndexingPaused
getIndexOptions
reset
startIndexing, resumeIndexing or the next launch. To index again without downloading the models again, use deleteIndex.
deleteIndex
startIndexing, resumeIndexing or the next launch.
Indexing state
useIndexingState
null until the first state arrives, and always null where Rollup is not available.
getIndexingState
addIndexingStateListener
listener with the current state and every change after it, until you call remove().
addIndexedBatchListener
listener with the photos each part of a run makes searchable, from now on, until you call remove(). Use it to add photos to the screen as they are indexed, instead of searching again.
isSearchable
preparing, indexing, ready, unfinished or paused, with searchable true.
Search, query and profile
search
people keeps only photos with every one of those people in them. limit is how many results to return: 500 (defaultSearchLimit) when left out, null for all of them. offset skips that many, for the next page. totalCount counts every match, so you can tell when results were cut. Pages can shift while indexing adds photos: if a page’s totalCount differs from the first page’s, start again from offset 0. See Search.
query
profile
null where their life does not say, with the photos behind each filled field. Pass the schema as an object. Same permission as query. See Profile.
facets
limit defaults to 16 (up to 64), samples to 4 (up to 32). See Facet.
People and interests
people
people on. People in only one photo are left out unless includeAll. See Person.
photosOf
interests
now (the default) returns active and emerging interests; lifetime adds lapsed ones. See Interest.
activityTaxonomy
activities and interests use.
Availability
isAvailable is true on iOS 26 or later with the native module linked. Elsewhere, including iOS 16 to 25, it is false, sdkVersion is null, and every call rejects with unsupportedPlatform.
Helpers
indexWindow.growing reaches back from and keeps adding new photos; nothing ages out. indexWindow.sliding keeps only the most recent span, and removes older photos as time passes.
Types
Enums are objects tagged bytype. Dates are ISO 8601 strings.
IndexingState
type. IndexingState explains each field. Later versions can add states, so handle a default case.
IndexedBatch and Facet
PhotoAccess
IndexOptionsInput and IndexOptions
configure takes the fields to change; every field you leave out keeps the SDK’s default. getIndexOptions returns every field. See Index options for what each one does.
SearchResults
Person, Interest and ActivityNode
Answer
Profile
json is a parsed object, not a string. Pass your own type to profile<T>() to type it. Keys of evidence are JSON Pointers, such as /food/favorite_cuisine.
JSONValue
Errors
Every call rejects with aRollupError:
message is for developers, not for the person. A failed indexing state carries the same fields as a plain object (RollupErrorBody).