The backdropPresableProps property of SpeedDial has no effect

Aperta
#3,937 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
react-native
Ambito
mobile

Direzione di ricerca

Reproduce the issue with the provided SpeedDial example using @rneui/base and @rneui/themed. Start by tracing the SpeedDial implementation and its backdropPressableProps handling; done means the backdrop applies the supplied children, backgroundColor, and onPress behavior, with a regression test covering them.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Needs Triage
Is there an existing issue for this?
  • I have searched the existing issues
Explain what you did

I set the background color and added sub components and click events for BackdropPresableProps, but they have no effect on the view

Expected behavior

No effect on the view

Describe the bug

I set the background color of the component but it had no effect. Below is my code

Steps To Reproduce
<SpeedDial
                backdropPressableProps={{
                  children: <Text>123</Text>,
                  style: {backgroundColor: 'yellow'},
                  onPress:()=>{
                    console.log('11111111111111')
                  }
                }}
                pressRetentionOffset={1000}
                isOpen={open}
                labelPressable
                placement="right"
                overlayColor="transparent"
                icon={{
                  name: 'pencil',
                  type: 'font-awesome',
                  color: '#fff',
                  style: {marginLeft: 5, marginBottom: 7},
                }}
                openIcon={{
                  name: 'remove',
                  type: 'font-awesome',
                  color: '#fff',
                  style: {marginLeft: 5, marginBottom: 7},
                }}
                onOpen={() => setOpen(!open)}
                onClose={() => setOpen(!open)}>
                <SpeedDial.Action
                  icon={{
                    name: 'plus',
                    type: 'font-awesome',
                    color: '#fff',
                    style: {marginLeft: 5, marginBottom: 7},
                  }}
                  title="Add"
                  onPress={() => console.log('Added Event')}
                />
                <SpeedDial.Action
                  icon={{
                    name: 'minus',
                    type: 'font-awesome',
                    color: '#fff',
                    style: {marginLeft: 5, marginBottom: 7},
                  }}
                  title="Delete"
                  onPress={() => console.log('Delete Event')}
                />
              </SpeedDial>
Screenshots

No response

Your Environment
`npx @rneui/envinfo`
  ```
"@rneui/base": "^4.0.0-rc.7",
"@rneui/themed": "^4.0.0-rc.8",
  ```
Lingua principale
MDX
Stelle
25.9k
Fork
4.7k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di react-native-elements/react-native-elements

Tutte le issue di react-native-elements/react-native-elements

Issue simili

Altre issue su Mobile Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.