Skip to content

Commit a27268f

Browse files
committed
refactor: read library from package.json for autolinking
1 parent 5dbbba3 commit a27268f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/create-react-native-library/templates/native-common/example/react-native.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
const path = require('path');
2+
const pak = require('../package.json');
23

34
module.exports = {
45
dependencies: {
5-
'<%- project.slug -%>': {
6+
[pak.name]: {
67
root: path.join(__dirname, '..'),
78
},
89
},

0 commit comments

Comments
 (0)