https://github.com/exc304/react-playground
👀 React Native playground for visual regression testing ✨
https://github.com/exc304/react-playground
android ios javascript react react-native typescript visual-regression-testing
Last synced: 3 months ago
JSON representation
👀 React Native playground for visual regression testing ✨
- Host: GitHub
- URL: https://github.com/exc304/react-playground
- Owner: exc304
- License: mit
- Created: 2023-01-13T17:23:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-29T16:10:04.000Z (almost 3 years ago)
- Last Synced: 2025-03-08T15:28:35.342Z (over 1 year ago)
- Topics: android, ios, javascript, react, react-native, typescript, visual-regression-testing
- Language: TypeScript
- Homepage:
- Size: 3.01 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-owl-demo
> A simple react-native app that uses _react-native-owl_ with examples. Also used for the development of the library.
## Running the app
First, install the dependencies:
```sh
yarn install
```
Then run the metro bundler:
```sh
yarn start
```
### iOS
Install the pods:
```sh
cd ios/ && pod install && cd ..
```
Then run the app:
```sh
yarn ios
```
### Android
Run the app:
```sh
yarn android
```
## Development
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:
```sh
# 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.
## Scripts
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. |