Some doubts about Cordova

all the app I have done before are react-native, and now I want to try a cordova, technology stack that is cordova + react. There are a few doubts, please do not hesitate to give me advice. The code has been modified in
1.RN so that it can be refreshed by cmd + r. How can I refresh the cordova project when I develop it on the simulator? You can"t change it once, just build once, then copy the file after build into the www/ path, and then cordova run ios .
2. what does cordova serve do?
does 3.cordova have anything like a community? Where does everyone go to exchange questions? (not to mention cordova Chinese website, I feel half dead)

Mar.18,2021

Native cordova does not provide hot reload functionality, but many frameworks have been implemented, such as you can take a look at ionic. If the react scaffolding you use doesn't help you implement hot reload, you can look for it. There are many scaffolding on github that help you implement react hot reload under cordova. For example:

or
https://github.com/themadruss.

disclaimer: I have never used either, just for reference, but I really should solve the hot reload problem first, so that the development efficiency will be greatly improved.


Hello, I have a question to ask: how can react call plugin, in the cordova+react framework? I use cordova-plugin-camera, now, but there are so few Camera undefined,Cordova documents in Camera.DestinationType.FILE_URI that I can't find out how to solve it.

Menu