Skip to content

Commit

Permalink
fix: create symlink to common-app (#6637)
Browse files Browse the repository at this point in the history
## Summary

Similar to
software-mansion/react-native-svg#2512, it fixes
resolving local images on Android by creating a symlink to the common
directory, allowing images to be resolved without the `../` segment.

## Test plan

Run example app on Android and add
```tsx
<Image source={require('./assets/doge.png')} />
```
in `EmptyExample.tsx`
  • Loading branch information
jakex7 authored Oct 28, 2024
1 parent 4c12f43 commit 254a737
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions apps/fabric-example/common-app
2 changes: 1 addition & 1 deletion apps/fabric-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"build": "",
"android": "react-native run-android",
"ios": "react-native run-ios",
"lint": "eslint --max-warnings=0 .",
"lint": "eslint --max-warnings=0 --ignore-pattern 'common-app/' .",
"format": "prettier --write --list-different .",
"start": "react-native start",
"test": "jest"
Expand Down
1 change: 1 addition & 0 deletions apps/paper-example/common-app
2 changes: 1 addition & 1 deletion apps/paper-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"build": "yarn patch-package",
"android": "react-native run-android",
"ios": "react-native run-ios",
"lint": "eslint --max-warnings=0 .",
"lint": "eslint --max-warnings=0 --ignore-pattern 'common-app/' .",
"format": "prettier --write --list-different .",
"start": "react-native start",
"test": "jest"
Expand Down

0 comments on commit 254a737

Please sign in to comment.