Skip to content

Commit 59db4a8

Browse files
committed
fix(react-native): import icons via .js specifier — .jsx breaks tsc dist + Metro
The package convention (and every other .tsx import in src/) uses the .js specifier so tsc's emitted dist keeps resolving after compilation; './icons.jsx' compiled through and then failed Metro's resolution from dist/ui/index.js. Caught by the demo's expo export bundle check.
1 parent b9f976b commit 59db4a8

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/react-native/src/ui/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export {
6060
RetryIcon,
6161
WalletGlyphIcon,
6262
type IconProps,
63-
} from './icons.jsx';
63+
} from './icons.js';
6464
export { QrCodeView, type QrCodeViewProps } from './qr/QrCodeView.js';
6565
export { generateQrMatrix, qrMatrixToRects, type QrMatrix, type QrRect, type QrEcLevel } from './qr/qr-matrix.js';
6666
export {

packages/react-native/src/ui/views/ConnectingView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import { Animated, Pressable, Text, View } from 'react-native';
3030
import { t } from '@saganta/stellar-appkit';
3131
import { useBreathe, useEntranceStagger } from '../animations.js';
3232
import { SquircleArc } from '../SquircleArc.js';
33-
import { RetryIcon } from '../icons.jsx';
33+
import { RetryIcon } from '../icons.js';
3434
import { WalletIcon } from '../WalletIcon.js';
3535
import { SQUIRCLE_SPEC } from '../squircle-track.js';
3636
import type { AppKitStyles } from '../styles.js';

packages/react-native/src/ui/views/ErrorView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import React from 'react';
1414
import { Pressable, Text, View } from 'react-native';
1515
import { t } from '@saganta/stellar-appkit';
16-
import { AlertCircleIcon } from '../icons.jsx';
16+
import { AlertCircleIcon } from '../icons.js';
1717
import type { AppKitStyles } from '../styles.js';
1818
import type { ConnectThemeRN } from '../theme.js';
1919

packages/react-native/src/ui/views/HeaderView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import React from 'react';
1818
import { Image, Pressable, Text, View, type ImageSourcePropType } from 'react-native';
1919
import { t } from '@saganta/stellar-appkit';
20-
import { ChevronLeftIcon, CloseIcon } from '../icons.jsx';
20+
import { ChevronLeftIcon, CloseIcon } from '../icons.js';
2121
import { WalletIcon } from '../WalletIcon.js';
2222
import type { AppKitStyles } from '../styles.js';
2323
import type { ConnectThemeRN } from '../theme.js';

packages/react-native/src/ui/views/SigningView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { Animated, Pressable, Text, View } from 'react-native';
1818
import { t } from '@saganta/stellar-appkit';
1919
import { useBreathe, useEntranceStagger } from '../animations.js';
2020
import { SquircleArc } from '../SquircleArc.js';
21-
import { CircleXIcon, RetryIcon } from '../icons.jsx';
21+
import { CircleXIcon, RetryIcon } from '../icons.js';
2222
import { WalletIcon } from '../WalletIcon.js';
2323
import { SQUIRCLE_SPEC } from '../squircle-track.js';
2424
import type { AppKitStyles } from '../styles.js';

packages/react-native/src/ui/views/SiwsView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { Animated, Pressable, Text, View } from 'react-native';
2626
import { t } from '@saganta/stellar-appkit';
2727
import { useBreathe, useEntranceStagger } from '../animations.js';
2828
import { SquircleArc } from '../SquircleArc.js';
29-
import { RetryIcon } from '../icons.jsx';
29+
import { RetryIcon } from '../icons.js';
3030
import { WalletIcon } from '../WalletIcon.js';
3131
import { SQUIRCLE_SPEC } from '../squircle-track.js';
3232
import type { AppKitStyles } from '../styles.js';

0 commit comments

Comments
 (0)