The application code is in JavaScript, so I started looking for a JS library that can encrypt data. I wanted to make retrieval of data difficult to some extent, if the device ends up in the wrong hands. This application stores some sensitive date locally (it is a standalone mobile application) and I did not want to store the data in clear text. I have been working intermittently on a HTML5 mobile application for some time now. Wish Facebook makes changing packaging port easier than the above process. If above changes do not fix the problem, you may want to try replacing all references to port 8081 in the files in node_modules/react-native folder. node_modules/react-native/React/Base/RCTBundleURLProvider.m.node_modules/react-native/React/ReactLegacy.xcodeproj.node_modules/react-native/React/React.xcodeproj.node_modules/react-native/Libraries/Core/Devtools/getDevServer.js.Change references to port 8081 in following files –.In the version of React-Native I am using, it is in the following code –Ĭommand : ' -port ', default : 8090, parse : (val : string ) = > Number (val ), } , Opne node_modules/react-native/local-cli/server/server.js and change port 8081 to the port you want to run the packager on.So the next thing to do was find a way to change the port of Ract-Native packager. Killing the agent is not an option for me. It turned out that McAfee agent was running on the same port. But sudo lsof -i :8081did show the process. However simple lsof command did not show any process. Run react-native upgrade in the project folder.Remove spaces from the folder path of the project.If any process is running then kill it – kill -9 On Mac you can check this by running command lsof -i :8081. Make sure 8081 port is free and not taken by any application.Here are some of the possible solutions I found on the web – After spending a couple of hours trying to debug this issue, I thought I would write about the solution that worked for me.
0 Comments
Leave a Reply. |