-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
The Grizzly Labs
committed
Apr 9, 2024
1 parent
926aafc
commit 1113c8f
Showing
10 changed files
with
46 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,43 @@ | ||
# Genius Scan SDK for React Native demo | ||
|
||
## Installation | ||
If you don't have it already, install react native CLI | ||
``` | ||
npm install -g react-native-cli | ||
``` | ||
|
||
And then, from the demo folder: | ||
1. Ensure [you are using the recommended version of Node](https://reactnative.dev/docs/environment-setup?guide=native). For instance, for React Native 0.71, you need to use Node 14 or newer. | ||
|
||
Install project dependencies | ||
``` | ||
npm install | ||
``` | ||
``` | ||
nvm install 14 | ||
nvm alias default 14 | ||
``` | ||
For iOS, run the command `pod install` from the `ios` folder. | ||
2. If you don't have it already, install the React Native CLI: | ||
Run the app in a simulator or on a phone | ||
``` | ||
npx react-native run-ios | ||
npx react-native run-android | ||
``` | ||
``` | ||
npm install -g react-native-cli | ||
``` | ||
3. Install the project dependencies: | ||
``` | ||
cd demo | ||
npm install | ||
``` | ||
4. For iOS, install the Cocoapods dependencies: | ||
``` | ||
cd ios | ||
pod install | ||
``` | ||
5. Run the app: | ||
``` | ||
npx react-native run-ios | ||
npx react-native run-android | ||
``` | ||
For iOS you can open the `ios/demo.xcworkspace` project: | ||
``` | ||
xed ios/demo.xcworkspace | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters