Ändern der Textfarbe von <TextInput/> in ReactNative

Möchte ich ändern Sie die text-Farbe & Platzhalter Textfarbe in einem android-reagieren native app:

render: function() {
return (
  <View>
    <TextInput
      placeholder='Add Credit'
      placeholderTextColor='ffffff'
      textAlign='center'
    />
  </View>
);
},
var styles = StyleSheet.create({


creditInput: {
    backgroundColor: "#3f51b5",
    color: "#ffffff", //Expecting this to change input text color

},

(Referenzierung: https://facebook.github.io/react-native/docs/textinput.html#content)

placeholderTextColor und backgroundColor wie erwartet ändern, aber nicht die Eingabe von text-Farbe. Benutze ich das falsche Attribut, oder ist dies ein reagieren,-Muttersprachler/android bug?

InformationsquelleAutor user1618840 | 2015-11-14
Schreibe einen Kommentar