Skip to content

alkhatera/react-native-paylink

React Native Paylink πŸ’³

React Native IOS Android Webpack runs with Expo Go

React Native Paylink package to process payments using Paylink as a payment gateway for iOS, Android and Web apps πŸ’₯


Web Preview

Soon...

Web Preview

Soon...

✨Features

  • πŸ“¦ Very tiny and lightweight
  • 🧩 Exports functions independently so you can develop your own UIs if needed
  • ⌨ Smart & automatic keyboard and orientation handling for iOS & Android
  • πŸ’ͺ Imperative calls
  • πŸ’― Compatible with Expo
  • 🌐 Runs on the web
  • βœ… Written in TypeScript

πŸ’» Installation

npm install react-native-paylink

or

yarn add react-native-paylink

πŸ“± Minimal Usage

Opening and closing the bottom sheet is done imperatively, so just pass a ref to the bottom sheet and call the open or close methods via the ref instance to open and close the bottom sheet respectively.

Examples

Javascript

import React, { useRef } from 'react'; import { Button, View } from 'react-native'; import { ReactNativePaylink } from 'react-native-paylink'; const App = () => { const sheetRef = useRef(null); return ( <View> <Button title="Open" onPress={() => sheetRef.current?.open()} /> <ReactNativePaylink ref={sheetRef} /> </View> ); };

⚠ Warning

The bottom sheet component react-native-bottom-sheet uses and handles pan gestures internally, so to avoid scroll/pan misbehavior with its container, DO NOT put it inside a container that supports panning e.g ScrollView. You can always put it just next to the ScrollView and use React Fragment or a View to wrap them and everything should be okay.

❌ Don't do this

<ScrollView> <ReactNativePaylink>...</ReactNativePaylink> </ScrollView>

βœ… Do this

<> <ScrollView>...</ScrollView> <ReactNativePaylink>...</ReactNativePaylink> </>

πŸ›  Props

Soon...

Examples

Start receiving payments as soon as possible with React Native Paylink

1️⃣ Fetching token

More Examples and code samples coming soon...

Contributing

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

License

MIT

see LICENSE


</> with πŸ’– by Alaa ✌

About

React Native Paylink package to process payments using Paylink as a payment gateway for iOS, Android and Web apps πŸ’₯

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors