Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"visionos": false,
"expoGo": false,
"fireos": false,
"horizon": false,
"vegaos": false,
"newArchitecture": false,
"configPlugin": false,
Expand Down Expand Up @@ -131,6 +132,8 @@
**(boolean)** - works with [Expo Go](https://docs.expo.dev/get-started/expo-go/) — an open-source sandbox app, without using [dev clients](https://docs.expo.dev/develop/development-builds/introduction/) or [prebuild](https://docs.expo.dev/workflow/continuous-native-generation/).
- #### `fireos`
**(boolean)** - works on Amazon Fire OS.
- #### `horizon`
**(boolean)** - works on Meta Horizon OS.
- #### `vegaos`
**(boolean|string)** - works with [Vega OS](https://developer.amazon.com/apps-and-games/vega). It can also be a string containing npm package name, if a separate/additional package is required for full support.

Expand Down
18 changes: 9 additions & 9 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion components/CompatibilityTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function CompatibilityTags({ library }: Props) {
/>
) : null
)}
{(library.expoGo || library.fireos || library.vegaos) && (
{(library.expoGo || library.fireos || library.vegaos || library.horizon) && (
<Tooltip
side="bottom"
trigger={
Expand All @@ -77,6 +77,7 @@ export function CompatibilityTags({ library }: Props) {
<ul style={styles.compatibilityList}>
{library.expoGo && <li>Works with Expo Go</li>}
{library.fireos && <li>Works with Fire OS</li>}
{library.horizon && <li>Works with Meta Horizon OS</li>}
{library.vegaos && typeof library.vegaos === 'boolean' && <li>Works with Vega OS</li>}
{library.vegaos && typeof library.vegaos === 'string' && (
<li>
Expand Down
4 changes: 4 additions & 0 deletions components/Filters/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ export const FILTER_COMPATIBILITY: FilterParamsType[] = [
param: 'fireos',
title: 'Works with Fire OS',
},
{
param: 'horizon',
title: 'Works with Meta Horizon OS',
},
{
param: 'vegaos',
title: 'Works with Vega OS',
Expand Down
1 change: 1 addition & 0 deletions pages/api/libraries/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export default function handler(req: NextApiRequest, res: NextApiResponse) {
macos: parsedQuery.macos,
expoGo: parsedQuery.expoGo,
fireos: parsedQuery.fireos,
horizon: parsedQuery.horizon,
tvos: parsedQuery.tvos,
visionos: parsedQuery.visionos,
vegaos: parsedQuery.vegaos,
Expand Down
19 changes: 19 additions & 0 deletions react-native-libraries.json
Original file line number Diff line number Diff line change
Expand Up @@ -17949,5 +17949,24 @@
"ios": true,
"android": true,
"newArchitecture": true
},
{
"githubUrl": "https://github.com/software-mansion-labs/expo-horizon/tree/main/expo-horizon-core",
"examples": ["https://github.com/software-mansion-labs/expo-horizon/tree/main/example"],
"android": true,
"horizon": true,
"newArchitecture": true
},
{
"githubUrl": "https://github.com/software-mansion-labs/expo-horizon/tree/main/expo-horizon-location",
"android": true,
"horizon": true,
"newArchitecture": true
},
{
"githubUrl": "https://github.com/software-mansion-labs/expo-horizon/tree/main/expo-horizon-notifications",
"android": true,
"horizon": true,
"newArchitecture": true
}
]
9 changes: 9 additions & 0 deletions react-native-libraries.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@
true
]
},
"horizon": {
"$id": "#/items/properties/horizon",
"type": "boolean",
"title": "Package is compatible with Meta Horizon OS",
"default": false,
"examples": [
true
]
},
"vegaos": {
"$id": "#/items/properties/vegaos",
"type": [
Expand Down
2 changes: 2 additions & 0 deletions types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export type Query = {
tvos?: string;
visionos?: string;
vegaos?: string;
horizon?: string;
web?: string;
windows?: string;
order?: QueryOrder;
Expand Down Expand Up @@ -137,6 +138,7 @@ export type LibraryDataEntryType = {
windows?: boolean;
macos?: boolean;
fireos?: boolean;
horizon?: boolean;
tvos?: boolean;
visionos?: boolean;
vegaos?: boolean | string;
Expand Down
1 change: 1 addition & 0 deletions util/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const VALID_ENTRY_KEYS = new Set([
'windows',
'macos',
'fireos',
'horizon',
'tvos',
'visionos',
'vegaos',
Expand Down
4 changes: 4 additions & 0 deletions util/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ export function handleFilterLibraries({
return false;
}

if (support.horizon && !library.horizon) {
return false;
}

if (support.expoGo && !library.expoGo) {
return false;
}
Expand Down