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
- Host: GitHub
- URL: https://github.com/kyle-ssg/react-native-globals
- Owner: kyle-ssg
- Created: 2017-01-14T11:50:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-09-27T13:32:45.000Z (almost 5 years ago)
- Last Synced: 2025-09-18T22:05:03.646Z (10 months ago)
- Topics: boilerplate, react-native
- Language: JavaScript
- Size: 105 KB
- Stars: 17
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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**