bottom tab navigator added & multi language added

master
hamed 3 years ago
parent 4f0fb5dfd7
commit 6f8c0a9aa1
  1. 6
      navigation.js
  2. 13
      src/screens/Exams/index.js
  3. 13
      src/screens/Videos/index.js

@ -14,6 +14,8 @@ import {connect} from 'react-redux';
import i18n from "./src/services/i18n"; import i18n from "./src/services/i18n";
import {useTranslation} from "react-i18next"; import {useTranslation} from "react-i18next";
import Profile from "./src/screens/Profile"; import Profile from "./src/screens/Profile";
import Videos from "./src/screens/Videos";
import Exams from "./src/screens/Exams";
const mapStateToProps = state => { const mapStateToProps = state => {
return { return {
@ -37,10 +39,10 @@ function BottomTab(props) {
<Tab.Screen name={'Product'} component={Product} options={{ <Tab.Screen name={'Product'} component={Product} options={{
title: t('books') title: t('books')
}} /> }} />
<Tab.Screen name={'Videos'} component={Product} options={{ <Tab.Screen name={'Videos'} component={Videos} options={{
title: t('videos') title: t('videos')
}} /> }} />
<Tab.Screen name={'Exams'} component={Product} options={{ <Tab.Screen name={'Exams'} component={Exams} options={{
title: t('exams') title: t('exams')
}} /> }} />
<Tab.Screen name={'Profile'} component={Profile} options={{ <Tab.Screen name={'Profile'} component={Profile} options={{

@ -0,0 +1,13 @@
import React from 'react'
import { View, Text } from 'react-native';
import {connect} from 'react-redux';
function Exams({}) {
return (
<View>
<Text></Text>
</View>
)
}
export default Exams;

@ -0,0 +1,13 @@
import React from 'react'
import { View, Text } from 'react-native';
import {connect} from 'react-redux';
function Videos({}) {
return (
<View>
<Text></Text>
</View>
)
}
export default Videos;
Loading…
Cancel
Save