A simple react-native app that uses react-native-owl with examples. Also used for the development of the library.
First, install the dependencies:
yarn install
Then run the metro bundler:
yarn start
Install the pods:
cd ios/ && pod install && cd ..
Then run the app:
yarn ios
Run the app:
yarn android
To use a local version of react-native-owl, first, navigate to the top level of the repository (one level up from the current directory) and run the following commands:
# Assuming you are inside react-native-owl - ie. ~/Projects/react-native-owl
yarn build # or watch
Now, the example app will be using the local version of react-native-owl.
As seen in package.json
.
Name | Description |
---|---|
yarn owl:build:ios |
Builds the app for iOS. A wrapper around xcodebuild . |
yarn owl:test:ios |
Runs the tests, takes a screenshot and compares the images. If passed the --update argument, it generates fresh baseline screenshots. |
yarn owl:build:android |
Builds the app for Android. A wrapper around the gradle build command. |
yarn owl:test:android |
Runs the tests, takes a screenshot and compares the images. If passed the --update argument, it generates fresh baseline screenshots. |