vitalets / react-native-extended-stylesheet

Extended StyleSheets for React Native
MIT License
2.93k stars 132 forks source link

letterSpacing will work or not ? #80

Closed navinprasadk closed 6 years ago

vitalets commented 6 years ago

@navinprasadk Could you show the code?

navinprasadk commented 6 years ago
import { Dimensions } from 'react-native';
import EStyleSheet from 'react-native-extended-stylesheet';

const imageWidth = Dimensions.get('window').width / 2;
export default EStyleSheet.create({
  container: {
    alignItems: 'center',
  },
  containerImage: {
    alignItems: 'center',
    justifyContent: 'center',
    width: imageWidth,
    height: imageWidth,
  },
  image: {
    width: imageWidth / 2,
  },
  text: {
    fontWeight: '600',
    fontSize: 20,
    marginTop: 20,
    color: '$white',
    letterSpacing:'2',
  },
});

This is the code @vitalets

vitalets commented 6 years ago

@navinprasadk According to RN docs letterSpacing is supported only for iOS. For Android I found this package: react-native-letter-spacing