Skip to content
This repository was archived by the owner on Nov 5, 2023. It is now read-only.

Commit ffd7ab0

Browse files
author
Nico Dinata
committed
Merge branch 'fix/react-native-grouping'
2 parents e603916 + 7c035d5 commit ffd7ab0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ function isReactModule(imported) {
1313
}
1414

1515
function isReactNativeModule(imported) {
16-
return imported.moduleName.startsWith('react-native');
16+
return (
17+
imported.moduleName === 'react-native' ||
18+
imported.moduleName.startsWith('react-native/')
19+
);
1720
}
1821

1922
function isInternalModule(imported) {

0 commit comments

Comments
 (0)