0.1.5 • Published 9 months ago

react-native-type-cop v0.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

react native type cop

The react native typescript police

This Library is in progress, feel free to help me improve that

Motivation

By using typescript, we notice that in the web we can simply not allowing the build happens when there's some type error, and when we have the error, it is displayed in the browser at that moment, but currently we don't have it in the mobile, so here's where react-native-type-cop cames for, it's a dev tool to help us get the typescript error directly in the emulator/simulator the dev is running, after adding it to the project, it will check for every single typescript error in the project, and display it in the device while you're developing.

Demo

https://github.com/thalesgelinger/react-native-type-cop/assets/55005400/edcf17db-2922-4bc6-ad1c-2044afe734fa

Installation

npm install react-native-type-cop

Usage

on App.tsx

import { Typecop } from 'react-native-type-cop';

// ...

return <>
  <Typecop/>
  ...
</>

on top of metro.config.js

require('react-native-type-cop/lib/module/typecop');
// ...

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

0.1.5

9 months ago

0.1.4

9 months ago

0.1.3

9 months ago

0.1.2

9 months ago

0.1.1

9 months ago

0.1.0

9 months ago