An open API service indexing awesome lists of open source software.

https://github.com/kyle-ssg/react-native-globals

assigns all react-native components / apis to global scope
https://github.com/kyle-ssg/react-native-globals

boilerplate react-native

Last synced: 4 months ago
JSON representation

assigns all react-native components / apis to global scope

Awesome Lists containing this project

README

          

***react-native-globals***
Speeds development up for ***project specific*** components, it assigns react native apis and components to the global scope so you don't have to worry/diagnose several imports for every page/widget.

```
import 'react-native-globals';
const TheComponent = class extends React.Component {
displayName: 'TheComponent';

constructor (props, context) {
super(props, context);
this.state = {};
}

render () {
return (

Hi I didn't have to import anything to start making this component

);
}
};

module.exports = TheComponent;

```

*note: this is part of the 1% where I feel using global scope is fine and helps development.*

**Since react-native v 0.44.0 this package will keep inline to react native versioning**