-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
35ee42a
commit bb2d34f
Showing
1 changed file
with
14 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
# LiferayScreensReactNative | ||
|
||
## INSTRUCTIONS FOR USE | ||
## INSTRUCTIONS TO USE THIS PROJECT | ||
|
||
If you want to run the demo app of this repository you have to do the following steps: | ||
|
||
1- Execute `npm install` | ||
1. Execute `npm install` | ||
|
||
2-. In ios folder execute: `pod install` | ||
2. In ios folder execute: `pod install` | ||
|
||
3-. In android folder create local.properties file with the next line: | ||
|
||
3. In android folder create local.properties file with the next line: | ||
``` | ||
in Windows sdk.dir = C:\\Users\\USERNAME\\AppData\\Local\\Android\\sdk | ||
in macOS sdk.dir = /Users/USERNAME/Library/Android/sdk | ||
in linux sdk.dir = /home/USERNAME/Android/Sdk | ||
Replace USERNAME with your user name | ||
``` | ||
## INSTRUCTIONS TO USE SCREENLETS IN YOUR REACT NATIVE PROJECT | ||
|
||
You can see a complete installation in this [video](https://youtu.be/ob8YC4ofc5k). | ||
|
||
As you can see in the video, the main steps are: | ||
* Copy the folder “ios/LiferayScreenlets” into the “ios” folder of your React Native project. | ||
* Copy the folder “android/app/src/main/java/LiferayScreenlets” into the “android” folder of your React Native project, in the same path. | ||
* In the file MainApplication.java you have to include the packages to export. The best way to do that is to copy the getPackages() method from the MainApplication.java of this project. | ||
* The final step is similar to the first two. Copy the LiferayScreens folder from our root path and copy it into your root path. |