0.0.1 • Published 1 year ago

react-native-ortho v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

NameTypeRequiredDefault ValueDescription
slugStringtruenillslug for service you want to integrate, see slug list here
configobjecttruenillconfig of app you intend to integrate
colorStringfalseyellowcolor of app
callbackFunctiontruenillcallback on event fired

Thanks & Credits

Licensing

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

0.0.1

1 year ago

0.3.5

2 years ago

0.1.4

2 years ago

0.0.4

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.0

2 years ago