A react-native Project is about one XCode Project and one Android Project. (for pure js code, there’s no need to do clean)
So, what you need would be
Clean XCode Project with
cd ios xcodebuild clean
And then clean Android Project with
cd android ./gradlew clean
You can simply write a batch file for it.