Closed phuocantd closed 1 year ago
The error is popping up because the View
component does not accept radius
or customStyle
as props. In your example, you should be able to just pass a style
prop to the View
component directly, including a borderRadius
attribute:
<View
style={{
borderRadius: 20,
width: 100,
height: 100,
backgroundColor: "#f00",
}}
>
<Text>Test</Text>
</View>
The error is popping up because the
View
component does not acceptradius
orcustomStyle
as props. In your example, you should be able to just pass astyle
prop to theView
component directly, including aborderRadius
attribute:<View style={{ borderRadius: 20, width: 100, height: 100, backgroundColor: "#f00", }} > <Text>Test</Text> </View>
I want to custom props with ThemManager
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.
Description
when I use ThemeManager config some components like
View
,Text
, ... then code display errorHow to define type props to use it
Related to
More Info
Code snippet
Screenshots/Video
Environment
Affected platforms