Commit 41463039 by leiyongsheng

添加用户信息模块

parent b9230dce
......@@ -9,6 +9,6 @@ import { name as appName } from './app.json';
AppRegistry.registerComponent(appName, (props) => {
console.log('AppRegistry.registerComponent:' + props);
// return App;
return NavigateEntryTest;
return App;
// return NavigateEntryTest;
});
......@@ -105,7 +105,7 @@ class HomeScreen extends React.Component {
componentWillUnmount() {
console.log('HomeScreen componentWillUnmount:' + JSON.stringify(this.props.route.params));
}
showAppInfo() {
showUserInfo() {
BMCInfo.getUserInfo((result) => {
console.log("获取用户信息,结果为:" + result);
BMCUI.showConfirmDialog(result, '确定', (result) => {
......@@ -165,7 +165,7 @@ class HomeScreen extends React.Component {
<Text style={{ margin: 10 }}>result data: {this.props.route.params?.post}</Text>
<Button
title="show app info"
onPress={this.showAppInfo}
onPress={this.showUserInfo}
/>
<Button
title="show login info"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment