Skip to content

assigns all react-native components / apis to global scope

Notifications You must be signed in to change notification settings

indivisable/react-native-globals

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 (
           <View>
               <Text>Hi I didn't have to import anything to start making this component</Text>
           </View>
       );
   }
};

module.exports = TheComponent;

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

About

assigns all react-native components / apis to global scope

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 51.0%
  • Objective-C 29.0%
  • Python 10.8%
  • Java 9.2%