I'm actually using Router Flux and Connect. I am unable to push a scene that's child of a tabbed page. Can someone help me ? I was unable to find documentation for this also.
This is my router.js
import React from 'react'
import {Router, Scene, Stack, Modal, Tabs} from 'react-native-router-flux'
import { View, Image,Text, Touchable } from 'react-native'
import Icon from 'react-native-vector-icons/FontAwesome'
// Scenes
import Alpha from '../scenes/Alpha'
import Bravo from '../scenes/Bravo'
import Charlie from '../scenes/Charlie'
const TabIcon = ({ focused, title }) => {
//...
}
export default props => (
<Router>
<Stack key="root" hideNavBar={true}>
<Tabs key='tabs'
tabs={true}
initial>
<Scene key='alpha' component={Alpha} title='Events' icon={TabIcon}>
</Scene>
<Scene key='bravo' component={Bravo} title='Bravo' icon={TabIcon}>
<Scene key='charlie' component={Charlie} title='Charlie' icon={TabIcon}>
</Scene>
</Scene>
</Tabs>
</Stack>
</Router>
)
on my Alpha, I've this:
import {connect} from "react-redux"
import Photos from '../Photos'
import {Actions, ActionConst} from 'react-native-router-flux'
goToPhotos(event) {
Actions.push(BrowseEvent())
//this.props.navigation.push(BrowseEvent)
}
This result in absolutely: nothing. No errors, no results. (Including the commented line)
Can someone help me with this ?