This application(SampleMpos) is a cross-platform application built using React-Native. This project demostrates the working of react-native-mpos-wrapper as module in the react-native application.
This application is scaffolded using npx react-native init <ProjectName>
. For more details you can follow up the setup instructions here.
- Run command
yarn
in the project root folder. This command will install all the react-native dependencies. If you do not have yarn installed on your system you can refer this section for mac os users. - To check if
yarn
was installed successfully, one can verify it by hitting the commandyarn --version
. This will list the installed version of yarn.
- To run android app via command line use :
yarn run android
. - To run the project via Android Studio,, import the project's(i.e
<root>/android
) android folder in Android Studio. Before running the application via Android Studio, you will have to start the development server using the commandyarn start
from project root.
- To run iOS, firstly we need to install the pods, that can be done via following command
cd ios && pod install
- Once the pods are successfully installed, we can use
yarn run ios
command to run iOS application - To run the project via XCode, you need to import the workspace folder located at
<root>/ios/SampleMposApp.xcworkspace
Note:
- Make sure that you React-Native setup on local machine.
yarn run android
oryarn run ios
will automatically start the development server running at 8081 port(by default)