Skip to content

Commit cbe21ba

Browse files
authored
fix: remove react-native-safe-area-context from example app (#897)
### Summary Remove `react-native-safe-area-context` from example app as it is not used and is causing Nitro module android build crash mentioned in #896. ### Test plan Verify that generated libraries build correctly.
1 parent 76b97af commit cbe21ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/create-react-native-library/src/exampleApp/generateExampleApp.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const PACKAGES_TO_REMOVE = [
3434
'prettier',
3535
'react-test-renderer',
3636
'typescript',
37+
'react-native-safe-area-context',
3738
];
3839

3940
const PACKAGES_TO_ADD_WEB = {
@@ -196,6 +197,8 @@ export default async function generateExampleApp({
196197
PACKAGES_TO_REMOVE.forEach((name) => {
197198
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
198199
delete devDependencies[name];
200+
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
201+
delete dependencies[name];
199202
});
200203

201204
const PACKAGES_TO_ADD_DEV = {

0 commit comments

Comments
 (0)