ajith-ab / react-native-receive-sharing-intent

A React Native plugin that enables React Native apps to receive sharing photos, videos, text, urls or any other file types from another app
MIT License
297 stars 108 forks source link

How to contribute? #112

Closed tallen11 closed 2 years ago

tallen11 commented 2 years ago

I'm trying to make some changes that I need for my app to this library, but following the CONTRIBUTING.md file, I get a bunch of errors when running yarn typescript

docs/src/theme/Footer/index.tsx:9:18 - error TS2307: Cannot find module 'clsx' or its corresponding type declarations.

9 import clsx from 'clsx';
                   ~~~~~~

docs/src/theme/Footer/index.tsx:11:18 - error TS2307: Cannot find module '@docusaurus/Link' or its corresponding type declarations.

11 import Link from '@docusaurus/Link';
                    ~~~~~~~~~~~~~~~~~~

docs/src/theme/Footer/index.tsx:12:46 - error TS2307: Cannot find module '@docusaurus/theme-common' or its corresponding type declarations.

12 import {FooterLinkItem, useThemeConfig} from '@docusaurus/theme-common';
                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~

docs/src/theme/Footer/index.tsx:13:24 - error TS2307: Cannot find module '@docusaurus/useBaseUrl' or its corresponding type declarations.

13 import useBaseUrl from '@docusaurus/useBaseUrl';
                          ~~~~~~~~~~~~~~~~~~~~~~~~

docs/src/theme/Footer/index.tsx:14:20 - error TS2307: Cannot find module './styles.module.css' or its corresponding type declarations.

14 import styles from './styles.module.css';
                      ~~~~~~~~~~~~~~~~~~~~~

docs/src/theme/Footer/index.tsx:15:54 - error TS2307: Cannot find module '@theme/ThemedImage' or its corresponding type declarations.

15 import ThemedImage, {Props as ThemedImageProps} from '@theme/ThemedImage';
                                                        ~~~~~~~~~~~~~~~~~~~~

docs/src/theme/Footer/index.tsx:71:25 - error TS7006: Parameter 'linkItem' implicitly has an 'any' type.

71             {links.map((linkItem, i) => (
                           ~~~~~~~~

docs/src/theme/Footer/index.tsx:71:35 - error TS7006: Parameter 'i' implicitly has an 'any' type.

71             {links.map((linkItem, i) => (
                                     ~

docs/src/theme/Footer/index.tsx:80:42 - error TS7006: Parameter 'item' implicitly has an 'any' type.

80                     {linkItem.items.map((item, key) =>
                                            ~~~~

docs/src/theme/Footer/index.tsx:80:48 - error TS7006: Parameter 'key' implicitly has an 'any' type.

80                     {linkItem.items.map((item, key) =>

am I missing something?

How do I prepare this project to be pulled in as a dependency and to be ready for a pull request?

tallen11 commented 2 years ago

I had to reformat all the files but I eventually figured it out.