cipolleschi / rn-tester-library

Sample library for react native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rn-tester-library

Showcase a RN library with the new architecture and backward compatible with the old one.

The chosen library is a manager that can be used to check the current notification authorization status and to ask the system for permissions.

Installation

npm install rn-tester-library

Usage

import { AuthorizationStatus, askPermissions, getCurrentStatus } from 'rn-tester-library';

// ...

const currentState: AuthorizationStatus = await getCurrentStatus();
if (currentState == 'Unknown') {
    let newState = askPermissions()
    // do something with the new state
}

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

TODO:

  • Add CI
  • Fix flipper and folly. This issue is the same as reported here and it has been fixed in this way. Not sure yet how to fix this in Xcode/template. Need further investigation. Mitigation path: disable Flipper from podfile.
  • Fix yarn command in template to bootstrap/run on an available simulator.

About

Sample library for react native

License:MIT License


Languages

Language:Java 43.7%Language:Objective-C 28.8%Language:TypeScript 11.4%Language:JavaScript 7.9%Language:Ruby 6.4%Language:Shell 0.8%Language:C 0.6%Language:Swift 0.4%