First ensure the required version is installed. If only one version is there then there is no need for this step. If you are using multiple versions then use the following command to change:
sudo xcode-select -switch /Applications/Xcode12-4.app/Contents/Developer/
Now your react native for IOS will use the above Xcode.
Cheers and Peace Out!!!