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