我正在关于功能:直接从React本地App发送电子邮件到gmail地址.我在互联网上搜索并尝试了库:https://github.com/anarchicknight/react-native-communications,https://github.com/chirag04/react-native-mail.Howerver,他们只显示我在我的设备中安装的Gmail应用程序的视图.我想反应本机应用程序将直接发送到地址电子邮件.我测试的设备在Android平台上运行.非常感谢
我正在编写 React Native 应用程序。我正在使用反应导航来导航屏幕。
我有 2 个堆栈导航器,它们位于选项卡导航器中。当我按下 TabBar 上的选项卡项以刷新其视图时,我想要处理单击事件。
export const HomeStack = StackNavigator({
Home: {screen: ScreenHome},
Detail: {screen: ScreenDetail}
})
export const UserStack = StackNavigator({
User: {screen: ScreenUser}
})
export const Tabbar = TabNavigator({
HomeTab: {
screen: HomeStack,
},
UserTab: {
screen: UserStack,
}
}, {
tabBarComponent: ({ jumpToIndex, ...props}) => (
<TabBarBottom
{...props}
jumpToIndex={(index) => {
if(props.navigation.state.index === index) {
props.navigation.clickButton(); //----> pass props params (code processes)
}
else {
jumpToIndex(index);
}
}
}
/>
),
tabBarPosition: 'bottom' …Run Code Online (Sandbox Code Playgroud) navigation tabnavigator react-native ex-navigation react-navigation