npm set registry "${npm_registry}"&&[[$(npm config list | grep registry)=="registry = \"${npm_registry}\""]]|| error "Couldn't set registry to ${npm_registry}"
info "npm registry set. Run 'sinopia' in a new Terminal"
info " - Make sure it prints 'http address - ${npm_registry}'"
info " - Make sure ${npm_registry} shows no old versions"
sed -i.bak -E "s/(\"version\":[[:space:]]*\").+(\")/\"version\": \"${RELEASE}.0-rc\"/g""package.json"|| error "Couldn't update version for npm"
sed -i.bak -E "s/(s.version[[:space:]]{13}=[[:space:]].+)/s.version = \"${RELEASE}.0-rc\"/g""React.podspec"|| error "Couldn't update version for CocoaPods"
grep "\"react-native\": \"\^${RELEASE}.0-rc\"""/tmp/${project_name}/package.json"|| error "Incorrect version number in /tmp/${project_name}/package.json"
grep -E "com.facebook.react:react-native:\\+""${project_name}/android/app/build.gradle"|| error "Dependency in /tmp/${project_name}/android/app/build.gradle must be com.facebook.react:react-native:+"