Clone the repository and run the following commands from the root directory of fe-pilot
npm install
npm start
2. Open terminal and Go to any working react application
in your system, where you want to implement FE-Pilot
npm link {PATH}/fe-pilot/
Note: PATH is the location of cloned fe-pilot folder
import PhoneBook from 'fe-pilot/PhoneBook';
import Share from 'fe-pilot/Share';
import { TextToSpeech, TextToSpeechStart, TextToSpeechStop } from 'fe-pilot/TextToSpeech';
<PhoneBook />
<Share />
<TextToSpeech text="Password field is not contained in a form: (More info: ">
<TextToSpeechStart>Start Icon</TextToSpeechStart>
<TextToSpeechStop>Stop Icon</TextToSpeechStop>
</TextToSpeech>
bug: TypeError: Cannot read properties of null (reading 'useState')
solution Go to fe-pilot in terminal and run below command
npm link {PATH}/{Your Repo}
Note: PATH is the location of your repo
folder. Your Repo
is the name of the repo.
5. Hurrah...! Now fe-pilot repo is available inside the node_modules of your project, and waching change in fe-pilot.
fe-pilot
└── __app
└── component
├──TextToSpeech (component name)
| ├──index.js (top level exports/re-exports)
| ├──TextToSpeech.js (parent component)
| ├──TextToSpeechStart.js (child component)
| └──TextToSpeechStop.js (child component)
graph TD;
fe-pilot-->__app;
__app-->component;
component-->AutoFillOtp;
component-->CopyToClipboard;
component-->LiveLocation;
component-->LocateMe;
component-->PhoneBook;
component-->Scanner;
component-->Share;
component-->TextToSpeech;
component-->VoiceRecognition;
Important
App Structure from root to component
graph TD;
Scanner--->ScannerCamera;
Scanner--->ScannerClose;
Scanner--->ScannerFacing;
Scanner--->ScannerFlash;
Scanner--->ScannerGallery;
Scanner--->ScannerScanBox;
Scanner--->ScannerClick;
Important
Camera component Structure
graph TD;
TextToSpeech--->TextToSpeechStart;
TextToSpeech--->TextToSpeechStop;
Important
TextToSpeech component Structure
graph TD;
VoiceRecognition--->VoiceRecognitionIcon;
VoiceRecognition--->VoiceRecognitionModal;
Important
VoiceRecognition component Structure