louiszawadzki / react-native-tested-base64

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-tested-base64

A base64 library with android and iOS native tests.

Testing resources

Running tests

First, setup the package:

yarn
(cd example && yarn)

Android

To run all tests:

(cd android && ./gradlew clean build)

To run only the linter:

(cd android && ./gradlew ktlintCheck)

To fix the linter:

(cd android && ./gradlew ktlintFormat)

To run only the tests:

(cd android && ./gradlew testDebugUnitTest)

iOS

Open the example project in Xcode xed example/ios and run the tests from Test explorer.

Installation

npm install react-native-tested-base64

Usage

import { encode } from 'react-native-tested-base64';

// ...

const result = await encode('my string');
const decoded = await decode(result);

Contributing

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

License

MIT


Made with create-react-native-library

About

License:MIT License


Languages

Language:Kotlin 29.5%Language:Ruby 20.6%Language:Objective-C++ 14.5%Language:Objective-C 12.7%Language:TypeScript 11.2%Language:JavaScript 10.6%Language:C 0.5%Language:Swift 0.3%