-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception thrown while executing UI block #1337
Comments
Not much to go on here, can you make a reproduction? Did you use |
I've had the same happen to me. I run a managed Expo app, that after updating to SDK 37 produced this error. Had to revert from 11.0.1 to 9.13.3. Issue happens on both iOS and Android devices, Android throws a more descriptive error. I've attached a screenshot of both my emulators. This is a simplified version of how I implemented it. I import an svg and pass the XML to an Icon component:
|
I am also having the issues described above. |
Can you provide the svg content that triggers this? |
It's totally the same with me. |
After changed |
I have this same problem. However, it happens when I try to render svg with Storybook. I switched to 9.13.6 and it started working |
The same issue using, react-native-svg: FIXED with |
Using an old version is NOT a solution, why is the new version not working, or why is expo pointing to a broken version? I also just installed the version from |
Same issue here.
@msand expo SDK 36.0.0 I use edited: My setup was corrupt. My |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open. |
I am facing this issue as well. This is painful. Hopefully I'll be able to follow up with a solid solution here. |
Having the same issue with v40.
{
"homepage": "___",
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject",
"test": "jest --watchAll"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"@expo/vector-icons": "^12.0.0",
"@react-native-async-storage/async-storage": "^1.13.2",
"@react-native-community/masked-view": "0.1.10",
"@react-navigation/bottom-tabs": "^5.11.2",
"@react-navigation/native": "^5.8.10",
"@react-navigation/stack": "^5.12.8",
"dayjs": "^1.9.6",
"expo": "^40.0.0",
"expo-application": "~2.4.1",
"expo-asset": "~8.2.1",
"expo-constants": "~9.3.3",
"expo-font": "~8.4.0",
"expo-linking": "~2.0.0",
"expo-localization": "~9.1.0",
"expo-random": "~10.0.0",
"expo-screen-orientation": "~2.1.0",
"expo-splash-screen": "~0.8.1",
"expo-status-bar": "~1.0.3",
"expo-web-browser": "~8.6.0",
"i18n-js": "^3.8.0",
"luxon": "^1.25.0",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-40.0.0.tar.gz",
"react-native-gesture-handler": "~1.8.0",
"react-native-safe-area-context": "3.1.9",
"react-native-screens": "~2.15.0",
"react-native-svg": "12.1.0",
"react-native-web": "~0.13.12"
},
"devDependencies": {
"@babel/core": "~7.9.0",
"@expo/config": "^3.3.3",
"@types/react": "~16.9.35",
"@types/react-native": "~0.63.2",
"jest-expo": "^40.0.0",
"typescript": "~4.0.0"
}
} |
You're vendor locked into a higher version of react-native-svg via Expo so you'd have to This works for me. |
i'm having this issue on §"react-native-svg": "^12.3.0",§ |
|
npm i [email protected] worked for me :) |
When I Installed When installing it using the expo cli |
Same issue here, it's working with 9.13.3 but it's not real solution to use deprecated version |
For me 9.13.3 not working also latest not working. Get same issue please help. |
Hello, Thank you. |
Unexpected behavior
ERROR: "Exception thrown while executing UI block: =[NSCFNumber firstObject]: unrecognized selector sent to instance ... ".
I'm working on the same project with the same code base as friend and we have copy pasted the react-native-svg example from the github page and we are using version 9.9.2. His works and mine doesnt. My error is being produced when I add any props (e.g stroke, fille etc..) to the circle or rect items from the examples. When i remove these props i get no errors but nothing shows up in the app.
React native info output:
Binaries:
Node: 12.13.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.17.3 - C:\Users\ricky\AppData\Roaming\npm\yarn.CMD
npm: 6.12.1 - C:\Program Files\nodejs\npm.CMD
npmPackages:
react: ~16.9.0 => 16.9.0
react-native: https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz => 0.61.4
react-native-svg: 9.9.2
Describe what you expected to happen:
The text was updated successfully, but these errors were encountered: