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
12 changes: 6 additions & 6 deletions patches/react-native@0.88.0.patch
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
diff --git a/types_generated/Libraries/Components/Pressable/Pressable.d.ts b/types_generated/Libraries/Components/Pressable/Pressable.d.ts
index 544f2da9041126d736e4c405a65615803cbaf52b..f0824a90bb4c12847e348c6d179e5c922a35faf8 100644
index c7a51cc5192b45bbe7dbaddb5e5228b121d34072..860161ef3471da82d2b8c53cd0b644eb1d012097 100644
--- a/types_generated/Libraries/Components/Pressable/Pressable.d.ts
+++ b/types_generated/Libraries/Components/Pressable/Pressable.d.ts
@@ -20,6 +20,7 @@ import * as React from "react";
export type PressableInstance = HostInstance;
export type { PressableAndroidRippleConfig };
export interface PressableStateCallbackType {
+ readonly hovered: boolean;
readonly pressed: boolean;
}
type PressableBaseProps = Readonly<{
type PressableStateCallbackTypeCore = Readonly<{
+ hovered: boolean;
pressed: boolean;
}>;
export interface PressableStateCallbackType extends PressableStateCallbackTypeCore {}
10 changes: 9 additions & 1 deletion scripts/fetch-github-data.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { config } from 'dotenv';
import { uniq } from 'es-toolkit/array';
import semverClean from 'semver/functions/clean';
import semverGt from 'semver/functions/gt';

import { type LibraryLicenseType, type LibraryType } from '~/types';
import { isMissingPackageJsonError, MissingPackageJsonError } from '~/util/errors';
Expand Down Expand Up @@ -177,8 +179,14 @@ function createRepoDataWithResponse(json: any, monorepo: boolean): LibraryType['
if (json.packageJson) {
try {
const packageJson = JSON.parse(json.packageJson.text);
const CRNLType = packageJson['create-react-native-library']?.type;
const CRNLVersion = packageJson['create-react-native-library']?.version;

json.newArchitecture = Boolean(packageJson.codegenConfig);
json.newArchitecture =
Boolean(packageJson.codegenConfig) ||
(CRNLType &&
['turbo-module', 'fabric-view', 'nitro-module', 'nitro-view'].includes(CRNLType)) ||
(CRNLVersion && semverGt(semverClean(CRNLVersion) ?? '0.0.0', '0.49.8'));
json.name = packageJson.name;
json.isPackagePrivate = packageJson.private ?? false;
json.registry = packageJson?.publishConfig?.registry ?? undefined;
Expand Down
Loading