react-native-deep-link-with-response
Device Information for React Native.
Here's an image the example:
Move along.
Getting started
yarn
$ yarn add react-native-deep-link-with-response
npm
$ npm install react-native-deep-link-with-response --save
Mostly automatic installation
$ react-native link react-native-deep-link-with-response
Usage *Work Only Android
application required in the example APK.
/** * Sample React Native App * * adapted from App.js generated by the following command: * * react-native init example * * https://github.com/facebook/react-native */ ;;;const styles = StyleSheet; { const status setStatus = ; const message setMessage = ; const value setValue = ; { try //configuration for number 12 tweenty digits const newValue = 1000000000000 + valueParam; const args = amount: newValue ; const deepLinkExample = "getnet://pagamento/v1/payment"; const existAplication = await Linking; if existAplication const infoPayment = await DeepLinkWithResponse; console; ; ; catch err ; ; } return <View style=stylescontainer> <Text style=styleswelcome>☆Geolocation example☆</Text> <Text style=stylesinstructions>STATUS: status</Text> <Text style=styleswelcome>☆NATIVE CALLBACK MESSAGE☆</Text> <Text style=stylesinstructions>message</Text> <TextInput placeholder="type it the value(only number):" style=stylesinput keyboardType="numeric" value=value onChange= /> <Button title="Press" onPress= /> </View> ;}
Method
Name | Param | Type | values |
---|---|---|---|
startActivityForResult |
code,deepLink,args |
number,string,object |
any amount,DeepLink by application, {key:value} |
this module was developed in order to use the getnet payment application thanks for using it