react-native-ortho
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

React-Native-Ortho

Official Ortho SDK for React Native/Expo applications. Don't forget to star ✨

About Ortho

Ortho help you integrate SDK with ease, connect to services like Paystack, Okra, Mono, thePeer, and load more with one integration.

Before getting started

Installing

Using npm:

$ npm install react-native-ortho

Using yarn:

$ yarn add react-native-ortho

you'll also need to install react-native-webview, to install run ;

$ yarn add react-native-webview

Usuage

For React Native based application import it and use

/**
 * Sample React Native App
 * https://github.com/facebook/react-native
 *
 * Generated with the TypeScript template
 * https://github.com/react-native-community/react-native-template-typescript
 *
 * @format
 */

import React from 'react';
import {
  Alert,
  SafeAreaView,
  useColorScheme,
  View,
} from 'react-native';

import { Ortho } from 'react-native-ortho';

const App = () => {
  const isDarkMode = useColorScheme() === 'dark';
const  config = {
'short-url':'<your-short-url>',
'amount':100000
}
  return (
    <SafeAreaView style={{flex:1}}>
      <StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} />
      <View  style={{flex:1}}>

        <Ortho.Community
			slug={'ortho-okra-short-url'}
			config={config}
			color={'blue'}
			callback={
			(e: any) =>  onCallback(e)
			}
			/>

      </View>
    </SafeAreaView>
  );
};

export default App;

Ortho.community Options

Name Type Required Default Value Description
slug String true nill slug for service you want to integrate, see slug list here
config object true nill config of app you intend to integrate
color String false yellow color of app
callback Function true nill callback on event fired

Thanks & Credits

Licensing

This project is licensed under BSD-3-Clause License license.

Package Sidebar

Install

npm i react-native-ortho

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

34.9 kB

Total Files

21

Last publish

Collaborators

  • just1and0