Skip to content

louiszawadzki/react-native-tested-base64

Repository files navigation

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

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published