An regexp in zod-to-json-schema triggers this error when using the hermes
engine, works fine with jsc
.
SyntaxError: Invalid RegExp: Invalid escape, js engine: hermes
// node_modules/zod-to-json-schema/dist/cjs/parsers/string.js
exports.zodPatterns = {
// remove other codes
emoji: RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$", "u"),
};
- "expo": "~51.0.21",
- "react-native": "0.74.3"
- Clone this repo
npm install
npm run ios