diff --git a/packages/create-react-native-library/src/index.ts b/packages/create-react-native-library/src/index.ts index 77566886d..77d7128f7 100644 --- a/packages/create-react-native-library/src/index.ts +++ b/packages/create-react-native-library/src/index.ts @@ -802,6 +802,10 @@ async function create(_argv: yargs.Arguments) { path.join(folder, 'package.json') ); + if (!rootPackageJson.devDependencies) { + rootPackageJson.devDependencies = {}; + } + rootPackageJson.devDependencies.react = examplePackageJson.dependencies.react; rootPackageJson.devDependencies['react-native'] =