react-native-sensitive-info icon indicating copy to clipboard operation
react-native-sensitive-info copied to clipboard

fix: named exports for v5 compatibility

Open ajcrites opened this issue 3 years ago • 2 comments

The change from module.exports to export default no longer allows you to use named imports. This would be a breaking change, but it's also incompatible with the current type declarations.

This could be fixed using commonjs module and 'export =' in TypeScript, but this is incompatible with Rollup. The simplest answer seems to be just explicitly using named exports based on the type declarations as well as including the default export.

Fixes #291

ajcrites avatar May 24 '21 15:05 ajcrites

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 23 '21 21:06 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 27 '21 17:07 stale[bot]