How to set text to upper case in react native
How to set
<Text> some text </Text>
as upper case in react native
<Text style={{}}> Test </Text>
Need to show that Test as TEST.
react-native
add a comment |
How to set
<Text> some text </Text>
as upper case in react native
<Text style={{}}> Test </Text>
Need to show that Test as TEST.
react-native
13
<Text style={{}}> {'Test'.toUpperCase()} </Text>
– Cherniv
Mar 5 '16 at 10:52
add a comment |
How to set
<Text> some text </Text>
as upper case in react native
<Text style={{}}> Test </Text>
Need to show that Test as TEST.
react-native
How to set
<Text> some text </Text>
as upper case in react native
<Text style={{}}> Test </Text>
Need to show that Test as TEST.
react-native
react-native
edited Aug 2 '17 at 17:43
brbrr
841113
841113
asked Mar 5 '16 at 10:48
ThivyaThivya
1,25911120
1,25911120
13
<Text style={{}}> {'Test'.toUpperCase()} </Text>
– Cherniv
Mar 5 '16 at 10:52
add a comment |
13
<Text style={{}}> {'Test'.toUpperCase()} </Text>
– Cherniv
Mar 5 '16 at 10:52
13
13
<Text style={{}}> {'Test'.toUpperCase()} </Text>
– Cherniv
Mar 5 '16 at 10:52
<Text style={{}}> {'Test'.toUpperCase()} </Text>
– Cherniv
Mar 5 '16 at 10:52
add a comment |
2 Answers
2
active
oldest
votes
@Cherniv Thanks for the answer
<Text style={{}}> {'Test'.toUpperCase()} </Text>
6
This is not really a solution. What if I want to animate text to uppercase?
– Michal
Aug 4 '17 at 19:32
8
@Michal what would text animation to upper case look like, it sounds like a super cool effect I just can't imagine it right now.
– Noitidart
Nov 1 '17 at 16:04
1
@Michal Use Lottie to do cool animations, even with text. You can create custom animations via Adobe After Effects, Example.
– Yeshan Jay
Feb 16 '18 at 9:02
add a comment |
iOS textTransform support has been added to react-native in 0.56 version. It accepts one of these options:
- none
- uppercase
- lowercase
- capitalize
The actual commit and documentation
Example:
<View>
<Text style={{ textTransform: 'uppercase'}}>
This text should be uppercased.
</Text>
<Text style={{ textTransform: 'capitalize'}}>
Mixed:{' '}
<Text style={{ textTransform: 'lowercase'}}>
lowercase{' '}
</Text>
</Text>
</View>
Update:
The support was added to Android in 0.57.4, but there is a bug see GitHub issue
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f35813156%2fhow-to-set-text-text-to-upper-case-in-react-native%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
@Cherniv Thanks for the answer
<Text style={{}}> {'Test'.toUpperCase()} </Text>
6
This is not really a solution. What if I want to animate text to uppercase?
– Michal
Aug 4 '17 at 19:32
8
@Michal what would text animation to upper case look like, it sounds like a super cool effect I just can't imagine it right now.
– Noitidart
Nov 1 '17 at 16:04
1
@Michal Use Lottie to do cool animations, even with text. You can create custom animations via Adobe After Effects, Example.
– Yeshan Jay
Feb 16 '18 at 9:02
add a comment |
@Cherniv Thanks for the answer
<Text style={{}}> {'Test'.toUpperCase()} </Text>
6
This is not really a solution. What if I want to animate text to uppercase?
– Michal
Aug 4 '17 at 19:32
8
@Michal what would text animation to upper case look like, it sounds like a super cool effect I just can't imagine it right now.
– Noitidart
Nov 1 '17 at 16:04
1
@Michal Use Lottie to do cool animations, even with text. You can create custom animations via Adobe After Effects, Example.
– Yeshan Jay
Feb 16 '18 at 9:02
add a comment |
@Cherniv Thanks for the answer
<Text style={{}}> {'Test'.toUpperCase()} </Text>
@Cherniv Thanks for the answer
<Text style={{}}> {'Test'.toUpperCase()} </Text>
answered Mar 5 '16 at 10:59
ThivyaThivya
1,25911120
1,25911120
6
This is not really a solution. What if I want to animate text to uppercase?
– Michal
Aug 4 '17 at 19:32
8
@Michal what would text animation to upper case look like, it sounds like a super cool effect I just can't imagine it right now.
– Noitidart
Nov 1 '17 at 16:04
1
@Michal Use Lottie to do cool animations, even with text. You can create custom animations via Adobe After Effects, Example.
– Yeshan Jay
Feb 16 '18 at 9:02
add a comment |
6
This is not really a solution. What if I want to animate text to uppercase?
– Michal
Aug 4 '17 at 19:32
8
@Michal what would text animation to upper case look like, it sounds like a super cool effect I just can't imagine it right now.
– Noitidart
Nov 1 '17 at 16:04
1
@Michal Use Lottie to do cool animations, even with text. You can create custom animations via Adobe After Effects, Example.
– Yeshan Jay
Feb 16 '18 at 9:02
6
6
This is not really a solution. What if I want to animate text to uppercase?
– Michal
Aug 4 '17 at 19:32
This is not really a solution. What if I want to animate text to uppercase?
– Michal
Aug 4 '17 at 19:32
8
8
@Michal what would text animation to upper case look like, it sounds like a super cool effect I just can't imagine it right now.
– Noitidart
Nov 1 '17 at 16:04
@Michal what would text animation to upper case look like, it sounds like a super cool effect I just can't imagine it right now.
– Noitidart
Nov 1 '17 at 16:04
1
1
@Michal Use Lottie to do cool animations, even with text. You can create custom animations via Adobe After Effects, Example.
– Yeshan Jay
Feb 16 '18 at 9:02
@Michal Use Lottie to do cool animations, even with text. You can create custom animations via Adobe After Effects, Example.
– Yeshan Jay
Feb 16 '18 at 9:02
add a comment |
iOS textTransform support has been added to react-native in 0.56 version. It accepts one of these options:
- none
- uppercase
- lowercase
- capitalize
The actual commit and documentation
Example:
<View>
<Text style={{ textTransform: 'uppercase'}}>
This text should be uppercased.
</Text>
<Text style={{ textTransform: 'capitalize'}}>
Mixed:{' '}
<Text style={{ textTransform: 'lowercase'}}>
lowercase{' '}
</Text>
</Text>
</View>
Update:
The support was added to Android in 0.57.4, but there is a bug see GitHub issue
add a comment |
iOS textTransform support has been added to react-native in 0.56 version. It accepts one of these options:
- none
- uppercase
- lowercase
- capitalize
The actual commit and documentation
Example:
<View>
<Text style={{ textTransform: 'uppercase'}}>
This text should be uppercased.
</Text>
<Text style={{ textTransform: 'capitalize'}}>
Mixed:{' '}
<Text style={{ textTransform: 'lowercase'}}>
lowercase{' '}
</Text>
</Text>
</View>
Update:
The support was added to Android in 0.57.4, but there is a bug see GitHub issue
add a comment |
iOS textTransform support has been added to react-native in 0.56 version. It accepts one of these options:
- none
- uppercase
- lowercase
- capitalize
The actual commit and documentation
Example:
<View>
<Text style={{ textTransform: 'uppercase'}}>
This text should be uppercased.
</Text>
<Text style={{ textTransform: 'capitalize'}}>
Mixed:{' '}
<Text style={{ textTransform: 'lowercase'}}>
lowercase{' '}
</Text>
</Text>
</View>
Update:
The support was added to Android in 0.57.4, but there is a bug see GitHub issue
iOS textTransform support has been added to react-native in 0.56 version. It accepts one of these options:
- none
- uppercase
- lowercase
- capitalize
The actual commit and documentation
Example:
<View>
<Text style={{ textTransform: 'uppercase'}}>
This text should be uppercased.
</Text>
<Text style={{ textTransform: 'capitalize'}}>
Mixed:{' '}
<Text style={{ textTransform: 'lowercase'}}>
lowercase{' '}
</Text>
</Text>
</View>
Update:
The support was added to Android in 0.57.4, but there is a bug see GitHub issue
edited Nov 23 '18 at 15:27
answered Sep 3 '18 at 23:02
BlackBlack
97011022
97011022
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f35813156%2fhow-to-set-text-text-to-upper-case-in-react-native%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
13
<Text style={{}}> {'Test'.toUpperCase()} </Text>
– Cherniv
Mar 5 '16 at 10:52