Skip to content

Commit

Permalink
fix: installation error (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
vicary committed Oct 9, 2024
1 parent a4a0e01 commit 20de167
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,23 @@ const main = async () => {
};
```

## ⚠️ Partial USB Support
## ⚠️ Known Issues

### Error `RCTEvents.receiveEvent() is not registered`

tl;dr Do not use `index.tsx` as your entrypoint, use something like `app.tsx`
instead.

This error happens when all of the following conditions are met:

1. You have `expo-router` installed
2. You have new architecture enabled
3. You are using `index.tsx` as your entrypoint

When expo-router's own modified entrypoint sees your `index.tsx`, it will be
confused and incorrectly overrides some native modules.

### Partial USB Support

USB connections without specified a serial number is supported and tested in the
following environments (see
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"packages/*"
],
"scripts": {
"prepare": "husky",
"prepare": "husky && yarn workspace react-native-citizen-escposprinter run build",
"test": "yarn workspaces run test"
},
"prettier": {
Expand Down
5 changes: 2 additions & 3 deletions packages/react-native-citizen-escposprinter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,9 @@
"!**/.*"
],
"scripts": {
"postinstall": "bob build",
"build": "bob build",
"lint": "eslint \"**/*.{js,ts,tsx}\"",
"prepack": "bob build",
"prepare": "bob build",
"prepublishOnly": "bob build",
"test": "tsc --noEmit && jest --collectCoverage"
},
"commitlint": {
Expand Down

0 comments on commit 20de167

Please sign in to comment.