I am new to react-native. I want a toggle button with 2 text blocks. How this can be achieved with react native?. The toggler should animate when clicking buy and sell texts respectively.
Following is the image reference for the design.
I am new to react-native. I want a toggle button with 2 text blocks. How this can be achieved with react native?. The toggler should animate when clicking buy and sell texts respectively.
Following is the image reference for the design.
Copyright © 2021 Jogjafile Inc.
You can try this library. This does not match the design exactly but it's a toggle with two text blocks. If you want something that looks exactly like your image I'm afraid you will have to build it yourself. You could use the mentioned library as a starting point.