diff --git a/client/react-native/Makefile b/client/react-native/Makefile index 5617cf9655..7cc979b8af 100644 --- a/client/react-native/Makefile +++ b/client/react-native/Makefile @@ -21,15 +21,14 @@ $(ROOT)/node_modules $(DEPS): %/node_modules: %/package.json .PHONY: $(DIRS) $(DIRS): %: %/node_modules $(ROOT)/node_modules - cd $@ && yarn start .PHONY: android android: gomobile mobile - cd mobile && yarn android + cd mobile && yarn android && yarn start .PHONY: ios ios: gomobile mobile - cd mobile && yarn ios --device $(device) + cd mobile && yarn ios --device $(device) && yarn start .PHONY: $(FCLEAN) $(FCLEAN): diff --git a/client/react-native/mobile/package.json b/client/react-native/mobile/package.json index 683d062330..b4205aa49b 100644 --- a/client/react-native/mobile/package.json +++ b/client/react-native/mobile/package.json @@ -4,8 +4,8 @@ "scripts": { "postinstall": "mkdir -p node_modules/@berty && yarn link:react-native && yarn link:berty", "start": "lsof -t -i :8081 || react-native start --reset-cache --root $PWD", - "android": "react-native run-android", - "ios": "react-native run-ios", + "android": "react-native run-android --no-packager", + "ios": "react-native run-ios --no-packager", "test": "jest", "link:react-native": "ln -fs ../../node_modules/react-native node_modules/react-native", "link:berty": "ln -fs ../../../common node_modules/@berty/common"