How to set text to upper case in react native












40
















How to set <Text> some text </Text> as upper case in react native




<Text style={{}}> Test </Text>


Need to show that Test as TEST.










share|improve this question




















  • 13





    <Text style={{}}> {'Test'.toUpperCase()} </Text>

    – Cherniv
    Mar 5 '16 at 10:52
















40
















How to set <Text> some text </Text> as upper case in react native




<Text style={{}}> Test </Text>


Need to show that Test as TEST.










share|improve this question




















  • 13





    <Text style={{}}> {'Test'.toUpperCase()} </Text>

    – Cherniv
    Mar 5 '16 at 10:52














40












40








40


5







How to set <Text> some text </Text> as upper case in react native




<Text style={{}}> Test </Text>


Need to show that Test as TEST.










share|improve this question

















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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














  • 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












2 Answers
2






active

oldest

votes


















80














@Cherniv Thanks for the answer



<Text style={{}}> {'Test'.toUpperCase()} </Text>





share|improve this answer



















  • 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





















12














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






share|improve this answer

























    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    80














    @Cherniv Thanks for the answer



    <Text style={{}}> {'Test'.toUpperCase()} </Text>





    share|improve this answer



















    • 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


















    80














    @Cherniv Thanks for the answer



    <Text style={{}}> {'Test'.toUpperCase()} </Text>





    share|improve this answer



















    • 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
















    80












    80








    80







    @Cherniv Thanks for the answer



    <Text style={{}}> {'Test'.toUpperCase()} </Text>





    share|improve this answer













    @Cherniv Thanks for the answer



    <Text style={{}}> {'Test'.toUpperCase()} </Text>






    share|improve this answer












    share|improve this answer



    share|improve this answer










    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
















    • 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















    12














    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






    share|improve this answer






























      12














      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






      share|improve this answer




























        12












        12








        12







        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






        share|improve this answer















        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







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 23 '18 at 15:27

























        answered Sep 3 '18 at 23:02









        BlackBlack

        97011022




        97011022






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            404 Error Contact Form 7 ajax form submitting

            How to know if a Active Directory user can login interactively

            TypeError: fit_transform() missing 1 required positional argument: 'X'