Skip to content

Commit 9466948

Browse files
Fix bundle issues
1 parent 7f6893d commit 9466948

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"presets": ["@griffel"],
2+
"presets": ["@babel/preset-typescript"],
33
"compact": false
44
}

packages/react-native-icons/convert.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ function processFiles(src, dest) {
6969
// Finally add the interface definition and then write out the index.
7070
indexContents.push('export { FluentReactNativeIconsProps } from \'./utils/FluentReactNativeIconsProps.types\'');
7171
indexContents.push('export { default as wrapIcon } from \'./utils/wrapIcon\'');
72-
indexContents.push('export { default as bundleIcon } from \'./utils/bundleIcon\'');
72+
//indexContents.push('export { default as bundleIcon } from \'./utils/bundleIcon\'');
7373
indexContents.push('export * from \'./utils/useIconState\'');
74-
indexContents.push('export * from \'./utils/constants\'');
74+
//indexContents.push('export * from \'./utils/constants\'');
7575

7676
fs.writeFileSync(indexPath, indexContents.join('\n'), (err) => {
7777
if (err) throw err;

packages/react-native-icons/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
"tslib": "^2.1.0"
4747
},
4848
"peerDependencies": {
49-
"react": ">=16.8.0 <19.0.0"
49+
"react": ">=16.8.0 <19.0.0",
50+
"react-native": "^0.68.0"
5051
},
5152
"files": [
5253
"lib/",
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import 'react-native-svg';
2+
declare module 'react-native-svg' {
3+
export interface SvgProps {
4+
xmlns?: string;
5+
}
6+
}

packages/react-native-icons/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3+
"skipLibCheck": true,
34
"outDir": "lib",
45
"target": "ES6",
56
"module": "esnext",
@@ -14,6 +15,6 @@
1415
"esModuleInterop": true,
1516
"allowSyntheticDefaultImports": true
1617
},
17-
"include": ["src"],
18+
"include": ["src", "custom.d.ts"],
1819
"exclude": ["lib", "lib-cjs"]
1920
}

0 commit comments

Comments
 (0)