├── .gitignore
├── LICENSE
├── README.md
├── package-lock.json
├── package.json
├── src
├── index.ts
├── location.ts
├── types.ts
└── weather.ts
└── tsconfig.json
/.gitignore:
--------------------------------------------------------------------------------
1 | lib/
2 | node_modules
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2022 Pierre Gabriel
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # React Native Weather API
2 |
3 | Real-time weather information for any location on Earth, including over 200,000 cities.
4 |
5 | ## Installation
6 |
7 | ```bash
8 | npm install react-native-weather-api
9 | ```
10 | You must also install @react-native-community/geolocation:
11 |
12 | ```bash
13 | npm install @react-native-community/geolocation
14 | ```
15 |
16 | ## Permission
17 |
18 | **Android**
19 |
20 | To request access to location, you need to add the following line to your app's AndroidManifest.xml:
21 |
22 | ```xml
23 |
24 | ```
25 |
26 | **iOS**
27 |
28 | You need to include the `NSLocationWhenInUseUsageDescription` key in Info.plist to enable geolocation when using the app. Geolocation is enabled by default when you create a project with `react-native init`.
29 |
30 | ## Usage
31 |
32 | This plugin uses the OpenWeather API to show weather information, so you need to create an account on https://openweathermap.org and get your key. Free accounts are allowed to perform 1,000,000 calls/month and 60 calls/minute.
33 |
34 | ### Import the plugin
35 |
36 | ```javascript
37 | import { getWeather, dailyForecast, showWeather, getLocation } from 'react-native-weather-api';
38 | ```
39 |
40 | ### API calls
41 |
42 | **By geographic coordinates**
43 |
44 | When using coordinates, you can't pass the city and ZIP code parameters.
45 |
46 | ```javascript
47 | let temp;
48 | let wind;
49 |
50 | getLocation().then((location) => {
51 |
52 | getWeather({
53 |
54 | key: "your_key",
55 | lat: location.coords.latitude,
56 | lon: location.coords.longitude,
57 | unit: "metric"
58 |
59 | }).then(() => {
60 |
61 | let data = new showWeather();
62 | temp = data.temp;
63 | wind = data.wind;
64 | });
65 |
66 | });
67 | ```
68 |
69 | **By city name**
70 |
71 | When calling by city name, you can't pass the latitude, longitude, and ZIP code parameters.
72 |
73 | ```javascript
74 | let temp;
75 | let wind;
76 |
77 | getWeather({
78 |
79 | key: "your_key",
80 | city: "London",
81 | country: "GB"
82 |
83 | }).then(() => {
84 |
85 | let data = new showWeather();
86 | temp = data.temp;
87 | wind = data.wind;
88 | });
89 | ```
90 |
91 | **By ZIP code**
92 |
93 | This method doesn't seem to work with all countries. For example, the API didn't recognize ZIP codes from Brazil during my tests.
94 |
95 | Don't pass the latitude, longitude, and city parameters.
96 |
97 | ```javascript
98 | let temp;
99 | let wind;
100 |
101 | getWeather({
102 |
103 | key: "your_key",
104 | zip_code: "90001",
105 | country: "US"
106 |
107 | }).then(() => {
108 |
109 | let data = new showWeather();
110 | temp = data.temp;
111 | wind = data.wind;
112 | });
113 | ```
114 |
115 | ## Parameters
116 |
117 | `key` - Your OpenWeather key.
118 | `lat` - Latitude.
119 | `lon` - Longitude.
120 | `city` - City name, e.g., Los Angeles.
121 | `country` - Country code, e.g., US, CA, GB.
122 | `zip_code` - Numeric or alphanumeric codes, e.g., 90001.
123 | `unit` - If you set it to `metric`, the temperature will be in Celsius and wind speed in meter/s. If you choose `imperial`, the temperature will be in Fahrenheit and wind speed in miles/h. If you don't set this parameter, Kelvin and meter/s are the standards.
124 | `lang` - The output language for the city name and description fields, e.g., en, pt_br, fr, es.
125 |
126 | ## Identifiers
127 |
128 | `name` - Location name.
129 | `country` - Country name.
130 | `temp` - Temperature.
131 | `temp_min` - Minimum temperature.
132 | `temp_max` - Maximum temperature.
133 | `feels_like` - Feels like temperature.
134 | `wind` - Wind speed.
135 | `pressure` - Pressure.
136 | `humidity` - Humidity.
137 | `description` - Weather description, e.g., clear sky.
138 | `icon` - Weather icon URL.
139 |
140 | ## Daily forecast for 7 days
141 |
142 | With only one call, you can get weather information for 7 days plus the current day.
143 |
144 | ```javascript
145 | let temp_min;
146 | let temp_max;
147 | let description;
148 |
149 | getLocation().then((location) => {
150 |
151 | dailyForecast({
152 |
153 | key: "your_key",
154 | lat: location.coords.latitude,
155 | lon: location.coords.longitude,
156 | unit: "metric"
157 |
158 | }).then((data) => {
159 |
160 | temp_min = data.daily[0].temp.min;
161 | temp_max = data.daily[0].temp.max;
162 | description = data.daily[0].weather[0].description;
163 | });
164 |
165 | });
166 | ```
167 |
168 | The `dailyForecast` function only accepts latitude and longitude to determine the location. In the example, we retrieved the minimum and maximum temperature and the weather description for the current day. If we wanted information for the following day, we'd change `daily[0]` to `daily[1]`, and so on up to `daily[7]`. To see all the fields available besides the ones we used in this section, create an `alert(JSON.stringify(data, null, 4))`, but don't forget to remove it before building for production.
169 |
170 | ## 5 day / 3 hour forecast data
171 |
172 | Forecast for 5 days with data every 3 hours.
173 |
174 | ```javascript
175 | let temp;
176 | let description;
177 |
178 | getLocation().then((location) => {
179 |
180 | fiveDaysForecast({
181 |
182 | key: "your_key",
183 | lat: location.coords.latitude,
184 | lon: location.coords.longitude,
185 | unit: "metric"
186 |
187 | }).then((data) => {
188 |
189 | temp = data.list[0].main.temp;
190 | description = data.list[0].weather[0].description;
191 | });
192 |
193 | });
194 | ```
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-native-weather-api",
3 | "version": "3.4.3",
4 | "description": "Real-time weather information for any location on Earth, including over 200,000 cities.",
5 | "main": "lib/commonjs/index.js",
6 | "module": "lib/module/index.js",
7 | "react-native": "src/index.ts",
8 | "types": "lib/typescript/index.d.ts",
9 | "files": [
10 | "lib/",
11 | "src/"
12 | ],
13 | "repository": {
14 | "type": "git",
15 | "url": "https://github.com/pierreamgabriel/react-native-weather-api.git"
16 | },
17 | "keywords": [
18 | "React Native",
19 | "weather",
20 | "weather api"
21 | ],
22 | "author": {
23 | "name": "Pierre Gabriel",
24 | "email": "pierregabrieldev@gmail.com"
25 | },
26 | "license": "MIT",
27 | "bugs": {
28 | "url": "https://github.com/pierreamgabriel/react-native-weather-api/issues"
29 | },
30 | "homepage": "https://github.com/pierreamgabriel/react-native-weather-api",
31 | "scripts": {
32 | "build": "bob build"
33 | },
34 | "react-native-builder-bob": {
35 | "source": "src",
36 | "output": "lib",
37 | "targets": [
38 | "commonjs",
39 | "module",
40 | "typescript"
41 | ]
42 | },
43 | "dependencies": {
44 | "@react-native-community/geolocation": "^3.0.4"
45 | },
46 | "devDependencies": {
47 | "@types/react": "^18.2.44",
48 | "react": "18.3.1",
49 | "react-native": "0.76.2",
50 | "react-native-builder-bob": "^0.32.1",
51 | "typescript": "^5.2.2"
52 | }
53 | }
54 |
--------------------------------------------------------------------------------
/src/index.ts:
--------------------------------------------------------------------------------
1 | export {getLocation} from './location';
2 |
3 | export {
4 | getWeather,
5 | dailyForecast,
6 | showWeather,
7 | fiveDaysForecast,
8 | } from './weather';
9 |
10 | export type {CallProps, WeatherData, GeolocationResponse} from './types';
11 |
--------------------------------------------------------------------------------
/src/location.ts:
--------------------------------------------------------------------------------
1 | import Geolocation, {
2 | GeolocationResponse,
3 | } from '@react-native-community/geolocation';
4 |
5 | export async function getLocation(): Promise {
6 | return new Promise((resolve, reject) => {
7 | Geolocation.getCurrentPosition(resolve, reject);
8 | });
9 | }
10 |
--------------------------------------------------------------------------------
/src/types.ts:
--------------------------------------------------------------------------------
1 | type Lang =
2 | | 'af'
3 | | 'al'
4 | | 'ar'
5 | | 'az'
6 | | 'bg'
7 | | 'ca'
8 | | 'cz'
9 | | 'da'
10 | | 'de'
11 | | 'el'
12 | | 'en'
13 | | 'eu'
14 | | 'fa'
15 | | 'fi'
16 | | 'fr'
17 | | 'gl'
18 | | 'he'
19 | | 'hi'
20 | | 'hr'
21 | | 'hu'
22 | | 'id'
23 | | 'it'
24 | | 'ja'
25 | | 'kr'
26 | | 'la'
27 | | 'lt'
28 | | 'mk'
29 | | 'no'
30 | | 'nl'
31 | | 'pl'
32 | | 'pt'
33 | | 'pt_br'
34 | | 'ro'
35 | | 'ru'
36 | | 'sv'
37 | | 'se'
38 | | 'sk'
39 | | 'sl'
40 | | 'sp'
41 | | 'es'
42 | | 'sr'
43 | | 'th'
44 | | 'tr'
45 | | 'ua'
46 | | 'uk'
47 | | 'vi'
48 | | 'zh_cn'
49 | | 'zh_tw'
50 | | 'zu';
51 |
52 | export interface CallProps {
53 | key: string;
54 | lat?: number;
55 | lon?: number;
56 | city?: string;
57 | country?: string;
58 | zip_code?: string;
59 | unit?: 'standard' | 'metric' | 'imperial';
60 | lang?: Lang;
61 | }
62 |
63 | export type WeatherData = {
64 | name: string;
65 | sys: {country: string};
66 | main: {
67 | temp: number;
68 | temp_min: number;
69 | temp_max: number;
70 | feels_like: number;
71 | pressure: number;
72 | humidity: number;
73 | };
74 | wind: {speed: number};
75 | weather: [{description: string; icon: string}];
76 | icon: string;
77 | };
78 |
79 | export type ShowWeatherProps = {
80 | name: string;
81 | country: string;
82 | wind: number;
83 | description: string;
84 | icon: string;
85 | } & WeatherData['main'];
86 |
87 | export type GeolocationResponse = {
88 | coords: {
89 | latitude: number;
90 | longitude: number;
91 | altitude: number | null;
92 | accuracy: number;
93 | altitudeAccuracy: number | null;
94 | heading: number | null;
95 | speed: number | null;
96 | };
97 | timestamp: number;
98 | };
99 |
--------------------------------------------------------------------------------
/src/weather.ts:
--------------------------------------------------------------------------------
1 | import { CallProps, ShowWeatherProps, WeatherData } from "./types";
2 |
3 | let current: WeatherData;
4 |
5 | export async function getWeather(args: CallProps) {
6 | let result;
7 | let URL;
8 |
9 | if (args.city != null) {
10 | URL =
11 | "https://api.openweathermap.org/data/2.5/weather?q=" +
12 | args.city +
13 | "," +
14 | args.country +
15 | "&appid=" +
16 | args.key +
17 | "&units=" +
18 | args.unit +
19 | "&lang=" +
20 | args.lang;
21 | } else if (args.zip_code != null) {
22 | URL =
23 | "https://api.openweathermap.org/data/2.5/weather?zip=" +
24 | args.zip_code +
25 | "," +
26 | args.country +
27 | "&appid=" +
28 | args.key +
29 | "&units=" +
30 | args.unit +
31 | "&lang=" +
32 | args.lang;
33 | } else {
34 | URL =
35 | "https://api.openweathermap.org/data/2.5/weather?lat=" +
36 | args.lat +
37 | "&lon=" +
38 | args.lon +
39 | "&appid=" +
40 | args.key +
41 | "&units=" +
42 | args.unit +
43 | "&lang=" +
44 | args.lang;
45 | }
46 |
47 | await fetch(URL)
48 | .then((res) => res.json())
49 | .then((data) => {
50 | current = data;
51 | result = Promise.resolve("Success");
52 | });
53 |
54 | return result;
55 | }
56 |
57 | export async function dailyForecast(args: CallProps) {
58 | let result;
59 | let URL =
60 | "https://api.openweathermap.org/data/2.5/onecall?lat=" +
61 | args.lat +
62 | "&lon=" +
63 | args.lon +
64 | "&exclude=hourly,minutely&appid=" +
65 | args.key +
66 | "&units=" +
67 | args.unit +
68 | "&lang=" +
69 | args.lang;
70 |
71 | await fetch(URL)
72 | .then((res) => res.json())
73 | .then((data) => {
74 | result = data;
75 | });
76 |
77 | return result;
78 | }
79 |
80 | export async function fiveDaysForecast(args: CallProps) {
81 | let result;
82 | let URL =
83 | "https://api.openweathermap.org/data/2.5/forecast?lat=" +
84 | args.lat +
85 | "&lon=" +
86 | args.lon +
87 | "&appid=" +
88 | args.key +
89 | "&units=" +
90 | args.unit +
91 | "&lang=" +
92 | args.lang;
93 |
94 | await fetch(URL)
95 | .then((res) => res.json())
96 | .then((data) => {
97 | result = data;
98 | });
99 |
100 | return result;
101 | }
102 |
103 | export class showWeather implements ShowWeatherProps {
104 | name: string;
105 | country: string;
106 | temp: number;
107 | temp_min: number;
108 | temp_max: number;
109 | feels_like: number;
110 | wind: number;
111 | pressure: number;
112 | humidity: number;
113 | description: string;
114 | icon: string;
115 |
116 | constructor() {
117 | this.name = current.name;
118 | this.country = current.sys.country;
119 | this.temp = current.main.temp;
120 | this.temp_min = current.main.temp_min;
121 | this.temp_max = current.main.temp_max;
122 | this.feels_like = current.main.feels_like;
123 | this.wind = current.wind.speed;
124 | this.pressure = current.main.pressure;
125 | this.humidity = current.main.humidity;
126 | this.description = current.weather[0].description;
127 | this.icon =
128 | "https://openweathermap.org/img/w/" + current.weather[0].icon + ".png";
129 | }
130 | }
131 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | // prettier-ignore
2 | {
3 | "compilerOptions": {
4 | /* Visit https://aka.ms/tsconfig.json to read more about this file */
5 |
6 | /* Projects */
7 | // "incremental": true, /* Enable incremental compilation */
8 | // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
9 | // "tsBuildInfoFile": "./", /* Specify the folder for .tsbuildinfo incremental compilation files. */
10 | // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects */
11 | // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
12 | // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
13 |
14 | /* Language and Environment */
15 | "target": "esnext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
16 | "lib": ["es2017"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
17 | "jsx": "react-native", /* Specify what JSX code is generated. */
18 | // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
19 | // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
20 | // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h' */
21 | // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
22 | // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.` */
23 | // "reactNamespace": "", /* Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit. */
24 | // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
25 | // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
26 |
27 | /* Modules */
28 | "module": "commonjs", /* Specify what module code is generated. */
29 | // "rootDir": "./", /* Specify the root folder within your source files. */
30 | "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
31 | // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
32 | "paths": {
33 | "@ds": ["./imports"],
34 | }, /* Specify a set of entries that re-map imports to additional lookup locations. */
35 | // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
36 | // "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */
37 | // "types": [], /* Specify type package names to be included without being referenced in a source file. */
38 | // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
39 | "resolveJsonModule": true, /* Enable importing .json files */
40 | // "noResolve": true, /* Disallow `import`s, `require`s or ``s from expanding the number of files TypeScript should add to a project. */
41 |
42 | /* JavaScript Support */
43 | "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files. */
44 | // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
45 | // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`. */
46 |
47 | /* Emit */
48 | // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
49 | // "declarationMap": true, /* Create sourcemaps for d.ts files. */
50 | // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
51 | // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
52 | // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output. */
53 | // "outDir": "./", /* Specify an output folder for all emitted files. */
54 | // "removeComments": true, /* Disable emitting comments. */
55 | // "noEmit": true, /* Disable emitting files from a compilation. */
56 | // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
57 | // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types */
58 | // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
59 | // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
60 | // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
61 | // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
62 | // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
63 | // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
64 | // "newLine": "crlf", /* Set the newline character for emitting files. */
65 | // "stripInternal": true, /* Disable emitting declarations that have `@internal` in their JSDoc comments. */
66 | // "noEmitHelpers": true, /* Disable generating custom helper functions like `__extends` in compiled output. */
67 | // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
68 | // "preserveConstEnums": true, /* Disable erasing `const enum` declarations in generated code. */
69 | // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
70 | // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
71 |
72 | /* Interop Constraints */
73 | "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
74 | "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
75 | "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */
76 | // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
77 | "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
78 |
79 | /* Type Checking */
80 | "strict": true, /* Enable all strict type-checking options. */
81 | // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied `any` type.. */
82 | // "strictNullChecks": true, /* When type checking, take into account `null` and `undefined`. */
83 | // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
84 | // "strictBindCallApply": true, /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */
85 | // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
86 | // "noImplicitThis": true, /* Enable error reporting when `this` is given the type `any`. */
87 | // "useUnknownInCatchVariables": true, /* Type catch clause variables as 'unknown' instead of 'any'. */
88 | // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
89 | // "noUnusedLocals": true, /* Enable error reporting when a local variables aren't read. */
90 | // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read */
91 | // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
92 | // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
93 | // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
94 | // "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */
95 | // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
96 | // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type */
97 | // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
98 | // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
99 |
100 | /* Completeness */
101 | // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
102 | "skipLibCheck": true /* Skip type checking all .d.ts files. */
103 | },
104 | "exclude": [
105 | "node_modules", "babel.config.js", "metro.config.js", "jest.config.js"
106 | ],
107 | "include": ["src/index.ts"]
108 | }
109 |
--------------------------------------------------------------------------------