Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kudo committed Jul 2, 2023
1 parent 2b151bd commit 7e0f979
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion react-native.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
const v8IosInstalled = (function() {
try {
return !!require.resolve('v8-ios/package.json');
} catch {
return false;
}
})();

module.exports = {
dependency: {
platforms: {
// Only enable ios autolinking when v8-ios is installed
ios: !!require.resolve('v8-ios/package.json'),
ios: v8IosInstalled ? {} : null,
},
},
};

0 comments on commit 7e0f979

Please sign in to comment.