SpeedDial cant work in web platform,cuz ``` [...new Array(React.Children.count(children))]``` will returned ```[empty × 2]```
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 28/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- react-native, typescript
- Domain
- frontend
Research direction
Start by reproducing the issue with the provided SpeedDial example on the web playground, then locate the SpeedDial implementation and the React.Children-based child handling mentioned in the report. Done means the web SpeedDial renders its actions and the mask can be closed without changing the existing usage.
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
import React, {useState} from 'react';
import {SpeedDial} from '@rneui/themed';
export default function HomeScreen() {
const [open, setOpen] = useState(false);
return (
<SpeedDial
isOpen={open}
icon={{name: 'edit', color: '#fff'}}
openIcon={{name: 'close', color: '#fff'}}
onOpen={() => setOpen(!open)}
onClose={() => setOpen(!open)}>
<SpeedDial.Action
icon={{name: 'add', color: '#fff'}}
title="Add"
onPress={() => console.log('Add Something')}
/>
<SpeedDial.Action
icon={{name: 'delete', color: '#fff'}}
title="Delete"
onPress={() => console.log('Delete Something')}
/>
</SpeedDial>
);
}
Expected behavior
rendering component SpeedDial
Describe the bug
Mask and SpeedDial Always showing,Button can not close Mask
website playground also like this
So I find Code Bug
Steps To Reproduce
use my code can reproduce
Screenshots
No response
Your Environment
`npx @rneui/envinfo`
```
Output from `npx @rneui/envinfo` goes here.
```
- 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
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
usability
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
inmanta/web-console#7367 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Luminous-Dynamics/mycelix#2577 ·