我坚持在里面添加保存方法navigationOptions,请你帮我做正确的方法.
static navigationOptions = ({navigation}) => ({
headerTitle: "Add New Item",
...css.header,
headerRight: <NavViewRight
onPress={() => this.rightHeaderAction()} />,
})
Run Code Online (Sandbox Code Playgroud) 如何样式反应原生导航抽屉项目的Text.I浏览文档,但我没能找到正确的方法来做到这一点
这是我的AppContainer
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { View, Text, Button, StyleSheet } from 'react-native';
import { bindActionCreators } from 'redux';
import { ActionCreators } from '../actions';
import Home_ from './Home';
import About from './About';
//Add navigation
import { DrawerNavigator, DrawerItems} from 'react-navigation'
const cunstomeDrawerContentComponent = (props) => (
<View style={{flex: 1, color: 'red',
textAlign: 'center',
fontSize: 30,
fontFamily: 'cochin',
letterSpacing: 4}} >
<DrawerItems {...this.props} />
</View>
);
const drawerLayout …Run Code Online (Sandbox Code Playgroud) 我试图在react-native上添加汉堡图标以打开抽屉。但是我收到此错误
对象作为React子对象无效(找到:带有键{left}的对象)。如果您打算渲染孩子的集合,请使用数组代替,或者使用React附加组件中的createFragment(object)包装对象。
Check the render method of `View`.
Run Code Online (Sandbox Code Playgroud)
这是routes.js
import { StackNavigator, TabNavigator, DrawerNavigator } from 'react-navigation';
const DrawerIcon = ({ navigate }) => {
return(
<Icon
name = "md-menu"
size = {38}
color = "black"
style = {{paddingLeft : 20}}
onPress = {() => navigate('DrawerOpen')}
/>
);
};
export const Stack1 = StackNavigator({
Screen1: {
screen: screen1,
navigationOptions: {
header: ( props ) => ({
left: <DrawerIcon { ...props } />
}),
}
},
Screen2: {
screen: screen2,
}, …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用MVC Javascript应用程序发送电子邮件。目前,电子邮件正在发送并且我的href是可单击的,并重定向到正确的链接。但是我的问题是我如何通过href传递参数
emailBody += @"
</tbody>
</table>
<br />
<h3><b>Currently Data;</b></h3>
<table>
<thead>
<tr style='color: #ed5565; text-align: center'>
<th>Completed Date</th>
<th>Category</th>
</tr>
</thead>
<tbody>";
for (int i = 0; i < result3.Count; i++)
{
emailBody += @"
<tr style='text-align: center'>
<a href='http://myTestLink.com/Forms/Upload/' + result3[i].FormID >
<td>" + result3[i].CompletedDate + @"</td>
<td>" + result3[i].FormCategory + @"</td>
</a>
</tr>";
}
Run Code Online (Sandbox Code Playgroud) react-native ×3
android ×2
ios ×2
asp.net ×1
c# ×1
html ×1
javascript ×1
navigation ×1
react-router ×1
styles ×1