Skip to content

lamantin-group/react-native-library

Repository files navigation

What is it

Bootstrap template for create libraries in React Native environment

How to use it

Clone repository in development folder (it is created automatically)

git clone https://github.com/whalemare/react-native-library.git react-native-library-name

Move into cloned folder

cd react-native-library-name

Check that sample started correctly

npm run start:first

Reset git repository

npm run git:reset

Update library info in package.json to your own

  "name": "react-native-library", // required for correct work renaming
  "author": "whalemare", // required for correct work renaming
  "version": "1.0.0",
  "description": "Library bootstrap",
  "license": "Apache 2.0",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/whalemare/react-native-library.git"
  }

If you have a question or need specific feature, feel free to open an issue or create pull request.

Roadmap

Common

  • TypeScript for library and example
  • Properly configured example for library
  • Autocomplete is working
  • ESLint and Prettier
  • .npmignore publish template
  • Automatically generating typings when publish
  • Hot library replacement in development
  • MIT License template
  • VSCode configuration for run debugger
  • Bug report template in .github/ISSUE_TEMPLATE folder
  • Hot reloading for example (working only live reload)
  • CI for checking build status

Android features

  • Android min api 16
  • Android target api 29
  • Kotlin 1.3.50
  • Gradle 5.6.2
  • Added most popular library-source repositories (jcenter, google, jitpack)
  • Fix local.properties to work on independent environment
  • Extensions mapper to language types from ReactNative types

iOS features

  • iOS library module support
  • Swift support for library ios module

The MIT License

Copyright (c) 2010-2019 Lamantin Group, LTD. https://lamantin.group

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.