react-native 中是否有大纲属性?

Aut*_*hor 6 css react-native

大纲属性在 CSS 中,但我尝试在 react-native 中使用大纲属性。我在使用带有 react-native 的大纲属性时遇到以下消息。错误:outline 属性不是有效的样式属性任何人都知道该属性而不是 react-native 中 css 的 outline 属性,而无需安装另一个包。谢谢你的配合。

小智 -2

style={{
        height: 40,
        width: "95%",
        borderRadius: 20,
        backgroundColor: this.state.boxColor,
        marginHorizontal: 10,
        fontFamily: ConstantFontFamily.defaultFont,
        fontWeight: "bold",
        paddingLeft: 35,
        minWidth:
            Dimensions.get("window").width >= 1100 ? 630 : 393,
        outline: "none"
    }}
Run Code Online (Sandbox Code Playgroud)

  • 您能解释一下您的答案吗? (2认同)