I use last version of react and react-native on Windows 10 OS.
I have a strange behavior when i try to run my code on phone or to compile debug apk.
1. Run on the phone
> react-native run-android
the process run gradlew building (i think) , i get on the phone an OLD version of my code while this step is not finished
When it finished another console with node automatically open with loading dependency graphand a bundling step is done ( Bundling index.android.js [development, non-minified] 100.0% (960/960), done.) after that my apps on the phone get refreshed with latest code .
maybe it is the regular senario case i don't know.
2. Compile APK
i run
> react-native bundle --dev false --platform android --entry-file index.android.js --bundle-output ./android/app/build/intermediates/assets/debug/index.android.bundle --assets-dest ./android/app/build/intermediates/res/merged/debug
> cd android/
> ./gradlew assembleDebug
i get the apk android\app\build\outputs\apk\app-x86-debug.apk
I install it on the phone or virtual emulator , but i get THE OLD version of my code and note the latest so cannot send it to other tester.
What i'm doing wrong ?
PS : I try to clean with gradlew >cd android ; ./gradlew clean ; before compiling. same results

