diff --git a/.eslintignore b/.eslintignore index 342b6a9c..d72e120e 100644 --- a/.eslintignore +++ b/.eslintignore @@ -2,7 +2,6 @@ babel.config.js babel.config.cjs.js babel.config.esm.js metro.config.js -tailwind.config.js release.config.js jest.config.js jest.setup.js diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 00000000..f4f88b2e --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,2 @@ +# Global rule: +* @MatiPl01 @kacperklusek diff --git a/.github/workflows/check_pr_title.yml b/.github/workflows/check_pr_title.yml index 43f5517c..b52c1dcf 100644 --- a/.github/workflows/check_pr_title.yml +++ b/.github/workflows/check_pr_title.yml @@ -12,6 +12,7 @@ permissions: write-all jobs: validate_pr_title: name: Validate PR title + if: ${{ github.actor != 'dependabot[bot]' }} runs-on: ubuntu-latest steps: - uses: amannn/action-semantic-pull-request@v5 diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..943447ee --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) [2023] [Mateusz Łopaciński] + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 39891f23..f3e67ee8 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,129 @@ + + + +
+ + # React Native Smart Graph -[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) +### Dynamic Graph Visualization for React Native + +#### Effortlessly create and interact with graph structures in your apps + +![npm](https://img.shields.io/npm/dw/react-native-smart-graph?color=ffd53e) +![GitHub issues](https://img.shields.io/github/issues/MatiPl01/react-native-smart-graph?color=ffd53e) +![GitHub contributors](https://img.shields.io/github/contributors/MatiPl01/react-native-smart-graph?color=ffd53e) +![GitHub Release Date](https://img.shields.io/github/release-date/MatiPl01/react-native-smart-graph?color=ffd53e) +![GitHub](https://img.shields.io/github/license/MatiPl01/react-native-smart-graph?color=ffd53e) + +![GitHub forks](https://img.shields.io/github/forks/MatiPl01/react-native-smart-graph?style=social) +![GitHub Repo stars](https://img.shields.io/github/stars/MatiPl01/react-native-smart-graph?style=social) +![GitHub watchers](https://img.shields.io/github/watchers/MatiPl01/react-native-smart-graph?style=social) + +
+ + +

+
+ + Table of Contents + +
+
    +
  1. +

    + Getting Started +

    + +
  2. +
  3. +

    + Usage +

    +

    +
  4. +
+
+
+

+ + +

⚙ Getting Started

+ +### Prerequisites + +#### Peer dependencies installation + +This library uses a few external libraries that you should install before installing the library. You will need these libraries to build custom graph components, create custom animations or handle events. + +Run one of the following commands, depending on your package manager: + +- yarn + +```sh +yarn add @shopify/react-native-skia react-native-reanimated react-native-gesture-handler react-native-svg +``` + +- npm + +```sh +npm i @shopify/react-native-skia react-native-reanimated react-native-gesture-handler react-native-svg +``` + +#### Adding Reanimated Babel plugin + +You will also need to add the `'react-native-reanimated/plugin'` Babel plugin to make Reanimated. Your `babel.config.js` should look like this after change: + +```js +module.exports = { + presets: ..., + plugins: [ + ... + 'react-native-reanimated/plugin' + ] + ] +}; +``` + +#### Pods installation (iOS only) + +Before running the app on the iOS device, you will have to take one more step and install required Pods: + +```sh +npx pod-install ios +``` + +

(back to top)

+ +### Installation + +In order to install the library, you will need to run one of the following commands, depending on the package manager you use in your project. All required dependencies will be automatically installed. + +- yarn + +```sh +yarn add react-native-smart-graph +``` + +- npm + +```sh +npm i react-native-smart-graph +``` + +

(back to top)

+ + + +

🤹 Basic Usage

+ +

(back to top)

diff --git a/docs/images/logo-banner.png b/docs/images/logo-banner.png new file mode 100644 index 00000000..426270af Binary files /dev/null and b/docs/images/logo-banner.png differ diff --git a/package.json b/package.json index 9d2e8862..3420f22a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "react-native-smart-graph", "description": "React Native library for creating animated dynamic graphs", - "version": "0.0.0-development", + "version": "0.0.5-development", "author": { "name": "Mateusz Łopaciński", "email": "lop.mateusz.2001@gmail.com" @@ -63,6 +63,19 @@ "files": [ "dist" ], + "homepage": "https://github.com/MatiPl01/react-native-smart-graph#readme", + "keywords": [ + "graph", + "react-native", + "react-native-animated-dynamic-graph", + "react-native-animated-graph", + "react-native-animated-smart-graph", + "react-native-dynamic-graph", + "react-native-graph", + "react-native-smart-graph", + "smart-graph" + ], + "license": "MIT", "lint-staged": { "*.{js,jsx,ts,tsx}": [ "eslint --fix", diff --git a/tsconfig.json b/tsconfig.json index 190a1599..2dee5048 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "@tsconfig/react-native/tsconfig.json", "compilerOptions": { - "types": ["jest", "node"], "module": "ESNext", "allowUnreachableCode": false, "allowUnusedLabels": false,