Skip to content

Commit 4812f62

Browse files
authored
add Meta Horizon OS compatibility and few libs (#1972)
1 parent 20dff18 commit 4812f62

File tree

10 files changed

+54
-10
lines changed

10 files changed

+54
-10
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"visionos": false,
5959
"expoGo": false,
6060
"fireos": false,
61+
"horizon": false,
6162
"vegaos": false,
6263
"newArchitecture": false,
6364
"configPlugin": false,
@@ -131,6 +132,8 @@
131132
**(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/).
132133
- #### `fireos`
133134
**(boolean)** - works on Amazon Fire OS.
135+
- #### `horizon`
136+
**(boolean)** - works on Meta Horizon OS.
134137
- #### `vegaos`
135138
**(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.
136139

bun.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

components/CompatibilityTags.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function CompatibilityTags({ library }: Props) {
6464
/>
6565
) : null
6666
)}
67-
{(library.expoGo || library.fireos || library.vegaos) && (
67+
{(library.expoGo || library.fireos || library.vegaos || library.horizon) && (
6868
<Tooltip
6969
side="bottom"
7070
trigger={
@@ -77,6 +77,7 @@ export function CompatibilityTags({ library }: Props) {
7777
<ul style={styles.compatibilityList}>
7878
{library.expoGo && <li>Works with Expo Go</li>}
7979
{library.fireos && <li>Works with Fire OS</li>}
80+
{library.horizon && <li>Works with Meta Horizon OS</li>}
8081
{library.vegaos && typeof library.vegaos === 'boolean' && <li>Works with Vega OS</li>}
8182
{library.vegaos && typeof library.vegaos === 'string' && (
8283
<li>

components/Filters/helpers.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ export const FILTER_COMPATIBILITY: FilterParamsType[] = [
8787
param: 'fireos',
8888
title: 'Works with Fire OS',
8989
},
90+
{
91+
param: 'horizon',
92+
title: 'Works with Meta Horizon OS',
93+
},
9094
{
9195
param: 'vegaos',
9296
title: 'Works with Vega OS',

pages/api/libraries/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export default function handler(req: NextApiRequest, res: NextApiResponse) {
7373
macos: parsedQuery.macos,
7474
expoGo: parsedQuery.expoGo,
7575
fireos: parsedQuery.fireos,
76+
horizon: parsedQuery.horizon,
7677
tvos: parsedQuery.tvos,
7778
visionos: parsedQuery.visionos,
7879
vegaos: parsedQuery.vegaos,

react-native-libraries.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17949,5 +17949,24 @@
1794917949
"ios": true,
1795017950
"android": true,
1795117951
"newArchitecture": true
17952+
},
17953+
{
17954+
"githubUrl": "https://github.com/software-mansion-labs/expo-horizon/tree/main/expo-horizon-core",
17955+
"examples": ["https://github.com/software-mansion-labs/expo-horizon/tree/main/example"],
17956+
"android": true,
17957+
"horizon": true,
17958+
"newArchitecture": true
17959+
},
17960+
{
17961+
"githubUrl": "https://github.com/software-mansion-labs/expo-horizon/tree/main/expo-horizon-location",
17962+
"android": true,
17963+
"horizon": true,
17964+
"newArchitecture": true
17965+
},
17966+
{
17967+
"githubUrl": "https://github.com/software-mansion-labs/expo-horizon/tree/main/expo-horizon-notifications",
17968+
"android": true,
17969+
"horizon": true,
17970+
"newArchitecture": true
1795217971
}
1795317972
]

react-native-libraries.schema.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,15 @@
7676
true
7777
]
7878
},
79+
"horizon": {
80+
"$id": "#/items/properties/horizon",
81+
"type": "boolean",
82+
"title": "Package is compatible with Meta Horizon OS",
83+
"default": false,
84+
"examples": [
85+
true
86+
]
87+
},
7988
"vegaos": {
8089
"$id": "#/items/properties/vegaos",
8190
"type": [

types/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ export type Query = {
2626
tvos?: string;
2727
visionos?: string;
2828
vegaos?: string;
29+
horizon?: string;
2930
web?: string;
3031
windows?: string;
3132
order?: QueryOrder;
@@ -137,6 +138,7 @@ export type LibraryDataEntryType = {
137138
windows?: boolean;
138139
macos?: boolean;
139140
fireos?: boolean;
141+
horizon?: boolean;
140142
tvos?: boolean;
141143
visionos?: boolean;
142144
vegaos?: boolean | string;

util/Constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const VALID_ENTRY_KEYS = new Set([
99
'windows',
1010
'macos',
1111
'fireos',
12+
'horizon',
1213
'tvos',
1314
'visionos',
1415
'vegaos',

util/search.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,10 @@ export function handleFilterLibraries({
161161
return false;
162162
}
163163

164+
if (support.horizon && !library.horizon) {
165+
return false;
166+
}
167+
164168
if (support.expoGo && !library.expoGo) {
165169
return false;
166170
}

0 commit comments

Comments
 (0)