If you are using expo, execute below command "expo upgrade" this will upgrade/downgrade the package versions as per the supported versions.