Skip to content

FlaviooLima/react-native-tactics-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Native Android Tactics Creator

This is a test inHouse component. For now....

Getting started

There are many ways to do this, here's the way I do it:

  1. Do npm install git+https://github.com/flaviotobi/react-native-tactics-creator.git --save in your main project.

  2. Link the library:

    Automatic: react-native link react-native-tactics-creator

    Manual:

    • Add the following to android/settings.gradle:

      include ':react-native-tactics-creator'
      project(':react-native-tactics-creator').projectDir = new File(settingsDir, '../node_modules/react-native-tactics-creator/android')
      
    • Add the following to android/app/build.gradle:

      ...
      
      dependencies {
          ...
          compile project(':react-native-tactics-creator')
      }
    • Add the following to android/app/src/main/java/**/MainApplication.java:

      import com.tactical.creator.TacticalCreatorPackage; // add this for react-native-android-library-boilerplate
      
      public class MainApplication extends Application implements ReactApplication {
      
          @Override
          protected List<ReactPackage> getPackages() {
              return Arrays.<ReactPackage>asList(
                  new MainReactPackage(),
                  new TacticalCreatorPackage()     // add this for react-native-android-library-boilerplate
              );
          }
      }
  3. Simply import/require it by the name defined in your library's package.json:

    import TacticsCreator from 'react-native-tactics-creator'
    <TacticsCreator /> 

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages