Skip to content

Commit d450527

Browse files
authored
update and add few libraries, fix for the CI validation script (#2396)
1 parent 746e28a commit d450527

2 files changed

Lines changed: 41 additions & 14 deletions

File tree

react-native-libraries.json

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,8 @@
845845
{
846846
"githubUrl": "https://github.com/wix-incubator/react-native-autogrow-textinput",
847847
"ios": true,
848-
"android": true
848+
"android": true,
849+
"alternatives": ["react-native-ui-lib"]
849850
},
850851
{
851852
"githubUrl": "https://github.com/jeanpan/react-native-camera-roll-picker",
@@ -1692,7 +1693,8 @@
16921693
"githubUrl": "https://github.com/wix-incubator/react-native-keyboard-input",
16931694
"ios": true,
16941695
"android": true,
1695-
"unmaintained": true
1696+
"unmaintained": true,
1697+
"alternatives": ["react-native-ui-lib"]
16961698
},
16971699
{
16981700
"githubUrl": "https://github.com/kayla-tech/react-native-privacy-snapshot",
@@ -3998,9 +4000,10 @@
39984000
"newArchitecture": true
39994001
},
40004002
{
4001-
"githubUrl": "https://github.com/hyochan/react-native-iap",
4002-
"images": [
4003-
"https://user-images.githubusercontent.com/27461460/52619625-87aa8a80-2ee5-11e9-9aee-6691c34408f3.gif"
4003+
"githubUrl": "https://github.com/hyodotdev/openiap/tree/main/libraries/react-native-iap",
4004+
"examples": [
4005+
"https://github.com/hyodotdev/openiap/tree/main/libraries/react-native-iap/example",
4006+
"https://github.com/hyodotdev/openiap/tree/main/libraries/react-native-iap/example-expo"
40044007
],
40054008
"ios": true,
40064009
"android": true,
@@ -8631,12 +8634,12 @@
86318634
"githubUrl": "https://github.com/b0iq/react-native-place-picker",
86328635
"examples": ["https://github.com/b0iq/react-native-place-picker/tree/main/example"],
86338636
"ios": true,
8634-
"android": true
8637+
"android": true,
8638+
"alternatives": ["expo-location-picker"]
86358639
},
86368640
{
86378641
"githubUrl": "https://github.com/Shopify/react-native-performance/tree/main/packages/react-native-performance",
86388642
"npmPkg": "@shopify/react-native-performance",
8639-
"examples": ["https://github.com/b0iq/react-native-place-picker/tree/main/example"],
86408643
"ios": true,
86418644
"android": true,
86428645
"vegaos": "@amazon-devices/shopify__react-native-performance",
@@ -15656,8 +15659,8 @@
1565615659
"newArchitecture": true
1565715660
},
1565815661
{
15659-
"githubUrl": "https://github.com/hyochan/expo-iap",
15660-
"examples": ["https://github.com/hyochan/expo-iap/tree/main/example"],
15662+
"githubUrl": "https://github.com/hyodotdev/openiap/tree/main/libraries/expo-iap",
15663+
"examples": ["https://github.com/hyodotdev/openiap/tree/main/libraries/expo-iap/example"],
1566115664
"ios": true,
1566215665
"android": true,
1566315666
"newArchitecture": true,
@@ -17536,7 +17539,7 @@
1753617539
"expoGo": true
1753717540
},
1753817541
{
17539-
"githubUrl": "https://github.com/software-mansion-labs/react-native-detour",
17542+
"githubUrl": "https://github.com/software-mansion-labs/react-native-detour/tree/main/packages/react-native-detour",
1754017543
"npmPkg": "@swmansion/react-native-detour",
1754117544
"examples": [
1754217545
"https://github.com/software-mansion-labs/react-native-detour/tree/main/examples/expo-bare",
@@ -20339,7 +20342,8 @@
2033920342
"examples": ["https://github.com/johntips/react-native-infinite-tab-view/tree/main/example"],
2034020343
"ios": true,
2034120344
"android": true,
20342-
"newArchitecture": true
20345+
"newArchitecture": true,
20346+
"alternatives": ["react-native-infinite-material-tab"]
2034320347
},
2034420348
{
2034520349
"githubUrl": "https://github.com/steve228uk/metro-bridge",
@@ -20619,5 +20623,23 @@
2061920623
],
2062020624
"ios": true,
2062120625
"android": true
20626+
},
20627+
{
20628+
"githubUrl": "https://github.com/johntips/react-native-infinite-material-tab",
20629+
"examples": [
20630+
"https://github.com/johntips/react-native-infinite-material-tab/tree/main/example"
20631+
],
20632+
"images": [
20633+
"https://raw.githubusercontent.com/johntips/react-native-infinite-material-tab/main/assets/android.gif",
20634+
"https://raw.githubusercontent.com/johntips/react-native-infinite-material-tab/main/assets/ios.gif"
20635+
],
20636+
"ios": true,
20637+
"android": true
20638+
},
20639+
{
20640+
"githubUrl": "https://github.com/palmcode-ae/expo-location-picker",
20641+
"examples": ["https://github.com/palmcode-ae/expo-location-picker/tree/main/example"],
20642+
"ios": true,
20643+
"android": true
2062220644
}
2062320645
]

scripts/validate-new-entries.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,15 @@ for (let i = 0; i < modifiedEntries.length; i += BATCH_SIZE) {
157157
return false;
158158
}
159159
} else {
160-
console.error(
161-
`${alternative} is not listed in the directory, so it cannot be defined as an alternative for the package.`
160+
const localDataAlternative = libraries.find(
161+
lib => lib.npmPkg === alternative || lib.githubUrl.endsWith(alternative)
162162
);
163-
return false;
163+
if (!localDataAlternative) {
164+
console.error(
165+
`${alternative} is not listed in the directory, so it cannot be defined as an alternative for the package.`
166+
);
167+
return false;
168+
}
164169
}
165170
return true;
166171
});

0 commit comments

Comments
 (0)