Commit a2e12bf7 by Giang Tran

update webview

parent 4c54b720
...@@ -9,6 +9,8 @@ import { ...@@ -9,6 +9,8 @@ import {
UPDATEOTP, UPDATEOTP,
ENTER_PASSWORD_SMART_OTP, ENTER_PASSWORD_SMART_OTP,
SETTINGOTP, SETTINGOTP,
FAQSSMARTOTP,
RULESSMARTOTP,
} from '../../routers/ScreenNames'; } from '../../routers/ScreenNames';
import R from '../../assets/R'; import R from '../../assets/R';
import Icon from 'react-native-vector-icons/AntDesign'; import Icon from 'react-native-vector-icons/AntDesign';
...@@ -48,14 +50,18 @@ const SmartOTPConfig = (props) => { ...@@ -48,14 +50,18 @@ const SmartOTPConfig = (props) => {
</TouchableOpacity> </TouchableOpacity>
)} )}
<TouchableOpacity style={styles.container}> <TouchableOpacity
onPress={() => navigation.navigate(RULESSMARTOTP)}
style={styles.container}>
<Image style={styles.imgIcon} source={R.images.rules} /> <Image style={styles.imgIcon} source={R.images.rules} />
<View style={{flex: 1, justifyContent: 'center'}}> <View style={{flex: 1, justifyContent: 'center'}}>
<AppText i18nKey={'Rules'} /> <AppText i18nKey={'Rules'} />
</View> </View>
<Icon name={'right'} size={20} color={R.colors.color777} /> <Icon name={'right'} size={20} color={R.colors.color777} />
</TouchableOpacity> </TouchableOpacity>
<TouchableOpacity style={styles.container}> <TouchableOpacity
onPress={() => navigation.navigate(FAQSSMARTOTP)}
style={styles.container}>
<Image style={styles.imgIcon} source={R.images.faq} /> <Image style={styles.imgIcon} source={R.images.faq} />
<View style={{flex: 1, justifyContent: 'center'}}> <View style={{flex: 1, justifyContent: 'center'}}>
<AppText i18nKey={'FAQs'} /> <AppText i18nKey={'FAQs'} />
......
import React from 'react';
import {View, Text} from 'react-native';
import HeaderBack from '../../../components/Header/HeaderBack';
import {WebView} from 'react-native-webview';
const FAQs = (props) => {
return (
<View style={{flex: 1}}>
<HeaderBack isWhite={true} title={'FAQs'} />
<WebView
androidHardwareAccelerationDisabled={true}
source={{
uri: 'http://api.dcvinvest.com/webview/smart-otp/faqs',
}}
/>
</View>
);
};
export default FAQs;
import React from 'react';
import {View, Text} from 'react-native';
import {getFontXD} from '../../../Config/Functions';
import HeaderBack from '../../../components/Header/HeaderBack';
import {WebView} from 'react-native-webview';
const RulesSmartOTP = (props) => {
return (
<View style={{flex: 1}}>
<HeaderBack isWhite={true} title={'Rules'} />
<WebView
androidHardwareAccelerationDisabled={true}
source={{
uri: 'http://api.dcvinvest.com/webview/smart-otp/term-and-condition',
}}
/>
</View>
);
};
export default RulesSmartOTP;
...@@ -88,3 +88,7 @@ export const CONFIRMOTPSMART = 'CONFIRMOTPSMART'; ...@@ -88,3 +88,7 @@ export const CONFIRMOTPSMART = 'CONFIRMOTPSMART';
export const CHANGESMARTOTP = 'CHANGESMARTOTP'; export const CHANGESMARTOTP = 'CHANGESMARTOTP';
export const CONFIRMCHANGESMARTOTP = 'CONFIRMCHANGESMARTOTP'; export const CONFIRMCHANGESMARTOTP = 'CONFIRMCHANGESMARTOTP';
export const RULESSMARTOTP = 'RULESSMARTOTP';
export const FAQSSMARTOTP = 'FAQSSMARTOTP';
...@@ -65,6 +65,9 @@ import ConfirmOTPSmart from '../Screens/SmartOTP/ConfirmOTPSmart'; ...@@ -65,6 +65,9 @@ import ConfirmOTPSmart from '../Screens/SmartOTP/ConfirmOTPSmart';
import ChangeSmartOTP from '../Screens/SmartOTP/ChangeSmartOTP/ChangeSmartOTP'; import ChangeSmartOTP from '../Screens/SmartOTP/ChangeSmartOTP/ChangeSmartOTP';
import ConfirmChangeSmartOTP from '../Screens/SmartOTP/ChangeSmartOTP/ConfirmChangeSmartOTP'; import ConfirmChangeSmartOTP from '../Screens/SmartOTP/ChangeSmartOTP/ConfirmChangeSmartOTP';
import FAQs from '../Screens/SmartOTP/WebView/FAQs';
import RulesSmartOTP from '../Screens/SmartOTP/WebView/RulesSmartOTP';
import * as ScreenName from './ScreenNames'; import * as ScreenName from './ScreenNames';
const Stack = createStackNavigator(); const Stack = createStackNavigator();
...@@ -168,6 +171,10 @@ function MyStack(props) { ...@@ -168,6 +171,10 @@ function MyStack(props) {
<Stack.Screen name={ScreenName.NEWPASSWORD} component={NewPassWord} /> <Stack.Screen name={ScreenName.NEWPASSWORD} component={NewPassWord} />
<Stack.Screen name={ScreenName.PRODUCTDETAIL} component={ProductDetail} /> <Stack.Screen name={ScreenName.PRODUCTDETAIL} component={ProductDetail} />
<Stack.Screen name={ScreenName.SMARTOTP} component={SmartOTP} /> <Stack.Screen name={ScreenName.SMARTOTP} component={SmartOTP} />
<Stack.Screen name={ScreenName.FAQSSMARTOTP} component={FAQs} />
<Stack.Screen name={ScreenName.RULESSMARTOTP} component={RulesSmartOTP} />
<Stack.Screen <Stack.Screen
name={ScreenName.ENTER_PASSWORD_SMART_OTP} name={ScreenName.ENTER_PASSWORD_SMART_OTP}
component={EnterPasswordSmartOTP} component={EnterPasswordSmartOTP}
......
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