Skip to content

[android]the Textattri letterSpacing is neverworked #10622

Description

@aqnaruto

image
here is source code ,i just add a letterSpacing attribute

/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 * @flow
 */

import React, { Component } from 'react';
import {
  AppRegistry,
  StyleSheet,
  Text,
  View
} from 'react-native';

export default class AwesomeProject extends Component {
  render() {
    return (
      <View style={styles.container}>
        <Text style={styles.welcome}>
          Welcome to React Native!
        </Text>
        <Text style={styles.instructions}>
          To get started, edit index.android.js
        </Text>
        <Text style={styles.instructions}>
          Double tap R on your keyboard to reload,{'\n'}
          Shake or press menu button for dev menu
        </Text>
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
  welcome: {
    fontSize: 20,
    textAlign: 'center',
    margin: 10,
  },
  instructions: {
    textAlign: 'center',
    color: '#333333',
    marginBottom: 5,
    letterSpacing:3333
  },
});

AppRegistry.registerComponent('AwesomeProject', () => AwesomeProject);

using rn version 3.6 ,android platform.
this atrri is worked on rn offical website,but not worked on real device ,so this is a bug definitely

Activity

  1. leeight commented on Oct 29, 2016

    @leeight
    Contributor

    letterSpacing has not landed on Android: #9420

  2. aqnaruto commented on Oct 29, 2016

    @aqnaruto
    Author

    thanks @leeight

  3. nihgwu commented on Oct 29, 2016

    @nihgwu
    Contributor

    so why not just close this one?

  4. aqnaruto commented on Oct 30, 2016

    @aqnaruto
    Author

    close #10622

  5. christoph-jerolimov commented on Mar 29, 2017

    @christoph-jerolimov
    Contributor

    See also #13199

  6. locked as resolved and limited conversation to collaborators on May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions