Skip to content

Commit 2c58bfd

Browse files
authored
fix: Webpack bundling issue caused by TurboModule import (#522)
## Description This PR should fix the bundling issue by adding the `.native.ts` extension to the file that should be bundled only for the native platforms.
1 parent 3b11dc7 commit 2c58bfd

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as ReactNativeHapticFeedback } from './react-native-haptic-feedback';
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
export { default as ReactNativeHapticFeedback } from './react-native-haptic-feedback';
1+
import type { HapticOptions } from 'react-native-haptic-feedback';
2+
3+
export const ReactNativeHapticFeedback = {
4+
load: () => (_type: string, _options?: HapticOptions) => {
5+
// noop
6+
}
7+
};

0 commit comments

Comments
 (0)