This project was developed in React Native and designed only for studies purpose. Maybe it's is a work in progress.
For now this app works only in Android platform. I've not set anything for iOS yet, but you can do so if you wish ;-)
As the title suggest, there is only the CRUD features in this app. I tried developing a simple Product Registration app, just for practicing basic concepts in React Native.
Each products have only three data: Code, Name and Quantity.
The data persist through the SQLite database.
I built this same project under different types of Data Persistence:
- AsyncStorage version
- Realm version (coming...)
There is only two simple screens:
-
The Product Form screen is used for update and register a new product. Yes, the form Screen is a Dynamic component to be able to perform those two tasks.
-
The ProductList screen list all registered products. There is a Button on the footer of screen to remove ALL registered products .
I know only two ways to develop an app in React Native:
- By using Expo (Easier way for noobs)
- By use React Native CLI
Both ways require specifics settings inside the Project.
However I developed it under second way (React Native CLI).
So, in order to be able to build the app, make sure to follow the React Native documentation step-by-step for React Native CLI mode (Not Expo way) according your Operation System (macOS, Windows or GNU/Linux).
If you're used with Expo, try adapt the project by following this Expo documentation.
PS: I've not tested it yet. I'm just giving you what documentation says!
In my opinion the best way to install/uninstall Nodejs is by use NVM manager:
This tools allow you install and use node version as quick as installing an app from Playstore.
Once the development environment get done and the project get cloned, follow the following steps:
- In command line, go to the project folder
- Type:
npm install
- Once the previous command get finished, open another command line (terminal) and type:
npm start
- Go back to the previous terminal and type:
npm run android