Skip to content

Commit e545ba3

Browse files
fix: change config json import to require
1 parent 7b88962 commit e545ba3

File tree

1 file changed

+2
-1
lines changed
  • packages/create-react-native-library/templates/nitro-view/src

1 file changed

+2
-1
lines changed

packages/create-react-native-library/templates/nitro-view/src/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { getHostComponent } from 'react-native-nitro-modules';
2-
import <%- project.name %>Config from '../nitrogen/generated/shared/json/<%- project.name %>Config.json';
2+
// import <%- project.name %>Config from '../nitrogen/generated/shared/json/<%- project.name %>Config.json';
3+
const <%- project.name %>Config = require('../nitrogen/generated/shared/json/<%- project.name %>Config.json')
34
import type {
45
<%- project.name %>Methods,
56
<%- project.name %>Props,

0 commit comments

Comments
 (0)