ButtonGroup fails on iOS Expo Dev Client
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- react-native, typescript
- Domain
- mobile-dev
Research direction
Start in packages/base/src/ButtonGroup/ButtonGroup.tsx at the referenced lines around 204-207, then reproduce the error with the provided Expo 49 and React Native 0.72.6 setup in an iOS Expo Dev Client. Done means ButtonGroup loads and works as expected without the reported TypeError.
Written by the indexing model from the issue text.
Description
Is there an existing issue for this?
- I have searched the existing issues
Explain what you did
Use ButtonGroup in an iOS Expo Dev Client
Expected behavior
Works as expected
Describe the bug
Got this error
TypeError: (0, _color.default)(underlayColor).alpha(activeOpacity).rgb is not a function (it is undefined)
Appears to be used here
This is not "blocked" by a platform check
Steps To Reproduce
1. Create a custom dev client for Expo with the peer deps of RNEUI
2. Create a button group
<ButtonGroup
buttons={["English", "French", "Japanese", "System"]}
onPress={async (nextLanguageIndex) => {
const langs = ["en", "ja", "fr", null];
await setLanguageAsync(langs[nextLanguageIndex]);
}}
// selectedIndex={isSystemLanguage ? 3 : ["en", "ja", "fr"].findIndex(it => it === language)}
/>
- try to load up the app in DevClient
### Screenshots
_No response_
### Your Environment
React Native Elements Env Info
## Global Dependencies:
No related dependency found
## Local Dependencies:
- @rneui/base : ^4.0.0-rc.8
- @rneui/themed : ^4.0.0-rc.8
- expo : 49
- react : 18.2.0
- react-native : 0.72.6
- @types/react : ~18.2.14
- Dominant language
- MDX
- Stars
- 25.9k
- Forks
- 4.7k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from react-native-elements/react-native-elements
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
react-native-elements/react-native-elements#4035 · 1 comment ·
-
Needs Triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
react-native-elements/react-native-elements#3963 · 2 comments · 2 reactions ·
-
component: Button
react-native-elements/react-native-elements#4032 · 1 assignee ·
-
TS Bug - @rneui/base@5.0.0 — Undeclared type dependency causes IconProps to lose color/name/size Opencomponent: Icon
react-native-elements/react-native-elements#4027 · 2 comments · 4 reactions · 1 assignee ·
-
📞 Needs Response from Author
react-native-elements/react-native-elements#4022 · 9 comments · 2 reactions · 1 assignee ·
All issues in react-native-elements/react-native-elements
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
avniproject/avni-client#2135 ·
-
react-doctor severity:warning tech-debt
Difficulty 1/5 Under an hour Newbie friendliness 88/100
digidem/comapeo-cloud-app#403 ·
-
Icon Requests Opensupported
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
LawnchairLauncher/lawnicons#4100 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
CypherBoxLLC/Cypher-Box#284 ·
-
cr:missing-repro cr:platform:android platform:android repro-provided
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
software-mansion/react-native-screens#4699 · 1 comment ·