The official documentation states that this component contains the Props of all View components, but setting the style property of the View has no effect. I saw from the source code that the style property is not set on the Overlay component, but on its Modal component
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- react-native
- Ambito
- mobile
Direzione di ricerca
Start by reading the Overlay and Modal implementations referenced in the report, then compare their handling of the View style props with the official documentation. Reproduce the example and determine whether the component behavior or documentation is incorrect; done means the reported style behavior is corrected or clearly documented, with coverage for the case.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is there an existing issue for this?
- I have searched the existing issues
Explain what you did
I set the following properties of View on the Overlay component, but it has no effect
Expected behavior
set style properties of View on the Overlay component, but it has no effect
Describe the bug
set style properties of View on the Overlay component, but it has no effect
Steps To Reproduce
<Button
title="接收原生View组件的style"
onPress={toggleOverlay9}
buttonStyle={styles.button}
/>
<Overlay
backdropStyle={{
backgroundColor: 'blue',
borderRadius: 100,
opacity: 0.7,
}}
style={{width:200,height:100,backgroundColor:'red'}}
isVisible={visible9}
overlayStyle={{backgroundColor: 'green', borderRadius: 20}}
onBackdropPress={toggleOverlay9}>
<Text style={styles.textPrimary}>Hello!</Text>
<Text style={styles.textSecondary}>
Welcome to React Native Elements
</Text>
<Button
icon={
<Icon
name="wrench"
type="font-awesome"
color="white"
size={25}
iconStyle={{marginRight: 10}}
/>
}
title="Start"
onPress={toggleOverlay9}
/>
</Overlay>
Screenshots
No response
Your Environment
"@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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di react-native-elements/react-native-elements
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
react-native-elements/react-native-elements#4035 · 1 commento ·
-
Needs Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
react-native-elements/react-native-elements#3963 · 2 commenti · 2 reazioni ·
-
component: Button
react-native-elements/react-native-elements#4032 · 1 assegnatario ·
-
TS Bug - @rneui/base@5.0.0 — Undeclared type dependency causes IconProps to lose color/name/size Apertacomponent: Icon
react-native-elements/react-native-elements#4027 · 2 commenti · 4 reazioni · 1 assegnatario ·
-
📞 Needs Response from Author
react-native-elements/react-native-elements#4022 · 9 commenti · 2 reazioni · 1 assegnatario ·
Tutte le issue di react-native-elements/react-native-elements
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
hemilabs/ui-monorepo#2323 ·
-
Needs: Author Feedback Needs: Repro
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
react/react-native#58621 · 1 commento ·
-
contributor: external needs review
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
ionic-team/capacitor#8616 ·
-
code quality good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100