में प्रतिक्रिया देशी प्रतिक्रिया मैं एक नमूना डिजाइन, जब मैं विभिन्न IOS उपकरणों यहाँ में यह जाँच मेरी कोड है:में विभिन्न IOS उपकरणों के लिए फ़ॉन्ट आकार सेट करने का तरीका देशी
render() {
return (
<View style={styles.container}>
<View style={styles.body}>
<TouchableHighlight style={styles.facebook} >
<View style={styles.row}>
<Image style={styles.icon} source={require('image!fb')}/>
<Text style={styles.facebookText} >Continue with Facebook</Text>
</View>
</TouchableHighlight>
</View>
</View>
)
}
};
var styles = StyleSheet.create({
container:{
marginTop: 65,
flexDirection:'column',
flex:1,
backgroundColor:'transparent'
},
body:{
flex:.5
},
facebook:{
marginTop: 25,
height: 50,
padding: 10,
marginRight: 40,
marginLeft: 40,
backgroundColor: '#1A8A29',
},
row:{
flexDirection:'row',
},
facebookText:{
marginLeft: 8,
fontSize: 20,
color: 'white',
alignSelf:'center'
},
icon:{
marginTop: 3,
marginLeft: 5,
width: 25,
height: 25
}
})
जब मैं में जाँच iphone-6 और 5s फ़ॉन्ट समस्या किसी भी एक आ रहा है मेरी मदद इस समस्या को हल करने के लिए, कैसे प्रतिक्रिया देशी ज्यादा appriciated
आईफोन 6/एस प्लस है (चौड़ाई: 414 स्केल 3 एक साथ गुणा: 1242) - आईफोन 6/एस (चौड़ाई: 375 स्केल 2 एक साथ गुणा: 750) - आईफोन 5/एस (चौड़ाई: 320 स्केल 2 एक साथ गुणा: 640) - आईफोन 4 एस (चौड़ाई: 320 स्केल 2 एक साथ गुणा: 640 – Chipe
आप https://www.npmjs.com/package/react-native-device-info से DeviceInfo.getDeviceId() का भी उपयोग कर सकते हैं। –