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.
npm install rn-tester-library
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
}
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
- 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.