Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问3.2.0-canary.8版本的rn平台怎么全局修改页面的背景颜色? #8708

Open
rockey2020 opened this issue Feb 21, 2021 · 8 comments · Fixed by #8790
Open

请问3.2.0-canary.8版本的rn平台怎么全局修改页面的背景颜色? #8708

rockey2020 opened this issue Feb 21, 2021 · 8 comments · Fixed by #8790
Assignees
Labels
F-react Framework - React T-rn Target - 编译到 React Native V-3 Version - 3.x

Comments

@rockey2020
Copy link

相关平台

React Native

使用框架: React

复现步骤

试过在全局的app.less和局部页面的less文件加
page{
background-color: #111111
}
但是没有生效

期望结果

颜色改变

实际结果

没有变化

环境信息

 Taro v3.2.0-canary.8


  Taro CLI 3.2.0-canary.8 environment info:
    System:
      OS: macOS 11.2.1
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 14.11.0 - /usr/local/bin/node
      Yarn: 1.22.5 - /usr/local/bin/yarn
      npm: 6.14.8 - /usr/local/bin/npm
    npmPackages:
      @tarojs/components: 3.2.0-canary.8 => 3.2.0-canary.8 
      @tarojs/mini-runner: 3.2.0-canary.8 => 3.2.0-canary.8 
      @tarojs/react: 3.2.0-canary.8 => 3.2.0-canary.8 
      @tarojs/runtime: 3.2.0-canary.8 => 3.2.0-canary.8 
      @tarojs/taro: 3.2.0-canary.8 => 3.2.0-canary.8 
      @tarojs/webpack-runner: 3.2.0-canary.8 => 3.2.0-canary.8 
      babel-preset-taro: 3.2.0-canary.8 => 3.2.0-canary.8 
      eslint-config-taro: 3.2.0-canary.8 => 3.2.0-canary.8 
      react: ^17.0.1 => 17.0.1 
      react-native: ^0.63.4 => 0.63.4 


@taro-bot2 taro-bot2 bot added F-react Framework - React T-rn Target - 编译到 React Native V-3 Version - 3.x labels Feb 21, 2021
@rockey2020
Copy link
Author

tabbar windows以及 页面下的index.config.js加backgroundColor都不生效

@shinken008
Copy link
Collaborator

请提供下代码?或者自己使用类选择器去控制

@rockey2020
Copy link
Author

@shinken008 请问类名叫啥?

@rockey2020
Copy link
Author

@zhiqingchen
Copy link
Member

@rockey2020 用新版本试一下呢?

@rockey2020
Copy link
Author

@zhiqingchen
image
也不行嘞
🥺🥺🥺🥺🥺

@yechunxi
Copy link
Collaborator

@zhiqingchen
image
也不行嘞
🥺🥺🥺🥺🥺

我拿你demo 试了下,目前最新的版本3.2.0-beta.0 ,taro相关依赖最好固定需要该版本,如果直接带有^,部分包的版本就会安装到 3.2.0-canary.9,这个版本是不支持的页面背景色的

@rockey2020
Copy link
Author

@zhiqingchen
image
也不行嘞
🥺🥺🥺🥺🥺

我拿你demo 试了下,目前最新的版本3.2.0-beta.0 ,taro相关依赖最好固定需要该版本,如果直接带有^,部分包的版本就会安装到 3.2.0-canary.9,这个版本是不支持的页面背景色的

image

我改了固定版本号之后
跑项目出现这个提示 但是我没有用sass 我是用less的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-rn Target - 编译到 React Native V-3 Version - 3.x
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants