-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to new expo unimodules setup
- Loading branch information
Showing
7 changed files
with
131 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// Copyright © 2018 650 Industries. All rights reserved. | ||
|
||
#import <UMCore/UMExportedModule.h> | ||
#import <UMCore/UMModuleRegistryConsumer.h> | ||
#import <ExpoModulesCore/EXExportedModule.h> | ||
#import <ExpoModulesCore/EXModuleRegistryConsumer.h> | ||
|
||
@interface EXSMSModule : UMExportedModule <UMModuleRegistryConsumer> | ||
@end | ||
@interface EXSMSModule : EXExportedModule <EXModuleRegistryConsumer> | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,43 @@ | ||
{ | ||
"_args": [ | ||
[ | ||
"[email protected]", | ||
"/Users/kanethomas/fadmania" | ||
] | ||
], | ||
"_from": "[email protected]", | ||
"_id": "[email protected]", | ||
"_inBundle": false, | ||
"_integrity": "sha512-rGZkTsCLqbigUD7OKYHEt9vYBMG43ne+j8NvWbBwl1DFtkPcAZQIBN7pMFnXjRY0FLZnFePFDeYpboGquyQrgQ==", | ||
"_location": "/expo-sms", | ||
"_phantomChildren": {}, | ||
"_requested": { | ||
"type": "version", | ||
"registry": true, | ||
"raw": "[email protected]", | ||
"name": "expo-sms", | ||
"escapedName": "expo-sms", | ||
"rawSpec": "5.0.1", | ||
"saveSpec": null, | ||
"fetchSpec": "5.0.1" | ||
}, | ||
"_requiredBy": [ | ||
"/" | ||
], | ||
"_resolved": "https://registry.npmjs.org/expo-sms/-/expo-sms-5.0.1.tgz", | ||
"_spec": "5.0.1", | ||
"_where": "/Users/kanethomas/fadmania", | ||
"author": { | ||
"name": "650 Industries, Inc." | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/expo/expo/issues" | ||
}, | ||
"name": "expo-sms", | ||
"version": "10.1.0", | ||
"description": "Provides access to the system's UI/app for sending SMS messages.", | ||
"devDependencies": { | ||
"expo-module-scripts": "^1.0.0" | ||
}, | ||
"gitHead": "f213c9be2a909dae42a0a27d8aa4b9eac8e97be1", | ||
"homepage": "https://docs.expo.io/versions/latest/sdk/sms/", | ||
"jest": { | ||
"preset": "expo-module-scripts" | ||
"main": "build/SMS.js", | ||
"types": "build/SMS.d.ts", | ||
"sideEffects": false, | ||
"scripts": { | ||
"build": "expo-module build", | ||
"clean": "expo-module clean", | ||
"lint": "expo-module lint", | ||
"test": "expo-module test", | ||
"prepare": "expo-module prepare", | ||
"prepublishOnly": "expo-module prepublishOnly", | ||
"expo-module": "expo-module" | ||
}, | ||
"keywords": [ | ||
"react-native", | ||
"expo", | ||
"sms" | ||
], | ||
"license": "MIT", | ||
"main": "build/SMS.js", | ||
"name": "expo-sms", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/expo/expo.git" | ||
"url": "https://github.com/expo/expo.git", | ||
"directory": "packages/expo-sms" | ||
}, | ||
"scripts": {}, | ||
"sideEffects": false, | ||
"types": "build/SMS.d.ts", | ||
"unimodulePeerDependencies": { | ||
"@unimodules/core": "*", | ||
"unimodules-permissions-interface": "*" | ||
"bugs": { | ||
"url": "https://github.com/expo/expo/issues" | ||
}, | ||
"author": "650 Industries, Inc.", | ||
"license": "MIT", | ||
"homepage": "https://docs.expo.dev/versions/latest/sdk/sms/", | ||
"jest": { | ||
"preset": "expo-module-scripts" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"expo-module-scripts": "^2.0.0" | ||
}, | ||
"version": "5.0.1" | ||
"peerDependencies": { | ||
"expo": "*" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import { NativeModulesProxy } from '@unimodules/core'; | ||
import { NativeModulesProxy } from "expo-modules-core"; | ||
export default NativeModulesProxy.ExpoSMS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// @needsAudit | ||
export type SMSResponse = { | ||
/** | ||
* Status of SMS action invoked by the user. | ||
*/ | ||
result: "unknown" | "sent" | "cancelled"; | ||
}; | ||
|
||
// @needsAudit | ||
/** | ||
* An object that is used to describe an attachment that is included with a SMS message. | ||
*/ | ||
export type SMSAttachment = { | ||
/** | ||
* The content URI of the attachment. The URI needs be a content URI so that it can be accessed by | ||
* other applications outside of Expo. (See [FileSystem.getContentUriAsync](../filesystem/#filesystemgetcontenturiasyncfileuri)) | ||
*/ | ||
uri: string; | ||
/** | ||
* The mime type of the attachment such as `image/png`. | ||
*/ | ||
mimeType: string; | ||
/** | ||
* The filename of the attachment. | ||
*/ | ||
filename: string; | ||
}; | ||
|
||
// @needsAudit @docsMissing | ||
export type SMSOptions = { | ||
attachments?: SMSAttachment | SMSAttachment[] | undefined; | ||
}; |