Commit 41463039 by leiyongsheng

添加用户信息模块

parent b9230dce
...@@ -9,6 +9,6 @@ import { name as appName } from './app.json'; ...@@ -9,6 +9,6 @@ import { name as appName } from './app.json';
AppRegistry.registerComponent(appName, (props) => { AppRegistry.registerComponent(appName, (props) => {
console.log('AppRegistry.registerComponent:' + props); console.log('AppRegistry.registerComponent:' + props);
// return App; return App;
return NavigateEntryTest; // return NavigateEntryTest;
}); });
...@@ -105,7 +105,7 @@ class HomeScreen extends React.Component { ...@@ -105,7 +105,7 @@ class HomeScreen extends React.Component {
componentWillUnmount() { componentWillUnmount() {
console.log('HomeScreen componentWillUnmount:' + JSON.stringify(this.props.route.params)); console.log('HomeScreen componentWillUnmount:' + JSON.stringify(this.props.route.params));
} }
showAppInfo() { showUserInfo() {
BMCInfo.getUserInfo((result) => { BMCInfo.getUserInfo((result) => {
console.log("获取用户信息,结果为:" + result); console.log("获取用户信息,结果为:" + result);
BMCUI.showConfirmDialog(result, '确定', (result) => { BMCUI.showConfirmDialog(result, '确定', (result) => {
...@@ -165,7 +165,7 @@ class HomeScreen extends React.Component { ...@@ -165,7 +165,7 @@ class HomeScreen extends React.Component {
<Text style={{ margin: 10 }}>result data: {this.props.route.params?.post}</Text> <Text style={{ margin: 10 }}>result data: {this.props.route.params?.post}</Text>
<Button <Button
title="show app info" title="show app info"
onPress={this.showAppInfo} onPress={this.showUserInfo}
/> />
<Button <Button
title="show login info" 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