You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In v5, you could do things like import { getItem } from 'react-native-sensitive-info' which was doing module.exports.
The change to export default no longer allows you do this, and you have to import SInfo ....
This can be fixed by using export = instead of export default or otherwise changing everything over to named exports. For now, my preference would just be to use export =.
In case the maintainers don't want to make this change, the TypeScript declarations need to be updated to remove the exported functions which are no longer exported.
The text was updated successfully, but these errors were encountered:
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.
In v5, you could do things like
import { getItem } from 'react-native-sensitive-info'
which was doingmodule.exports
.The change to
export default
no longer allows you do this, and you have toimport SInfo ...
.This can be fixed by using
export =
instead ofexport default
or otherwise changing everything over to named exports. For now, my preference would just be to useexport =
.In case the maintainers don't want to make this change, the TypeScript declarations need to be updated to remove the exported functions which are no longer exported.
The text was updated successfully, but these errors were encountered: