gomarketme-react-native 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +48 -3
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -1,8 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img src="https://static.gomarketme.net/assets/gmm-icon.png" alt="GoMarketMe"/>
|
|
3
|
+
<br>
|
|
4
|
+
<h1>gomarketme-react-native</h1>
|
|
5
|
+
<p>Affiliate Marketing for React Native-Based iOS and Android Apps.</p>
|
|
6
|
+
</div>
|
|
4
7
|
|
|
5
8
|
## Installation
|
|
6
9
|
|
|
10
|
+
### Using npm
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install gomarketme-react-native
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### Using yarn
|
|
17
|
+
|
|
7
18
|
```bash
|
|
8
19
|
yarn add gomarketme-react-native
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### Using pnpm
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
pnpm add gomarketme-react-native
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
To initialize GoMarketMe, import the `gomarketme` package and create a new instance of `GoMarketMe`:
|
|
32
|
+
|
|
33
|
+
```tsx
|
|
34
|
+
import GoMarketMe from 'gomarketme-react-native';
|
|
35
|
+
|
|
36
|
+
const App: React.FC = () => {
|
|
37
|
+
const apiKey = 'YOUR_API_KEY_HERE';
|
|
38
|
+
|
|
39
|
+
useEffect(() => {
|
|
40
|
+
const initializeGoMarketMe = async () => {
|
|
41
|
+
await GoMarketMe.initialize(apiKey);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
initializeGoMarketMe();
|
|
45
|
+
}, []);
|
|
46
|
+
};
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Make sure to replace API_KEY with your actual GoMarketMe API key. You can find it on the product onboarding page and under Profile > API Key.
|
|
50
|
+
|
|
51
|
+
## Support
|
|
52
|
+
|
|
53
|
+
If you encounter any problems or issues, please contact us at [integrations@gomarketme.co](mailto:integrations@gomarketme.co) or visit [https://gomarketme.co](https://gomarketme.co).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gomarketme-react-native",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Affiliate Marketing for React Native-Based iOS and Android Apps.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"prepublishOnly": "yarn build",
|
|
10
10
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
11
11
|
},
|
|
12
|
+
"homepage": "https://gomarketme.co",
|
|
12
13
|
"keywords": [
|
|
13
14
|
"react-native",
|
|
14
15
|
"gomarketme",
|