我想在React-Native中更改Button标签中文本的颜色。但我得到的错误是“不变违规:按钮的标题属性必须是一个字符串”。另外,建议我一些好的npm在React-Native中创建Button。我尝试了下面的代码,但它不能工作。
color属性仅更改按钮的背景色。我需要更改文本的颜色。
<View style = {styles.container}>
<Text style = {styles.maintext}>Add all your Social Media Profile ID</Text>
<Button title
我认为尝试用%值检测不支持边界半径的浏览器会是一个好主意。我已经使用下面的代码来尝试检测边界半径,但它不是在玩球。我得到了一个空的警告框。
function getStyle(ele,styleProp){
var x = document.getElementById(ele);
if(x.currentStyle){
var y = x.currentStyle[styleProp];
}else if(window.getComputedStyle){