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

RN 里面config.navigationBarTitleText 不生效 #669

Closed
szheng3 opened this issue Sep 20, 2018 · 4 comments
Closed

RN 里面config.navigationBarTitleText 不生效 #669

szheng3 opened this issue Sep 20, 2018 · 4 comments
Assignees

Comments

@szheng3
Copy link

szheng3 commented Sep 20, 2018

Mac version 1.0.2单独component
config = {

navigationBarTitleText: 'show',

};

标题没变

@Pines-Cheng
Copy link
Contributor

config 是在自定义组件里还是页面组件里 ? @szheng3

标题没变的意思的是:初始化是 XXX ,运行过程中修改为 YYY,但是标题还是 XXX ?

@szheng3
Copy link
Author

szheng3 commented Sep 21, 2018

在页面组件里面, 初始化是 XXX ,运行过程中修改为 YYY,但是标题还是 XXX,正解

@Pines-Cheng
Copy link
Contributor

按照小程序的规范,动态设置当前页面的标题需要通过 setNavigationBarTitle(Object object) ,该 API 在 RN 端还没支持,我来给你支持一下。

@szheng3
Copy link
Author

szheng3 commented Sep 21, 2018

感谢大佬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants