I have a problem in the React Native application that I am creating. I have a stopwatch, and since each numeric character has a different width, as time increases, the text starts moving everywhere, as opposed to staying in measure with a fixed width.
For example, if you have an iOS mobile device, open the default clock app that comes with it and use your stopwatch. You will notice that each character in the 00:00:00 series has a fixed width, or at least it seems so. If one of 0 turns into 1, although it would seem that 1 has a smaller width, it still takes up the same amount of space, and therefore the text does not jump over all the places.
However, in my React Native app this is not the case. 1 takes up less width than 0 or any other number, so it makes the text jump everywhere and it is really annoying.
Here is a good, working version (note how, with every change in the number, the width of the "container" in which the number is located never changes?) This ensures a smooth transition:

Now take a look at my version of the disaster:

I can not find a solution to this problem.
I feel that one way to solve this problem is to place each character in a separate <Text> with a given width, but I know that will be redundant. There should be an easier way to do this.
Any guidance would be appreciated.
source share