Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Commit 6c7243e

Browse files
committed
add package config
1 parent 90b5a0d commit 6c7243e

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

LICENCE

Whitespace-only changes.

package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "react-native-sim",
3+
"version": "0.1.0",
4+
"description": "",
5+
"main": "sim.js",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/sigrlami/react-native-sim"
9+
},
10+
"keywords": [
11+
"react-component",
12+
"react-native",
13+
"ios",
14+
"android",
15+
"device",
16+
"sim",
17+
"phone number"
18+
],
19+
"author": "Sergey Bushnyak <[email protected]> (https://github.com/sigrlami)",
20+
"license": "MIT"
21+
}

sim.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/**
2+
* @providesModule react-natove-sim
3+
*/
4+
5+
var RNSimInfo = requite('react-native').NativeModules.RNSimInfo;
6+
7+
module.exports = {
8+
9+
getSimInfo: function () {
10+
return RNSimInfo;
11+
},
12+
getTelephoneNumber: function () {
13+
return RNSimInfo.telephoneNumber;
14+
},
15+
getCarrierName: function () {
16+
return RNSimInfo.carrierName;
17+
},
18+
getCountryCode: function () {
19+
return RNSimInfo.countryCode;
20+
}
21+
22+
};

0 commit comments

Comments
 (0)