If I try to define a textalign
with justify
value in reactjs native
, I get the error message that only four values are supported: auto, left, right, center. Is it possible to work around this, and define textalign
with justify
? Below is the sample code:
var styleTest = StyleSheet.create({
title: {
fontSize : 20,
color : 'rgb(0,0,255)',
textAlign: "justify"
}
});
Just to clarify, I see this when trying out reactjs native
for ios
, not in reactjs
.
The above error happens when calling StyleSheet.create
method which calls StyleSheetValidation.validateStyle
method. I guess in order to create a non-supported CSS property, I have to do a workaround and call CSS directly. I am curious how to go about including other stylesheet properties that are not supported, in a simple way. I couldn't find documentation on this. Pointers will be very much appreciated.