Skip to content

Commit a7566b3

Browse files
authored
refactor: remove duplicate react-native.config.js (#582)
1 parent a71fc0c commit a7566b3

File tree

6 files changed

+0
-38
lines changed

6 files changed

+0
-38
lines changed

β€Žpackages/create-react-native-library/src/index.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ const COMMON_LOCAL_FILES = path.resolve(__dirname, '../templates/common-local');
3030
const JS_FILES = path.resolve(__dirname, '../templates/js-library');
3131
const EXPO_FILES = path.resolve(__dirname, '../templates/expo-library');
3232
const CPP_FILES = path.resolve(__dirname, '../templates/cpp-library');
33-
const EXAMPLE_FILES = path.resolve(__dirname, '../templates/example-legacy');
3433
const NATIVE_COMMON_FILES = path.resolve(
3534
__dirname,
3635
'../templates/native-common'
@@ -758,13 +757,6 @@ async function create(_argv: yargs.Arguments<any>) {
758757
await copyDir(JS_FILES, folder);
759758
await copyDir(EXPO_FILES, folder);
760759
} else {
761-
if (example !== 'none') {
762-
await copyDir(
763-
path.join(EXAMPLE_FILES, 'example'),
764-
path.join(folder, 'example')
765-
);
766-
}
767-
768760
await copyDir(NATIVE_COMMON_FILES, folder);
769761

770762
if (example !== 'none') {

β€Žpackages/create-react-native-library/templates/example-legacy/example/react-native.config.js

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
Β (0)