-
-
Notifications
You must be signed in to change notification settings - Fork 576
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
Showing
1 changed file
with
33 additions
and
36 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,36 +1,33 @@ | ||
# react-native-material-kit demo | ||
|
||
## RNMK resources | ||
- [GitHub][RNMK] | ||
- [Docs (annotated source)][docs] | ||
- [Change logs][releases] | ||
|
||
## Debugging local RNMK module | ||
|
||
- Checkout [RNMK Demo] | ||
- Clone [RNMK] into the *Libraries* directory (inside the demo project) | ||
- Edit `react-native.config.js` file, replace `<absolute_project_root>` with your local project directory | ||
- Link your local RNMK module to the demo project | ||
```sh | ||
cd rnmk-demo | ||
yarn | ||
|
||
(cd Libraries/react-native-material-kit && yarn && yarn build) | ||
(cd iOS && pod install) | ||
``` | ||
- Commands | ||
- `yarn start` to start the dev server | ||
- `yarn iosx` build your app and starts it on iOS simulator | ||
- `yarn android` build your app and starts it on a connected Android emulator or device | ||
- or run any `react-native` commands: `yarn cli [options] [command]` | ||
|
||
## License | ||
[MIT][license] | ||
|
||
[RNMK Demo]: https://github.com/xinthink/rnmk-demo | ||
[RNMK]: https://github.com/xinthink/react-native-material-kit | ||
[docs]: http://xinthink.github.io/react-native-material-kit/docs/index.html | ||
[releases]: https://github.com/xinthink/react-native-material-kit/releases | ||
[license]: https://raw.githubusercontent.com/xinthink/react-native-material-kit/master/LICENSE.md | ||
[doesn't resolve symbolic links]: https://github.com/facebook/react-native/issues/637 | ||
[ios guide]: https://github.com/xinthink/react-native-material-kit#ios | ||
# Example APP | ||
|
||
## Build & run the example app | ||
|
||
Checkout the [repo] first. | ||
|
||
Build & launch: | ||
|
||
```sh | ||
yarn # install dependencies | ||
|
||
cd example | ||
yarn # install dependencies of the example app | ||
(cd iOS && pod install) # prepare iOS xcode workspace | ||
yarn start # start the react-native packager | ||
yarn ios # or yarn android, launch the example app | ||
``` | ||
|
||
Available npm scripts: | ||
- `yarn start` to start the dev server | ||
- `yarn ios` build your app and starts it on iOS simulator | ||
- `yarn iosx` build your app and starts it on iPhone X simulator | ||
- `yarn android` build your app and starts it on a connected Android emulator or device | ||
- or run any `react-native` commands: `yarn cli [options] [command]` | ||
|
||
## Resources | ||
|
||
- :point_right: [Getting Started Guide] | ||
- :point_right: [API Docs] | ||
|
||
[repo]: https://github.com/xinthink/react-native-material-kit | ||
[Getting Started Guide]: https://github.com/xinthink/react-native-material-kit#getting-started | ||
[API Docs]: https://rnmk.xinthink.com/api/react-native-material-kit/ |