parent
6730829161
commit
dbd5641cd2
3 changed files with 81 additions and 28 deletions
@ -1,20 +1,39 @@ |
||||
import React, {useState} from 'react'; |
||||
import {View, Text, Dimensions} from 'react-native'; |
||||
import tw from 'tailwind-rn'; |
||||
import React, { useState } from "react"; |
||||
import { connect } from "react-redux"; |
||||
import { View, Text, Dimensions } from "react-native"; |
||||
|
||||
const width = Dimensions.get('window').width; |
||||
const width = Dimensions.get("window").width; |
||||
|
||||
function Or(props) { |
||||
//style
|
||||
import tw from "tailwind-rn"; |
||||
import fontSize from "../constants/fontSize"; |
||||
|
||||
function Or({ mobile }) { |
||||
return ( |
||||
<View |
||||
style={[tw('w-full flex flex-row justify-between items-center my-3')]}> |
||||
style={[tw("w-full flex flex-row justify-between items-center my-3")]} |
||||
> |
||||
<View |
||||
style={{width: '43%', height: 1, backgroundColor: '#EFEFEF'}}></View> |
||||
<Text style={{fontSize: width / 27, color: '#C2C2C2'}}>یا</Text> |
||||
style={{ width: "43%", height: 1, backgroundColor: "#EFEFEF" }} |
||||
></View> |
||||
<Text |
||||
style={{ |
||||
fontSize: mobile ? fontSize.base : fontSize.lg, |
||||
color: "#C2C2C2", |
||||
marginVertical: 10, |
||||
}} |
||||
> |
||||
یا |
||||
</Text> |
||||
<View |
||||
style={{width: '43%', height: 1, backgroundColor: '#EFEFEF'}}></View> |
||||
style={{ width: "43%", height: 1, backgroundColor: "#EFEFEF" }} |
||||
></View> |
||||
</View> |
||||
); |
||||
} |
||||
|
||||
export default Or; |
||||
const mapStateToProps = (state) => ({ |
||||
mobile: state.publicApi.mobile, |
||||
}); |
||||
|
||||
export default connect(mapStateToProps)(Or); |
||||
|
Loading…
Reference in new issue