-
Notifications
You must be signed in to change notification settings - Fork 621
Description
💬 前提强调
- I have searched the issues of this repository and believe that this is not a duplicate.
🙋 描述详情/重现步骤
<Button style={[styles.btn, styles.login]}>登录</Button>
const styles = StyleSheet.create({
btn: {
borderRadius: 16,
height: 61,
fontSize: 20,
color: '#fff',
},
login: {
backgroundColor: '#9C34EE',
}
})
期望按钮文字应该是白色,实际无法修改按钮颜色,还是黑色
🔴 版本
^5.3.2
💻 运行环境
Android
⚫️ npx react-native info
输出信息
System:
OS: macOS 12.7.6
CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz
Memory: 91.57 MB / 8.00 GB
Shell:
version: 5.8.1
path: /bin/zsh
Binaries:
Node:
version: 22.12.0
path: ~/.nvm/versions/node/v22.12.0/bin/node
Yarn:
version: 1.22.22
path: /usr/local/bin/yarn
npm:
version: 10.9.0
path: ~/.nvm/versions/node/v22.12.0/bin/npm
Watchman: Not Found
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK:
Platforms:
- DriverKit 22.2
- iOS 16.2
- macOS 13.1
- tvOS 16.1
- watchOS 9.1
Android SDK:
API Levels:
- "28"
- "34"
- "35"
Build Tools:
- 30.0.3
- 35.0.0
- 35.0.1
- 36.0.0
Android NDK: Not Found
IDEs:
Android Studio: Not Found
Xcode:
version: 14.2/14C18
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.14
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.0.1
wanted: 15.0.1
react:
installed: 19.0.0
wanted: 19.0.0
react-native:
installed: 0.78.0
wanted: 0.78.0
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: false
补充说明
No response