android - 如何在 React Native (Android) 中更改 ActivityIndi​​cator 的颜色?

标签 android reactjs react-native

我需要将 ActivityIndi​​cator 的颜色更改为黑色,但仅限于应用程序的这个区域。我不想在其他任何地方更改它。有谁知道如何为 Android 和 iOS 更改它的颜色?

<ActivityIndicator 
    style={{position: 'absolute', right: 20, margin: 0, padding: 0}}
    animating={true}
    size='small'
/>

最佳答案

 <ActivityIndicator color="#000000"/>

更多 Prop 可查看official documentation

关于android - 如何在 React Native (Android) 中更改 ActivityIndi​​cator 的颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50749087/

相关文章:

amazon-web-services - aws-amplify with Auth0

javascript - 无限滚动在 React 中无法正常工作

android - 关于Android中SQLite的更新

当屏幕关闭并再次打开时 Android 丢失状态

android - 任何人都可以帮助我了解我的程序的线程吗?

javascript - 从数据数组发送恒定大小的批量请求 - React、Axios

react-native - 如何将一个组件左对齐,另一个组件右对齐(页面末尾) react 原生?

android - Ionic firebase 登录问题

javascript - 如何在嵌套 JSON 的第 0 个索引特定键 "conditions"和值下拼接每个 “logic” ?

reactjs - React Typescript - 渲染函数未正确应用类型