├── .eslintrc ├── .gitignore ├── .npmignore ├── ExampleApp ├── .babelrc ├── .buckconfig ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .watchmanconfig ├── __tests__ │ ├── index.android.js │ └── index.ios.js ├── android │ ├── app │ │ ├── BUCK │ │ ├── build.gradle │ │ ├── proguard-rules.pro │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── exampleapp │ │ │ │ ├── MainActivity.java │ │ │ │ └── MainApplication.java │ │ │ └── res │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ └── values │ │ │ ├── strings.xml │ │ │ └── styles.xml │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ └── settings.gradle ├── app.json ├── index.android.js ├── index.ios.js ├── ios │ ├── ExampleApp-Bridging-Header.h │ ├── ExampleApp-tvOS │ │ └── Info.plist │ ├── ExampleApp-tvOSTests │ │ └── Info.plist │ ├── ExampleApp.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── ExampleApp-tvOS.xcscheme │ │ │ └── ExampleApp.xcscheme │ ├── ExampleApp │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Base.lproj │ │ │ └── LaunchScreen.xib │ │ ├── Images.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── Info.plist │ │ └── main.m │ └── ExampleAppTests │ │ ├── ExampleAppTests.m │ │ └── Info.plist ├── package.json └── yarn.lock ├── LICENSE ├── README.md ├── android ├── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── src │ └── main │ ├── AndroidManifest.xml │ └── java │ └── com │ └── reactlibrary │ └── mailcompose │ ├── RNMailComposeModule.java │ └── RNMailComposePackage.java ├── index.js ├── ios ├── RNMailCompose.xcworkspace │ └── contents.xcworkspacedata └── RNMailCompose │ ├── RNMailCompose-Bridging-Header.h │ ├── RNMailCompose.swift │ └── RNMailComposeBridge.m ├── js ├── RNMailCompose.android.js ├── RNMailCompose.ios.js ├── formatData.android.js └── formatData.ios.js ├── package.json └── react-native-mail-compose.podspec /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "node": true, 4 | "es6": true 5 | }, 6 | "globals": { 7 | "__SERVER__": true, 8 | "__CLIENT__": true, 9 | "__TEST__": true, 10 | "__DEV__": true, 11 | "__PROD__": true, 12 | "__STAGING__": true 13 | }, 14 | "ecmaFeatures": { 15 | "arrowFunctions": true, 16 | "binaryLiterals": true, 17 | "blockBindings": true, 18 | "classes": true, 19 | "defaultParams": true, 20 | "destructuring": true, 21 | "forOf": true, 22 | "generators": true, 23 | "modules": true, 24 | "objectLiteralComputedProperties": true, 25 | "objectLiteralShorthandMethods": true, 26 | "objectLiteralShorthandProperties": true, 27 | "octalLiterals": true, 28 | "regexUFlag": true, 29 | "regexYFlag": true, 30 | "spread": true, 31 | "superInFunctions": true, 32 | "templateStrings": true, 33 | "unicodeCodePointEscapes": true, 34 | "jsx": true 35 | }, 36 | "parser": "babel-eslint", 37 | "rules": { 38 | "prefer-reflect": [ 39 | 0, 40 | { 41 | "exceptions": [ 42 | "apply", 43 | "call", 44 | "delete" 45 | ] 46 | } 47 | ], 48 | "babel/new-cap": 2, 49 | "no-return-assign": 2, 50 | "no-invalid-this": 0, 51 | "no-void": 2, 52 | "one-var": [2, "never"], 53 | "react/jsx-closing-bracket-location": 0, 54 | "no-undef": 2, 55 | "max-nested-callbacks": [ 56 | 2, 57 | 3 58 | ], 59 | "no-empty": 2, 60 | "no-loop-func": 2, 61 | "keyword-spacing": 2, 62 | "babel/object-shorthand": [ 63 | 2, 64 | "always" 65 | ], 66 | "wrap-iife": [ 67 | 2, 68 | "inside" 69 | ], 70 | "valid-typeof": 2, 71 | "react/jsx-no-literals": 2, 72 | "handle-callback-err": 2, 73 | "operator-linebreak": [2, "after"], 74 | "no-label-var": 2, 75 | "no-process-env": 2, 76 | "no-irregular-whitespace": 2, 77 | "block-spacing": 2, 78 | "padded-blocks": [ 79 | 2, 80 | "never" 81 | ], 82 | "react/jsx-pascal-case": 2, 83 | "no-empty-pattern": 2, 84 | "radix": 2, 85 | "no-undefined": 0, 86 | "semi-spacing": 2, 87 | "eqeqeq": [ 88 | 2, 89 | "allow-null" 90 | ], 91 | "no-negated-condition": 2, 92 | "require-yield": 2, 93 | "new-cap": 2, 94 | "no-const-assign": 2, 95 | "no-bitwise": 2, 96 | "dot-notation": 2, 97 | "camelcase": 2, 98 | "prefer-const": 2, 99 | "no-negated-in-lhs": 2, 100 | "prefer-arrow-callback": 2, 101 | "no-extra-bind": 2, 102 | "react/prefer-es6-class": 2, 103 | "no-sequences": 2, 104 | "babel/generator-star-spacing": 2, 105 | "comma-dangle": [ 106 | 2, 107 | "always-multiline" 108 | ], 109 | "no-spaced-func": 2, 110 | "react/require-extension": 2, 111 | "no-labels": 2, 112 | "no-unreachable": 2, 113 | "no-eval": 2, 114 | "react/no-did-mount-set-state": 2, 115 | "no-unneeded-ternary": 2, 116 | "no-process-exit": 2, 117 | "no-empty-character-class": 2, 118 | "constructor-super": 2, 119 | "no-dupe-class-members": 2, 120 | "strict": [ 121 | 2, 122 | "never" 123 | ], 124 | "no-case-declarations": 2, 125 | "array-bracket-spacing": 2, 126 | "react/no-set-state": 2, 127 | "block-scoped-var": 2, 128 | "arrow-body-style": 2, 129 | "space-in-parens": 2, 130 | "no-confusing-arrow": 2, 131 | "no-control-regex": 2, 132 | "consistent-return": 2, 133 | "no-console": 2, 134 | "comma-spacing": 2, 135 | "no-redeclare": 2, 136 | "computed-property-spacing": 2, 137 | "no-invalid-regexp": 2, 138 | "use-isnan": 2, 139 | "no-new-require": 2, 140 | "indent": [ 141 | 2, 142 | 2 143 | ], 144 | "react/react-in-jsx-scope": 2, 145 | "no-native-reassign": 2, 146 | "no-func-assign": 2, 147 | "max-len": [ 148 | 2, 149 | 120, 150 | 4, 151 | { 152 | "ignoreUrls": true 153 | } 154 | ], 155 | "no-shadow": [ 156 | 2, 157 | { 158 | "builtinGlobals": true 159 | } 160 | ], 161 | "no-mixed-requires": 2, 162 | "react/no-did-update-set-state": 2, 163 | "react/jsx-uses-react": 2, 164 | "max-statements": [ 165 | 2, 166 | 20 167 | ], 168 | "space-unary-ops": [ 169 | 2, 170 | { 171 | "words": true, 172 | "nonwords": false 173 | } 174 | ], 175 | "no-lone-blocks": 2, 176 | "no-debugger": 2, 177 | "arrow-parens": [ 178 | 2, 179 | "always" 180 | ], 181 | "space-before-blocks": [ 182 | 2, 183 | "always" 184 | ], 185 | "no-implied-eval": 2, 186 | "no-useless-concat": 2, 187 | "no-multi-spaces": 2, 188 | "curly": [2, "multi-line"], 189 | "no-extra-boolean-cast": 2, 190 | "space-infix-ops": 2, 191 | "babel/no-await-in-loop": 2, 192 | "react/sort-comp": 2, 193 | "react/jsx-no-undef": 2, 194 | "no-multiple-empty-lines": [ 195 | 2, 196 | { 197 | "max": 2 198 | } 199 | ], 200 | "semi": 2, 201 | "no-param-reassign": 0, 202 | "no-cond-assign": 2, 203 | "no-dupe-keys": 2, 204 | "import/named": 0, 205 | "max-params": [ 206 | 2, 207 | 4 208 | ], 209 | "linebreak-style": 2, 210 | "react/jsx-sort-props": [ 211 | 0, 212 | { 213 | "shorthandFirst": true, 214 | "callbacksLast": true 215 | } 216 | ], 217 | "no-octal-escape": 2, 218 | "no-this-before-super": 2, 219 | "no-alert": 2, 220 | "react/jsx-no-duplicate-props": [ 221 | 2, 222 | { 223 | "ignoreCase": true 224 | } 225 | ], 226 | "no-unused-expressions": 2, 227 | "react/jsx-sort-prop-types": 0, 228 | "no-class-assign": 2, 229 | "spaced-comment": 2, 230 | "no-path-concat": 2, 231 | "prefer-spread": 2, 232 | "no-self-compare": 2, 233 | "guard-for-in": 2, 234 | "no-nested-ternary": 2, 235 | "no-multi-str": 2, 236 | "react/jsx-key": 1, 237 | "import/namespace": 2, 238 | "no-warning-comments": 1, 239 | "no-delete-var": 2, 240 | "babel/arrow-parens": [ 241 | 2, 242 | "always" 243 | ], 244 | "no-with": 2, 245 | "no-extra-parens": 2, 246 | "no-trailing-spaces": 2, 247 | "import/no-unresolved": 1, 248 | "no-obj-calls": 2, 249 | "accessor-pairs": 2, 250 | "yoda": [ 251 | 2, 252 | "never", 253 | { 254 | "exceptRange": true 255 | } 256 | ], 257 | "no-continue": 1, 258 | "react/no-unknown-property": 2, 259 | "no-new": 2, 260 | "object-curly-spacing": 2, 261 | "react/jsx-curly-spacing": [ 262 | 2, 263 | "never" 264 | ], 265 | "jsx-quotes": 2, 266 | "react/no-direct-mutation-state": 2, 267 | "key-spacing": 2, 268 | "no-underscore-dangle": [ 269 | 2, 270 | { "allowAfterThis": true } 271 | ], 272 | "new-parens": 2, 273 | "no-mixed-spaces-and-tabs": 2, 274 | "no-floating-decimal": 2, 275 | "operator-assignment": [ 276 | 2, 277 | "always" 278 | ], 279 | "no-shadow-restricted-names": 2, 280 | "no-use-before-define": [ 281 | 2, 282 | "nofunc" 283 | ], 284 | "no-useless-call": 2, 285 | "no-caller": 2, 286 | "quotes": [ 287 | 2, 288 | "single", 289 | "avoid-escape" 290 | ], 291 | "react/jsx-handler-names": [ 292 | 1, 293 | { 294 | "eventHandlerPrefix": "handle", 295 | "eventHandlerPropPrefix": "on" 296 | } 297 | ], 298 | "brace-style": [2, "1tbs", { "allowSingleLine": true }], 299 | "no-unused-vars": 2, 300 | "import/default": 1, 301 | "no-lonely-if": 2, 302 | "no-extra-semi": 2, 303 | "prefer-template": 2, 304 | "react/forbid-prop-types": 1, 305 | "react/self-closing-comp": 2, 306 | "no-else-return": 2, 307 | "react/jsx-max-props-per-line": [ 308 | 2, 309 | { 310 | "maximum": 3 311 | } 312 | ], 313 | "no-dupe-args": 2, 314 | "no-new-object": 2, 315 | "callback-return": 2, 316 | "no-new-wrappers": 2, 317 | "comma-style": 2, 318 | "no-script-url": 2, 319 | "consistent-this": 2, 320 | "react/wrap-multilines": 0, 321 | "dot-location": [ 322 | 2, 323 | "property" 324 | ], 325 | "no-implicit-coercion": 2, 326 | "max-depth": [ 327 | 2, 328 | 4 329 | ], 330 | "babel/object-curly-spacing": [ 331 | 2, 332 | "never" 333 | ], 334 | "no-array-constructor": 2, 335 | "no-iterator": 2, 336 | "react/jsx-no-bind": 2, 337 | "sort-vars": 2, 338 | "no-var": 2, 339 | "no-sparse-arrays": 2, 340 | "space-before-function-paren": [ 341 | 2, 342 | "never" 343 | ], 344 | "no-throw-literal": 2, 345 | "no-proto": 2, 346 | "default-case": 2, 347 | "no-inner-declarations": 2, 348 | "react/jsx-indent-props": [ 349 | 2, 350 | 2 351 | ], 352 | "no-new-func": 2, 353 | "object-shorthand": 2, 354 | "no-ex-assign": 2, 355 | "no-unexpected-multiline": 2, 356 | "no-undef-init": 2, 357 | "no-duplicate-case": 2, 358 | "no-fallthrough": 2, 359 | "no-catch-shadow": 2, 360 | "import/export": 2, 361 | "no-constant-condition": 2, 362 | "complexity": [ 363 | 2, 364 | 25 365 | ], 366 | "react/jsx-boolean-value": [ 367 | 2, 368 | "never" 369 | ], 370 | "valid-jsdoc": 2, 371 | "no-extend-native": 2, 372 | "react/prop-types": 2, 373 | "no-regex-spaces": 2, 374 | "react/no-multi-comp": 2, 375 | "no-octal": 2, 376 | "arrow-spacing": 2, 377 | "quote-props": [ 378 | 2, 379 | "as-needed" 380 | ], 381 | "no-div-regex": 2, 382 | "react/jsx-uses-vars": 2, 383 | "react/no-danger": 1 384 | }, 385 | "settings": { 386 | "ecmascript": 6, 387 | "jsx": true, 388 | "import/parser": "babel-eslint", 389 | "import/ignore": [ 390 | "node_modules", 391 | "\\.scss$" 392 | ], 393 | "import/resolve": { 394 | "moduleDirectory": [ 395 | "node_modules" 396 | ] 397 | } 398 | }, 399 | "plugins": [ 400 | "react", 401 | "import", 402 | "babel" 403 | ] 404 | } 405 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | 6 | # Runtime data 7 | pids 8 | *.pid 9 | *.seed 10 | 11 | # Directory for instrumented libs generated by jscoverage/JSCover 12 | lib-cov 13 | 14 | # Coverage directory used by tools like istanbul 15 | coverage 16 | 17 | # nyc test coverage 18 | .nyc_output 19 | 20 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 21 | .grunt 22 | 23 | # node-waf configuration 24 | .lock-wscript 25 | 26 | # Compiled binary addons (http://nodejs.org/api/addons.html) 27 | build/Release 28 | 29 | # Dependency directories 30 | node_modules 31 | jspm_packages 32 | 33 | # Optional npm cache directory 34 | .npm 35 | 36 | # Optional REPL history 37 | .node_repl_history 38 | 39 | # Mac 40 | .DS_Store 41 | 42 | # Xcode 43 | build/ 44 | *.pbxuser 45 | !default.pbxuser 46 | *.mode1v3 47 | !default.mode1v3 48 | *.mode2v3 49 | !default.mode2v3 50 | *.perspectivev3 51 | !default.perspectivev3 52 | xcuserdata 53 | *.xccheckout 54 | *.moved-aside 55 | DerivedData 56 | *.hmap 57 | *.ipa 58 | *.xcuserstate 59 | project.xcworkspace 60 | 61 | # Android 62 | *.iml 63 | .idea 64 | .gradle 65 | local.properties 66 | build 67 | keystores 68 | *.keystores 69 | 70 | # BUCK 71 | buck-out/ 72 | \.buckd/ 73 | android/app/libs 74 | android/keystores/debug.keystore 75 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | 6 | # Runtime data 7 | pids 8 | *.pid 9 | *.seed 10 | 11 | # Directory for instrumented libs generated by jscoverage/JSCover 12 | lib-cov 13 | 14 | # Coverage directory used by tools like istanbul 15 | coverage 16 | 17 | # nyc test coverage 18 | .nyc_output 19 | 20 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 21 | .grunt 22 | 23 | # node-waf configuration 24 | .lock-wscript 25 | 26 | # Compiled binary addons (http://nodejs.org/api/addons.html) 27 | build/Release 28 | 29 | # Dependency directories 30 | node_modules 31 | jspm_packages 32 | 33 | # Optional npm cache directory 34 | .npm 35 | 36 | # Optional REPL history 37 | .node_repl_history 38 | 39 | # Mac 40 | .DS_Store 41 | 42 | # Xcode 43 | build/ 44 | *.pbxuser 45 | !default.pbxuser 46 | *.mode1v3 47 | !default.mode1v3 48 | *.mode2v3 49 | !default.mode2v3 50 | *.perspectivev3 51 | !default.perspectivev3 52 | xcuserdata 53 | *.xccheckout 54 | *.moved-aside 55 | DerivedData 56 | *.hmap 57 | *.ipa 58 | *.xcuserstate 59 | project.xcworkspace 60 | 61 | # Android 62 | *.iml 63 | .idea 64 | .gradle 65 | local.properties 66 | build 67 | keystores 68 | *.keystores 69 | 70 | # BUCK 71 | buck-out/ 72 | \.buckd/ 73 | android/app/libs 74 | android/keystores/debug.keystore 75 | 76 | .babelrc 77 | .eslintrc 78 | .gitignore 79 | .npmignore 80 | .travis.yml 81 | ExampleApp 82 | -------------------------------------------------------------------------------- /ExampleApp/.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["react-native"] 3 | } -------------------------------------------------------------------------------- /ExampleApp/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /ExampleApp/.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore unexpected extra "@providesModule" 9 | .*/node_modules/.*/node_modules/fbjs/.* 10 | 11 | ; Ignore duplicate module providers 12 | ; For RN Apps installed via npm, "Libraries" folder is inside 13 | ; "node_modules/react-native" but in the source repo it is in the root 14 | .*/Libraries/react-native/React.js 15 | .*/Libraries/react-native/ReactNative.js 16 | 17 | [include] 18 | 19 | [libs] 20 | node_modules/react-native/Libraries/react-native/react-native-interface.js 21 | node_modules/react-native/flow 22 | flow/ 23 | 24 | [options] 25 | emoji=true 26 | 27 | module.system=haste 28 | 29 | experimental.strict_type_args=true 30 | 31 | munge_underscores=true 32 | 33 | module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub' 34 | 35 | suppress_type=$FlowIssue 36 | suppress_type=$FlowFixMe 37 | suppress_type=$FixMe 38 | 39 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-0]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 40 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-0]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 41 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 42 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 43 | 44 | unsafe.enable_getters_and_setters=true 45 | 46 | [version] 47 | ^0.40.0 48 | -------------------------------------------------------------------------------- /ExampleApp/.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /ExampleApp/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | *.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 50 | 51 | fastlane/report.xml 52 | fastlane/Preview.html 53 | fastlane/screenshots 54 | -------------------------------------------------------------------------------- /ExampleApp/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /ExampleApp/__tests__/index.android.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.android.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /ExampleApp/__tests__/index.ios.js: -------------------------------------------------------------------------------- 1 | import 'react-native'; 2 | import React from 'react'; 3 | import Index from '../index.ios.js'; 4 | 5 | // Note: test renderer must be required after react-native. 6 | import renderer from 'react-test-renderer'; 7 | 8 | it('renders correctly', () => { 9 | const tree = renderer.create( 10 | 11 | ); 12 | }); 13 | -------------------------------------------------------------------------------- /ExampleApp/android/app/BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | lib_deps = [] 12 | 13 | for jarfile in glob(['libs/*.jar']): 14 | name = 'jars__' + jarfile[jarfile.rindex('/') + 1: jarfile.rindex('.jar')] 15 | lib_deps.append(':' + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | 21 | for aarfile in glob(['libs/*.aar']): 22 | name = 'aars__' + aarfile[aarfile.rindex('/') + 1: aarfile.rindex('.aar')] 23 | lib_deps.append(':' + name) 24 | android_prebuilt_aar( 25 | name = name, 26 | aar = aarfile, 27 | ) 28 | 29 | android_library( 30 | name = "all-libs", 31 | exported_deps = lib_deps, 32 | ) 33 | 34 | android_library( 35 | name = "app-code", 36 | srcs = glob([ 37 | "src/main/java/**/*.java", 38 | ]), 39 | deps = [ 40 | ":all-libs", 41 | ":build_config", 42 | ":res", 43 | ], 44 | ) 45 | 46 | android_build_config( 47 | name = "build_config", 48 | package = "com.exampleapp", 49 | ) 50 | 51 | android_resource( 52 | name = "res", 53 | package = "com.exampleapp", 54 | res = "src/main/res", 55 | ) 56 | 57 | android_binary( 58 | name = "app", 59 | keystore = "//android/keystores:debug", 60 | manifest = "src/main/AndroidManifest.xml", 61 | package_type = "debug", 62 | deps = [ 63 | ":app-code", 64 | ], 65 | ) 66 | -------------------------------------------------------------------------------- /ExampleApp/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // the root of your project, i.e. where "package.json" lives 37 | * root: "../../", 38 | * 39 | * // where to put the JS bundle asset in debug mode 40 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 41 | * 42 | * // where to put the JS bundle asset in release mode 43 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 44 | * 45 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 46 | * // require('./image.png')), in debug mode 47 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 48 | * 49 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 50 | * // require('./image.png')), in release mode 51 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 52 | * 53 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 54 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 55 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 56 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 57 | * // for example, you might want to remove it from here. 58 | * inputExcludes: ["android/**", "ios/**"], 59 | * 60 | * // override which node gets called and with what additional arguments 61 | * nodeExecutableAndArgs: ["node"] 62 | * 63 | * // supply additional arguments to the packager 64 | * extraPackagerArgs: [] 65 | * ] 66 | */ 67 | 68 | apply from: "../../node_modules/react-native/react.gradle" 69 | 70 | /** 71 | * Set this to true to create two separate APKs instead of one: 72 | * - An APK that only works on ARM devices 73 | * - An APK that only works on x86 devices 74 | * The advantage is the size of the APK is reduced by about 4MB. 75 | * Upload all the APKs to the Play Store and people will download 76 | * the correct one based on the CPU architecture of their device. 77 | */ 78 | def enableSeparateBuildPerCPUArchitecture = false 79 | 80 | /** 81 | * Run Proguard to shrink the Java bytecode in release builds. 82 | */ 83 | def enableProguardInReleaseBuilds = false 84 | 85 | android { 86 | compileSdkVersion 23 87 | buildToolsVersion "23.0.1" 88 | 89 | defaultConfig { 90 | applicationId "com.exampleapp" 91 | minSdkVersion 16 92 | targetSdkVersion 22 93 | versionCode 1 94 | versionName "1.0" 95 | ndk { 96 | abiFilters "armeabi-v7a", "x86" 97 | } 98 | } 99 | splits { 100 | abi { 101 | reset() 102 | enable enableSeparateBuildPerCPUArchitecture 103 | universalApk false // If true, also generate a universal APK 104 | include "armeabi-v7a", "x86" 105 | } 106 | } 107 | buildTypes { 108 | release { 109 | minifyEnabled enableProguardInReleaseBuilds 110 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 111 | } 112 | } 113 | // applicationVariants are e.g. debug, release 114 | applicationVariants.all { variant -> 115 | variant.outputs.each { output -> 116 | // For each separate APK per architecture, set a unique version code as described here: 117 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 118 | def versionCodes = ["armeabi-v7a":1, "x86":2] 119 | def abi = output.getFilter(OutputFile.ABI) 120 | if (abi != null) { // null for the universal-debug, universal-release variants 121 | output.versionCodeOverride = 122 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 123 | } 124 | } 125 | } 126 | } 127 | 128 | dependencies { 129 | compile project(':react-native-mail-compose') 130 | compile fileTree(dir: "libs", include: ["*.jar"]) 131 | compile "com.android.support:appcompat-v7:23.0.1" 132 | compile "com.facebook.react:react-native:+" // From node_modules 133 | } 134 | 135 | // Run this once to be able to run the application with BUCK 136 | // puts all compile dependencies into folder libs for BUCK to use 137 | task copyDownloadableDepsToLibs(type: Copy) { 138 | from configurations.compile 139 | into 'libs' 140 | } 141 | -------------------------------------------------------------------------------- /ExampleApp/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | 19 | # Disabling obfuscation is useful if you collect stack traces from production crashes 20 | # (unless you are using a system that supports de-obfuscate the stack traces). 21 | -dontobfuscate 22 | 23 | # React Native 24 | 25 | # Keep our interfaces so they can be used by other ProGuard rules. 26 | # See http://sourceforge.net/p/proguard/bugs/466/ 27 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.DoNotStrip 28 | -keep,allowobfuscation @interface com.facebook.proguard.annotations.KeepGettersAndSetters 29 | -keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip 30 | 31 | # Do not strip any method/class that is annotated with @DoNotStrip 32 | -keep @com.facebook.proguard.annotations.DoNotStrip class * 33 | -keep @com.facebook.common.internal.DoNotStrip class * 34 | -keepclassmembers class * { 35 | @com.facebook.proguard.annotations.DoNotStrip *; 36 | @com.facebook.common.internal.DoNotStrip *; 37 | } 38 | 39 | -keepclassmembers @com.facebook.proguard.annotations.KeepGettersAndSetters class * { 40 | void set*(***); 41 | *** get*(); 42 | } 43 | 44 | -keep class * extends com.facebook.react.bridge.JavaScriptModule { *; } 45 | -keep class * extends com.facebook.react.bridge.NativeModule { *; } 46 | -keepclassmembers,includedescriptorclasses class * { native ; } 47 | -keepclassmembers class * { @com.facebook.react.uimanager.UIProp ; } 48 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactProp ; } 49 | -keepclassmembers class * { @com.facebook.react.uimanager.annotations.ReactPropGroup ; } 50 | 51 | -dontwarn com.facebook.react.** 52 | 53 | # okhttp 54 | 55 | -keepattributes Signature 56 | -keepattributes *Annotation* 57 | -keep class okhttp3.** { *; } 58 | -keep interface okhttp3.** { *; } 59 | -dontwarn okhttp3.** 60 | 61 | # okio 62 | 63 | -keep class sun.misc.Unsafe { *; } 64 | -dontwarn java.nio.file.* 65 | -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement 66 | -dontwarn okio.** 67 | -------------------------------------------------------------------------------- /ExampleApp/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 16 | 17 | 23 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /ExampleApp/android/app/src/main/java/com/exampleapp/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.exampleapp; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. 9 | * This is used to schedule rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "ExampleApp"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ExampleApp/android/app/src/main/java/com/exampleapp/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.exampleapp; 2 | 3 | import android.app.Application; 4 | 5 | import com.facebook.react.ReactApplication; 6 | import com.reactlibrary.mailcompose.RNMailComposePackage; 7 | import com.facebook.react.ReactNativeHost; 8 | import com.facebook.react.ReactPackage; 9 | import com.facebook.react.shell.MainReactPackage; 10 | import com.facebook.soloader.SoLoader; 11 | 12 | import java.util.Arrays; 13 | import java.util.List; 14 | 15 | public class MainApplication extends Application implements ReactApplication { 16 | 17 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 18 | @Override 19 | public boolean getUseDeveloperSupport() { 20 | return BuildConfig.DEBUG; 21 | } 22 | 23 | @Override 24 | protected List getPackages() { 25 | return Arrays.asList( 26 | new MainReactPackage(), 27 | new RNMailComposePackage() 28 | ); 29 | } 30 | }; 31 | 32 | @Override 33 | public ReactNativeHost getReactNativeHost() { 34 | return mReactNativeHost; 35 | } 36 | 37 | @Override 38 | public void onCreate() { 39 | super.onCreate(); 40 | SoLoader.init(this, /* native exopackage */ false); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /ExampleApp/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joonhocho/react-native-mail-compose/853582aa4453e4fd6e974e257f3eaf9db93fa6cf/ExampleApp/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /ExampleApp/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joonhocho/react-native-mail-compose/853582aa4453e4fd6e974e257f3eaf9db93fa6cf/ExampleApp/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /ExampleApp/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joonhocho/react-native-mail-compose/853582aa4453e4fd6e974e257f3eaf9db93fa6cf/ExampleApp/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ExampleApp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joonhocho/react-native-mail-compose/853582aa4453e4fd6e974e257f3eaf9db93fa6cf/ExampleApp/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ExampleApp/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | ExampleApp 3 | 4 | -------------------------------------------------------------------------------- /ExampleApp/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ExampleApp/android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.2.3' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | mavenLocal() 18 | jcenter() 19 | maven { 20 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 21 | url "$rootDir/../node_modules/react-native/android" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /ExampleApp/android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useDeprecatedNdk=true 21 | -------------------------------------------------------------------------------- /ExampleApp/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joonhocho/react-native-mail-compose/853582aa4453e4fd6e974e257f3eaf9db93fa6cf/ExampleApp/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /ExampleApp/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip 6 | -------------------------------------------------------------------------------- /ExampleApp/android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # For Cygwin, ensure paths are in UNIX format before anything is touched. 46 | if $cygwin ; then 47 | [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` 48 | fi 49 | 50 | # Attempt to set APP_HOME 51 | # Resolve links: $0 may be a link 52 | PRG="$0" 53 | # Need this for relative symlinks. 54 | while [ -h "$PRG" ] ; do 55 | ls=`ls -ld "$PRG"` 56 | link=`expr "$ls" : '.*-> \(.*\)$'` 57 | if expr "$link" : '/.*' > /dev/null; then 58 | PRG="$link" 59 | else 60 | PRG=`dirname "$PRG"`"/$link" 61 | fi 62 | done 63 | SAVED="`pwd`" 64 | cd "`dirname \"$PRG\"`/" >&- 65 | APP_HOME="`pwd -P`" 66 | cd "$SAVED" >&- 67 | 68 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 69 | 70 | # Determine the Java command to use to start the JVM. 71 | if [ -n "$JAVA_HOME" ] ; then 72 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 73 | # IBM's JDK on AIX uses strange locations for the executables 74 | JAVACMD="$JAVA_HOME/jre/sh/java" 75 | else 76 | JAVACMD="$JAVA_HOME/bin/java" 77 | fi 78 | if [ ! -x "$JAVACMD" ] ; then 79 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 80 | 81 | Please set the JAVA_HOME variable in your environment to match the 82 | location of your Java installation." 83 | fi 84 | else 85 | JAVACMD="java" 86 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 87 | 88 | Please set the JAVA_HOME variable in your environment to match the 89 | location of your Java installation." 90 | fi 91 | 92 | # Increase the maximum file descriptors if we can. 93 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 94 | MAX_FD_LIMIT=`ulimit -H -n` 95 | if [ $? -eq 0 ] ; then 96 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 97 | MAX_FD="$MAX_FD_LIMIT" 98 | fi 99 | ulimit -n $MAX_FD 100 | if [ $? -ne 0 ] ; then 101 | warn "Could not set maximum file descriptor limit: $MAX_FD" 102 | fi 103 | else 104 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 105 | fi 106 | fi 107 | 108 | # For Darwin, add options to specify how the application appears in the dock 109 | if $darwin; then 110 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 111 | fi 112 | 113 | # For Cygwin, switch paths to Windows format before running java 114 | if $cygwin ; then 115 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 116 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 158 | function splitJvmOpts() { 159 | JVM_OPTS=("$@") 160 | } 161 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 162 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 163 | 164 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 165 | -------------------------------------------------------------------------------- /ExampleApp/android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /ExampleApp/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'ExampleApp' 2 | include ':react-native-mail-compose' 3 | project(':react-native-mail-compose').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-mail-compose/android') 4 | 5 | include ':app' 6 | -------------------------------------------------------------------------------- /ExampleApp/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ExampleApp", 3 | "displayName": "ExampleApp" 4 | } -------------------------------------------------------------------------------- /ExampleApp/index.android.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * @flow 5 | */ 6 | 7 | import React, { Component } from 'react'; 8 | import { 9 | AppRegistry, 10 | StyleSheet, 11 | Text, 12 | View, 13 | TouchableOpacity 14 | } from 'react-native'; 15 | import MailCompose from 'react-native-mail-compose'; 16 | 17 | export default class ExampleApp extends Component { 18 | render() { 19 | return ( 20 | 21 | 22 | Welcome to React Native! 23 | 24 | 25 | To get started, edit index.android.js 26 | 27 | 28 | Double tap R on your keyboard to reload,{'\n'} 29 | Shake or press menu button for dev menu 30 | 31 | { 32 | try { 33 | const res = await MailCompose.send({ 34 | toRecipients: ['rnmailcompose1@gmail.com', 'rnmailcompose2@gmail.com'], 35 | ccRecipients: ['rnmailcompose3@gmail.com', 'rnmailcompose4@gmail.com'], 36 | bccRecipients: ['rnmailcompose5@gmail.com', 'rnmailcompose6@gmail.com'], 37 | subject: 'This is text subject', 38 | html: '

This is text body

', 39 | attachments: [{ 40 | filename: 'mytext', 41 | ext: '.txt', 42 | mimeType: 'text/plain', 43 | text: 'Hello my friend', 44 | }], 45 | }); 46 | console.log(res); 47 | } catch (e) { 48 | console.error('error', e); 49 | } 50 | }}> 51 | 52 | Test 53 | 54 |
55 |
56 | ); 57 | } 58 | } 59 | 60 | const styles = StyleSheet.create({ 61 | container: { 62 | flex: 1, 63 | justifyContent: 'center', 64 | alignItems: 'center', 65 | backgroundColor: '#F5FCFF', 66 | }, 67 | welcome: { 68 | fontSize: 20, 69 | textAlign: 'center', 70 | margin: 10, 71 | }, 72 | instructions: { 73 | textAlign: 'center', 74 | color: '#333333', 75 | marginBottom: 5, 76 | }, 77 | }); 78 | 79 | AppRegistry.registerComponent('ExampleApp', () => ExampleApp); 80 | -------------------------------------------------------------------------------- /ExampleApp/index.ios.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * @flow 5 | */ 6 | 7 | import React, { Component } from 'react'; 8 | import { 9 | AppRegistry, 10 | StyleSheet, 11 | Text, 12 | View, 13 | TouchableOpacity 14 | } from 'react-native'; 15 | import MailCompose from 'react-native-mail-compose'; 16 | 17 | export default class ExampleApp extends Component { 18 | render() { 19 | return ( 20 | 21 | 22 | Welcome to React Native! 23 | 24 | 25 | To get started, edit index.ios.js 26 | 27 | 28 | Press Cmd+R to reload,{'\n'} 29 | Cmd+D or shake for dev menu 30 | 31 | { 32 | try { 33 | const res = await MailCompose.send({ 34 | toRecipients: ['rnmailcompose1@gmail.com', 'rnmailcompose2@gmail.com'], 35 | ccRecipients: ['rnmailcompose3@gmail.com', 'rnmailcompose4@gmail.com'], 36 | bccRecipients: ['rnmailcompose5@gmail.com', 'rnmailcompose6@gmail.com'], 37 | subject: 'This is text subject', 38 | html: '

This is text body

', 39 | attachments: [{ 40 | filename: 'mytext', 41 | ext: '.txt', 42 | mimeType: 'text/plain', 43 | text: 'Hello my friend', 44 | }], 45 | }); 46 | console.log(res); 47 | } catch (e) { 48 | console.error('error', e); 49 | } 50 | }}> 51 | 52 | Test 53 | 54 |
55 |
56 | ); 57 | } 58 | } 59 | 60 | const styles = StyleSheet.create({ 61 | container: { 62 | flex: 1, 63 | justifyContent: 'center', 64 | alignItems: 'center', 65 | backgroundColor: '#F5FCFF', 66 | }, 67 | welcome: { 68 | fontSize: 20, 69 | textAlign: 'center', 70 | margin: 10, 71 | }, 72 | instructions: { 73 | textAlign: 'center', 74 | color: '#333333', 75 | marginBottom: 5, 76 | }, 77 | }); 78 | 79 | AppRegistry.registerComponent('ExampleApp', () => ExampleApp); 80 | -------------------------------------------------------------------------------- /ExampleApp/ios/ExampleApp-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // ExampleApp-Bridging-Header.h 3 | // ExampleApp 4 | // 5 | // Created by Joon Ho Cho on 4/30/17. 6 | // Copyright © 2017 Facebook. All rights reserved. 7 | // 8 | 9 | #ifndef ExampleApp_Bridging_Header_h 10 | #define ExampleApp_Bridging_Header_h 11 | 12 | 13 | #import 14 | #import 15 | #import 16 | 17 | #endif /* ExampleApp_Bridging_Header_h */ 18 | -------------------------------------------------------------------------------- /ExampleApp/ios/ExampleApp-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /ExampleApp/ios/ExampleApp-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ExampleApp/ios/ExampleApp.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 15 | 00E356F31AD99517003FC87E /* ExampleAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ExampleAppTests.m */; }; 16 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 17 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 18 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 19 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 20 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 21 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 22 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 23 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 24 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 25 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 26 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 27 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 28 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */; }; 29 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 30 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 31 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 32 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 33 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 34 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 35 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; }; 36 | 2DCD954D1E0B4F2C00145EB5 /* ExampleAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ExampleAppTests.m */; }; 37 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 38 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 39 | AC90567D1EB6993F00B291A2 /* RNMailCompose.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC90567B1EB6993F00B291A2 /* RNMailCompose.swift */; }; 40 | AC90567E1EB6993F00B291A2 /* RNMailComposeBridge.m in Sources */ = {isa = PBXBuildFile; fileRef = AC90567C1EB6993F00B291A2 /* RNMailComposeBridge.m */; }; 41 | /* End PBXBuildFile section */ 42 | 43 | /* Begin PBXContainerItemProxy section */ 44 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 45 | isa = PBXContainerItemProxy; 46 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 47 | proxyType = 2; 48 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 49 | remoteInfo = RCTActionSheet; 50 | }; 51 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 52 | isa = PBXContainerItemProxy; 53 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 54 | proxyType = 2; 55 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 56 | remoteInfo = RCTGeolocation; 57 | }; 58 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 59 | isa = PBXContainerItemProxy; 60 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 61 | proxyType = 2; 62 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 63 | remoteInfo = RCTImage; 64 | }; 65 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 66 | isa = PBXContainerItemProxy; 67 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 68 | proxyType = 2; 69 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 70 | remoteInfo = RCTNetwork; 71 | }; 72 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 73 | isa = PBXContainerItemProxy; 74 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 75 | proxyType = 2; 76 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 77 | remoteInfo = RCTVibration; 78 | }; 79 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 80 | isa = PBXContainerItemProxy; 81 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 82 | proxyType = 1; 83 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 84 | remoteInfo = ExampleApp; 85 | }; 86 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 87 | isa = PBXContainerItemProxy; 88 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 89 | proxyType = 2; 90 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 91 | remoteInfo = RCTSettings; 92 | }; 93 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 94 | isa = PBXContainerItemProxy; 95 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 96 | proxyType = 2; 97 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 98 | remoteInfo = RCTWebSocket; 99 | }; 100 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 101 | isa = PBXContainerItemProxy; 102 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 103 | proxyType = 2; 104 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 105 | remoteInfo = React; 106 | }; 107 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 108 | isa = PBXContainerItemProxy; 109 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 110 | proxyType = 1; 111 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 112 | remoteInfo = "ExampleApp-tvOS"; 113 | }; 114 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 115 | isa = PBXContainerItemProxy; 116 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 117 | proxyType = 2; 118 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 119 | remoteInfo = "RCTImage-tvOS"; 120 | }; 121 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 122 | isa = PBXContainerItemProxy; 123 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 124 | proxyType = 2; 125 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 126 | remoteInfo = "RCTLinking-tvOS"; 127 | }; 128 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 129 | isa = PBXContainerItemProxy; 130 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 131 | proxyType = 2; 132 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 133 | remoteInfo = "RCTNetwork-tvOS"; 134 | }; 135 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 136 | isa = PBXContainerItemProxy; 137 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 138 | proxyType = 2; 139 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 140 | remoteInfo = "RCTSettings-tvOS"; 141 | }; 142 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 143 | isa = PBXContainerItemProxy; 144 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 145 | proxyType = 2; 146 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 147 | remoteInfo = "RCTText-tvOS"; 148 | }; 149 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 150 | isa = PBXContainerItemProxy; 151 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 152 | proxyType = 2; 153 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 154 | remoteInfo = "RCTWebSocket-tvOS"; 155 | }; 156 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 157 | isa = PBXContainerItemProxy; 158 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 159 | proxyType = 2; 160 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 161 | remoteInfo = "React-tvOS"; 162 | }; 163 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 164 | isa = PBXContainerItemProxy; 165 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 166 | proxyType = 2; 167 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 168 | remoteInfo = yoga; 169 | }; 170 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 171 | isa = PBXContainerItemProxy; 172 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 173 | proxyType = 2; 174 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 175 | remoteInfo = "yoga-tvOS"; 176 | }; 177 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 178 | isa = PBXContainerItemProxy; 179 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 180 | proxyType = 2; 181 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 182 | remoteInfo = cxxreact; 183 | }; 184 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 185 | isa = PBXContainerItemProxy; 186 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 187 | proxyType = 2; 188 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 189 | remoteInfo = "cxxreact-tvOS"; 190 | }; 191 | 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 192 | isa = PBXContainerItemProxy; 193 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 194 | proxyType = 2; 195 | remoteGlobalIDString = 3D3CD90B1DE5FBD600167DC4; 196 | remoteInfo = jschelpers; 197 | }; 198 | 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 199 | isa = PBXContainerItemProxy; 200 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 201 | proxyType = 2; 202 | remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; 203 | remoteInfo = "jschelpers-tvOS"; 204 | }; 205 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 206 | isa = PBXContainerItemProxy; 207 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 208 | proxyType = 2; 209 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 210 | remoteInfo = RCTAnimation; 211 | }; 212 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 213 | isa = PBXContainerItemProxy; 214 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 215 | proxyType = 2; 216 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 217 | remoteInfo = "RCTAnimation-tvOS"; 218 | }; 219 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 220 | isa = PBXContainerItemProxy; 221 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 222 | proxyType = 2; 223 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 224 | remoteInfo = RCTLinking; 225 | }; 226 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 227 | isa = PBXContainerItemProxy; 228 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 229 | proxyType = 2; 230 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 231 | remoteInfo = RCTText; 232 | }; 233 | /* End PBXContainerItemProxy section */ 234 | 235 | /* Begin PBXFileReference section */ 236 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 237 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 238 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 239 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 240 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 241 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 242 | 00E356EE1AD99517003FC87E /* ExampleAppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ExampleAppTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 243 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 244 | 00E356F21AD99517003FC87E /* ExampleAppTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ExampleAppTests.m; sourceTree = ""; }; 245 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 246 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 247 | 13B07F961A680F5B00A75B9A /* ExampleApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ExampleApp.app; sourceTree = BUILT_PRODUCTS_DIR; }; 248 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ExampleApp/AppDelegate.h; sourceTree = ""; }; 249 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = ExampleApp/AppDelegate.m; sourceTree = ""; }; 250 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 251 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ExampleApp/Images.xcassets; sourceTree = ""; }; 252 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ExampleApp/Info.plist; sourceTree = ""; }; 253 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ExampleApp/main.m; sourceTree = ""; }; 254 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 255 | 2D02E47B1E0B4A5D006451C7 /* ExampleApp-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ExampleApp-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 256 | 2D02E4901E0B4A5D006451C7 /* ExampleApp-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "ExampleApp-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 257 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 258 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 259 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 260 | AC9056121EB68D6800B291A2 /* ExampleApp-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "ExampleApp-Bridging-Header.h"; sourceTree = ""; }; 261 | AC90567A1EB6993F00B291A2 /* RNMailCompose-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "RNMailCompose-Bridging-Header.h"; sourceTree = ""; }; 262 | AC90567B1EB6993F00B291A2 /* RNMailCompose.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RNMailCompose.swift; sourceTree = ""; }; 263 | AC90567C1EB6993F00B291A2 /* RNMailComposeBridge.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNMailComposeBridge.m; sourceTree = ""; }; 264 | /* End PBXFileReference section */ 265 | 266 | /* Begin PBXFrameworksBuildPhase section */ 267 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 268 | isa = PBXFrameworksBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 272 | ); 273 | runOnlyForDeploymentPostprocessing = 0; 274 | }; 275 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 276 | isa = PBXFrameworksBuildPhase; 277 | buildActionMask = 2147483647; 278 | files = ( 279 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 280 | 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, 281 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 282 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 283 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 284 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 285 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 286 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 287 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 288 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 289 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 290 | ); 291 | runOnlyForDeploymentPostprocessing = 0; 292 | }; 293 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 294 | isa = PBXFrameworksBuildPhase; 295 | buildActionMask = 2147483647; 296 | files = ( 297 | 2D02E4C91E0B4AEC006451C7 /* libReact.a in Frameworks */, 298 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation-tvOS.a in Frameworks */, 299 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 300 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 301 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 302 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 303 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 304 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 305 | ); 306 | runOnlyForDeploymentPostprocessing = 0; 307 | }; 308 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 309 | isa = PBXFrameworksBuildPhase; 310 | buildActionMask = 2147483647; 311 | files = ( 312 | ); 313 | runOnlyForDeploymentPostprocessing = 0; 314 | }; 315 | /* End PBXFrameworksBuildPhase section */ 316 | 317 | /* Begin PBXGroup section */ 318 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 319 | isa = PBXGroup; 320 | children = ( 321 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 322 | ); 323 | name = Products; 324 | sourceTree = ""; 325 | }; 326 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 327 | isa = PBXGroup; 328 | children = ( 329 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 330 | ); 331 | name = Products; 332 | sourceTree = ""; 333 | }; 334 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 335 | isa = PBXGroup; 336 | children = ( 337 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 338 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 339 | ); 340 | name = Products; 341 | sourceTree = ""; 342 | }; 343 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 344 | isa = PBXGroup; 345 | children = ( 346 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 347 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 348 | ); 349 | name = Products; 350 | sourceTree = ""; 351 | }; 352 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 353 | isa = PBXGroup; 354 | children = ( 355 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 356 | ); 357 | name = Products; 358 | sourceTree = ""; 359 | }; 360 | 00E356EF1AD99517003FC87E /* ExampleAppTests */ = { 361 | isa = PBXGroup; 362 | children = ( 363 | 00E356F21AD99517003FC87E /* ExampleAppTests.m */, 364 | 00E356F01AD99517003FC87E /* Supporting Files */, 365 | ); 366 | path = ExampleAppTests; 367 | sourceTree = ""; 368 | }; 369 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 370 | isa = PBXGroup; 371 | children = ( 372 | 00E356F11AD99517003FC87E /* Info.plist */, 373 | ); 374 | name = "Supporting Files"; 375 | sourceTree = ""; 376 | }; 377 | 139105B71AF99BAD00B5F7CC /* Products */ = { 378 | isa = PBXGroup; 379 | children = ( 380 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 381 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 382 | ); 383 | name = Products; 384 | sourceTree = ""; 385 | }; 386 | 139FDEE71B06529A00C62182 /* Products */ = { 387 | isa = PBXGroup; 388 | children = ( 389 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 390 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 391 | ); 392 | name = Products; 393 | sourceTree = ""; 394 | }; 395 | 13B07FAE1A68108700A75B9A /* ExampleApp */ = { 396 | isa = PBXGroup; 397 | children = ( 398 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 399 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 400 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 401 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 402 | 13B07FB61A68108700A75B9A /* Info.plist */, 403 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 404 | 13B07FB71A68108700A75B9A /* main.m */, 405 | ); 406 | name = ExampleApp; 407 | sourceTree = ""; 408 | }; 409 | 146834001AC3E56700842450 /* Products */ = { 410 | isa = PBXGroup; 411 | children = ( 412 | 146834041AC3E56700842450 /* libReact.a */, 413 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 414 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 415 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 416 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 417 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 418 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */, 419 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */, 420 | ); 421 | name = Products; 422 | sourceTree = ""; 423 | }; 424 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 425 | isa = PBXGroup; 426 | children = ( 427 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 428 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */, 429 | ); 430 | name = Products; 431 | sourceTree = ""; 432 | }; 433 | 78C398B11ACF4ADC00677621 /* Products */ = { 434 | isa = PBXGroup; 435 | children = ( 436 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 437 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 438 | ); 439 | name = Products; 440 | sourceTree = ""; 441 | }; 442 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 443 | isa = PBXGroup; 444 | children = ( 445 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 446 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 447 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 448 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 449 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 450 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 451 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 452 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 453 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 454 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 455 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 456 | ); 457 | name = Libraries; 458 | sourceTree = ""; 459 | }; 460 | 832341B11AAA6A8300B99B32 /* Products */ = { 461 | isa = PBXGroup; 462 | children = ( 463 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 464 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 465 | ); 466 | name = Products; 467 | sourceTree = ""; 468 | }; 469 | 83CBB9F61A601CBA00E9B192 = { 470 | isa = PBXGroup; 471 | children = ( 472 | AC9056791EB6993F00B291A2 /* RNMailCompose */, 473 | AC9056121EB68D6800B291A2 /* ExampleApp-Bridging-Header.h */, 474 | 13B07FAE1A68108700A75B9A /* ExampleApp */, 475 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 476 | 00E356EF1AD99517003FC87E /* ExampleAppTests */, 477 | 83CBBA001A601CBA00E9B192 /* Products */, 478 | ); 479 | indentWidth = 2; 480 | sourceTree = ""; 481 | tabWidth = 2; 482 | }; 483 | 83CBBA001A601CBA00E9B192 /* Products */ = { 484 | isa = PBXGroup; 485 | children = ( 486 | 13B07F961A680F5B00A75B9A /* ExampleApp.app */, 487 | 00E356EE1AD99517003FC87E /* ExampleAppTests.xctest */, 488 | 2D02E47B1E0B4A5D006451C7 /* ExampleApp-tvOS.app */, 489 | 2D02E4901E0B4A5D006451C7 /* ExampleApp-tvOSTests.xctest */, 490 | ); 491 | name = Products; 492 | sourceTree = ""; 493 | }; 494 | AC9056791EB6993F00B291A2 /* RNMailCompose */ = { 495 | isa = PBXGroup; 496 | children = ( 497 | AC90567A1EB6993F00B291A2 /* RNMailCompose-Bridging-Header.h */, 498 | AC90567B1EB6993F00B291A2 /* RNMailCompose.swift */, 499 | AC90567C1EB6993F00B291A2 /* RNMailComposeBridge.m */, 500 | ); 501 | name = RNMailCompose; 502 | path = ../../ios/RNMailCompose; 503 | sourceTree = ""; 504 | }; 505 | /* End PBXGroup section */ 506 | 507 | /* Begin PBXNativeTarget section */ 508 | 00E356ED1AD99517003FC87E /* ExampleAppTests */ = { 509 | isa = PBXNativeTarget; 510 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ExampleAppTests" */; 511 | buildPhases = ( 512 | 00E356EA1AD99517003FC87E /* Sources */, 513 | 00E356EB1AD99517003FC87E /* Frameworks */, 514 | 00E356EC1AD99517003FC87E /* Resources */, 515 | ); 516 | buildRules = ( 517 | ); 518 | dependencies = ( 519 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 520 | ); 521 | name = ExampleAppTests; 522 | productName = ExampleAppTests; 523 | productReference = 00E356EE1AD99517003FC87E /* ExampleAppTests.xctest */; 524 | productType = "com.apple.product-type.bundle.unit-test"; 525 | }; 526 | 13B07F861A680F5B00A75B9A /* ExampleApp */ = { 527 | isa = PBXNativeTarget; 528 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ExampleApp" */; 529 | buildPhases = ( 530 | 13B07F871A680F5B00A75B9A /* Sources */, 531 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 532 | 13B07F8E1A680F5B00A75B9A /* Resources */, 533 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 534 | ); 535 | buildRules = ( 536 | ); 537 | dependencies = ( 538 | ); 539 | name = ExampleApp; 540 | productName = "Hello World"; 541 | productReference = 13B07F961A680F5B00A75B9A /* ExampleApp.app */; 542 | productType = "com.apple.product-type.application"; 543 | }; 544 | 2D02E47A1E0B4A5D006451C7 /* ExampleApp-tvOS */ = { 545 | isa = PBXNativeTarget; 546 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ExampleApp-tvOS" */; 547 | buildPhases = ( 548 | 2D02E4771E0B4A5D006451C7 /* Sources */, 549 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 550 | 2D02E4791E0B4A5D006451C7 /* Resources */, 551 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 552 | ); 553 | buildRules = ( 554 | ); 555 | dependencies = ( 556 | ); 557 | name = "ExampleApp-tvOS"; 558 | productName = "ExampleApp-tvOS"; 559 | productReference = 2D02E47B1E0B4A5D006451C7 /* ExampleApp-tvOS.app */; 560 | productType = "com.apple.product-type.application"; 561 | }; 562 | 2D02E48F1E0B4A5D006451C7 /* ExampleApp-tvOSTests */ = { 563 | isa = PBXNativeTarget; 564 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ExampleApp-tvOSTests" */; 565 | buildPhases = ( 566 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 567 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 568 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 569 | ); 570 | buildRules = ( 571 | ); 572 | dependencies = ( 573 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 574 | ); 575 | name = "ExampleApp-tvOSTests"; 576 | productName = "ExampleApp-tvOSTests"; 577 | productReference = 2D02E4901E0B4A5D006451C7 /* ExampleApp-tvOSTests.xctest */; 578 | productType = "com.apple.product-type.bundle.unit-test"; 579 | }; 580 | /* End PBXNativeTarget section */ 581 | 582 | /* Begin PBXProject section */ 583 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 584 | isa = PBXProject; 585 | attributes = { 586 | LastUpgradeCheck = 0610; 587 | ORGANIZATIONNAME = Facebook; 588 | TargetAttributes = { 589 | 00E356ED1AD99517003FC87E = { 590 | CreatedOnToolsVersion = 6.2; 591 | DevelopmentTeam = J623D3MCYC; 592 | TestTargetID = 13B07F861A680F5B00A75B9A; 593 | }; 594 | 13B07F861A680F5B00A75B9A = { 595 | DevelopmentTeam = J623D3MCYC; 596 | }; 597 | 2D02E47A1E0B4A5D006451C7 = { 598 | CreatedOnToolsVersion = 8.2.1; 599 | ProvisioningStyle = Automatic; 600 | }; 601 | 2D02E48F1E0B4A5D006451C7 = { 602 | CreatedOnToolsVersion = 8.2.1; 603 | ProvisioningStyle = Automatic; 604 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 605 | }; 606 | }; 607 | }; 608 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ExampleApp" */; 609 | compatibilityVersion = "Xcode 3.2"; 610 | developmentRegion = English; 611 | hasScannedForEncodings = 0; 612 | knownRegions = ( 613 | en, 614 | Base, 615 | ); 616 | mainGroup = 83CBB9F61A601CBA00E9B192; 617 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 618 | projectDirPath = ""; 619 | projectReferences = ( 620 | { 621 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 622 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 623 | }, 624 | { 625 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 626 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 627 | }, 628 | { 629 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 630 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 631 | }, 632 | { 633 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 634 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 635 | }, 636 | { 637 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 638 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 639 | }, 640 | { 641 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 642 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 643 | }, 644 | { 645 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 646 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 647 | }, 648 | { 649 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 650 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 651 | }, 652 | { 653 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 654 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 655 | }, 656 | { 657 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 658 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 659 | }, 660 | { 661 | ProductGroup = 146834001AC3E56700842450 /* Products */; 662 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 663 | }, 664 | ); 665 | projectRoot = ""; 666 | targets = ( 667 | 13B07F861A680F5B00A75B9A /* ExampleApp */, 668 | 00E356ED1AD99517003FC87E /* ExampleAppTests */, 669 | 2D02E47A1E0B4A5D006451C7 /* ExampleApp-tvOS */, 670 | 2D02E48F1E0B4A5D006451C7 /* ExampleApp-tvOSTests */, 671 | ); 672 | }; 673 | /* End PBXProject section */ 674 | 675 | /* Begin PBXReferenceProxy section */ 676 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 677 | isa = PBXReferenceProxy; 678 | fileType = archive.ar; 679 | path = libRCTActionSheet.a; 680 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 681 | sourceTree = BUILT_PRODUCTS_DIR; 682 | }; 683 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 684 | isa = PBXReferenceProxy; 685 | fileType = archive.ar; 686 | path = libRCTGeolocation.a; 687 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 688 | sourceTree = BUILT_PRODUCTS_DIR; 689 | }; 690 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 691 | isa = PBXReferenceProxy; 692 | fileType = archive.ar; 693 | path = libRCTImage.a; 694 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 695 | sourceTree = BUILT_PRODUCTS_DIR; 696 | }; 697 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 698 | isa = PBXReferenceProxy; 699 | fileType = archive.ar; 700 | path = libRCTNetwork.a; 701 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 702 | sourceTree = BUILT_PRODUCTS_DIR; 703 | }; 704 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 705 | isa = PBXReferenceProxy; 706 | fileType = archive.ar; 707 | path = libRCTVibration.a; 708 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 709 | sourceTree = BUILT_PRODUCTS_DIR; 710 | }; 711 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 712 | isa = PBXReferenceProxy; 713 | fileType = archive.ar; 714 | path = libRCTSettings.a; 715 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 716 | sourceTree = BUILT_PRODUCTS_DIR; 717 | }; 718 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 719 | isa = PBXReferenceProxy; 720 | fileType = archive.ar; 721 | path = libRCTWebSocket.a; 722 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 723 | sourceTree = BUILT_PRODUCTS_DIR; 724 | }; 725 | 146834041AC3E56700842450 /* libReact.a */ = { 726 | isa = PBXReferenceProxy; 727 | fileType = archive.ar; 728 | path = libReact.a; 729 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 730 | sourceTree = BUILT_PRODUCTS_DIR; 731 | }; 732 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 733 | isa = PBXReferenceProxy; 734 | fileType = archive.ar; 735 | path = "libRCTImage-tvOS.a"; 736 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 737 | sourceTree = BUILT_PRODUCTS_DIR; 738 | }; 739 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 740 | isa = PBXReferenceProxy; 741 | fileType = archive.ar; 742 | path = "libRCTLinking-tvOS.a"; 743 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 744 | sourceTree = BUILT_PRODUCTS_DIR; 745 | }; 746 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 747 | isa = PBXReferenceProxy; 748 | fileType = archive.ar; 749 | path = "libRCTNetwork-tvOS.a"; 750 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 751 | sourceTree = BUILT_PRODUCTS_DIR; 752 | }; 753 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 754 | isa = PBXReferenceProxy; 755 | fileType = archive.ar; 756 | path = "libRCTSettings-tvOS.a"; 757 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 758 | sourceTree = BUILT_PRODUCTS_DIR; 759 | }; 760 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 761 | isa = PBXReferenceProxy; 762 | fileType = archive.ar; 763 | path = "libRCTText-tvOS.a"; 764 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 765 | sourceTree = BUILT_PRODUCTS_DIR; 766 | }; 767 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 768 | isa = PBXReferenceProxy; 769 | fileType = archive.ar; 770 | path = "libRCTWebSocket-tvOS.a"; 771 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 772 | sourceTree = BUILT_PRODUCTS_DIR; 773 | }; 774 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 775 | isa = PBXReferenceProxy; 776 | fileType = archive.ar; 777 | path = libReact.a; 778 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 779 | sourceTree = BUILT_PRODUCTS_DIR; 780 | }; 781 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 782 | isa = PBXReferenceProxy; 783 | fileType = archive.ar; 784 | path = libyoga.a; 785 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 786 | sourceTree = BUILT_PRODUCTS_DIR; 787 | }; 788 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 789 | isa = PBXReferenceProxy; 790 | fileType = archive.ar; 791 | path = libyoga.a; 792 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 793 | sourceTree = BUILT_PRODUCTS_DIR; 794 | }; 795 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 796 | isa = PBXReferenceProxy; 797 | fileType = archive.ar; 798 | path = libcxxreact.a; 799 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 800 | sourceTree = BUILT_PRODUCTS_DIR; 801 | }; 802 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 803 | isa = PBXReferenceProxy; 804 | fileType = archive.ar; 805 | path = libcxxreact.a; 806 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 807 | sourceTree = BUILT_PRODUCTS_DIR; 808 | }; 809 | 3DAD3EAD1DF850E9000B6D8A /* libjschelpers.a */ = { 810 | isa = PBXReferenceProxy; 811 | fileType = archive.ar; 812 | path = libjschelpers.a; 813 | remoteRef = 3DAD3EAC1DF850E9000B6D8A /* PBXContainerItemProxy */; 814 | sourceTree = BUILT_PRODUCTS_DIR; 815 | }; 816 | 3DAD3EAF1DF850E9000B6D8A /* libjschelpers.a */ = { 817 | isa = PBXReferenceProxy; 818 | fileType = archive.ar; 819 | path = libjschelpers.a; 820 | remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; 821 | sourceTree = BUILT_PRODUCTS_DIR; 822 | }; 823 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 824 | isa = PBXReferenceProxy; 825 | fileType = archive.ar; 826 | path = libRCTAnimation.a; 827 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 828 | sourceTree = BUILT_PRODUCTS_DIR; 829 | }; 830 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation-tvOS.a */ = { 831 | isa = PBXReferenceProxy; 832 | fileType = archive.ar; 833 | path = "libRCTAnimation-tvOS.a"; 834 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 835 | sourceTree = BUILT_PRODUCTS_DIR; 836 | }; 837 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 838 | isa = PBXReferenceProxy; 839 | fileType = archive.ar; 840 | path = libRCTLinking.a; 841 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 842 | sourceTree = BUILT_PRODUCTS_DIR; 843 | }; 844 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 845 | isa = PBXReferenceProxy; 846 | fileType = archive.ar; 847 | path = libRCTText.a; 848 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 849 | sourceTree = BUILT_PRODUCTS_DIR; 850 | }; 851 | /* End PBXReferenceProxy section */ 852 | 853 | /* Begin PBXResourcesBuildPhase section */ 854 | 00E356EC1AD99517003FC87E /* Resources */ = { 855 | isa = PBXResourcesBuildPhase; 856 | buildActionMask = 2147483647; 857 | files = ( 858 | ); 859 | runOnlyForDeploymentPostprocessing = 0; 860 | }; 861 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 862 | isa = PBXResourcesBuildPhase; 863 | buildActionMask = 2147483647; 864 | files = ( 865 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 866 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 867 | ); 868 | runOnlyForDeploymentPostprocessing = 0; 869 | }; 870 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 871 | isa = PBXResourcesBuildPhase; 872 | buildActionMask = 2147483647; 873 | files = ( 874 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 875 | ); 876 | runOnlyForDeploymentPostprocessing = 0; 877 | }; 878 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 879 | isa = PBXResourcesBuildPhase; 880 | buildActionMask = 2147483647; 881 | files = ( 882 | ); 883 | runOnlyForDeploymentPostprocessing = 0; 884 | }; 885 | /* End PBXResourcesBuildPhase section */ 886 | 887 | /* Begin PBXShellScriptBuildPhase section */ 888 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 889 | isa = PBXShellScriptBuildPhase; 890 | buildActionMask = 2147483647; 891 | files = ( 892 | ); 893 | inputPaths = ( 894 | ); 895 | name = "Bundle React Native code and images"; 896 | outputPaths = ( 897 | ); 898 | runOnlyForDeploymentPostprocessing = 0; 899 | shellPath = /bin/sh; 900 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh"; 901 | }; 902 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 903 | isa = PBXShellScriptBuildPhase; 904 | buildActionMask = 2147483647; 905 | files = ( 906 | ); 907 | inputPaths = ( 908 | ); 909 | name = "Bundle React Native Code And Images"; 910 | outputPaths = ( 911 | ); 912 | runOnlyForDeploymentPostprocessing = 0; 913 | shellPath = /bin/sh; 914 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/packager/react-native-xcode.sh"; 915 | }; 916 | /* End PBXShellScriptBuildPhase section */ 917 | 918 | /* Begin PBXSourcesBuildPhase section */ 919 | 00E356EA1AD99517003FC87E /* Sources */ = { 920 | isa = PBXSourcesBuildPhase; 921 | buildActionMask = 2147483647; 922 | files = ( 923 | 00E356F31AD99517003FC87E /* ExampleAppTests.m in Sources */, 924 | ); 925 | runOnlyForDeploymentPostprocessing = 0; 926 | }; 927 | 13B07F871A680F5B00A75B9A /* Sources */ = { 928 | isa = PBXSourcesBuildPhase; 929 | buildActionMask = 2147483647; 930 | files = ( 931 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 932 | AC90567E1EB6993F00B291A2 /* RNMailComposeBridge.m in Sources */, 933 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 934 | AC90567D1EB6993F00B291A2 /* RNMailCompose.swift in Sources */, 935 | ); 936 | runOnlyForDeploymentPostprocessing = 0; 937 | }; 938 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 939 | isa = PBXSourcesBuildPhase; 940 | buildActionMask = 2147483647; 941 | files = ( 942 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 943 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 944 | ); 945 | runOnlyForDeploymentPostprocessing = 0; 946 | }; 947 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 948 | isa = PBXSourcesBuildPhase; 949 | buildActionMask = 2147483647; 950 | files = ( 951 | 2DCD954D1E0B4F2C00145EB5 /* ExampleAppTests.m in Sources */, 952 | ); 953 | runOnlyForDeploymentPostprocessing = 0; 954 | }; 955 | /* End PBXSourcesBuildPhase section */ 956 | 957 | /* Begin PBXTargetDependency section */ 958 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 959 | isa = PBXTargetDependency; 960 | target = 13B07F861A680F5B00A75B9A /* ExampleApp */; 961 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 962 | }; 963 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 964 | isa = PBXTargetDependency; 965 | target = 2D02E47A1E0B4A5D006451C7 /* ExampleApp-tvOS */; 966 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 967 | }; 968 | /* End PBXTargetDependency section */ 969 | 970 | /* Begin PBXVariantGroup section */ 971 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 972 | isa = PBXVariantGroup; 973 | children = ( 974 | 13B07FB21A68108700A75B9A /* Base */, 975 | ); 976 | name = LaunchScreen.xib; 977 | path = ExampleApp; 978 | sourceTree = ""; 979 | }; 980 | /* End PBXVariantGroup section */ 981 | 982 | /* Begin XCBuildConfiguration section */ 983 | 00E356F61AD99517003FC87E /* Debug */ = { 984 | isa = XCBuildConfiguration; 985 | buildSettings = { 986 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 987 | BUNDLE_LOADER = "$(TEST_HOST)"; 988 | DEVELOPMENT_TEAM = J623D3MCYC; 989 | GCC_PREPROCESSOR_DEFINITIONS = ( 990 | "DEBUG=1", 991 | "$(inherited)", 992 | ); 993 | INFOPLIST_FILE = ExampleAppTests/Info.plist; 994 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 995 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 996 | OTHER_LDFLAGS = ( 997 | "-ObjC", 998 | "-lc++", 999 | ); 1000 | PRODUCT_NAME = "$(TARGET_NAME)"; 1001 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ExampleApp.app/ExampleApp"; 1002 | }; 1003 | name = Debug; 1004 | }; 1005 | 00E356F71AD99517003FC87E /* Release */ = { 1006 | isa = XCBuildConfiguration; 1007 | buildSettings = { 1008 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 1009 | BUNDLE_LOADER = "$(TEST_HOST)"; 1010 | COPY_PHASE_STRIP = NO; 1011 | DEVELOPMENT_TEAM = J623D3MCYC; 1012 | INFOPLIST_FILE = ExampleAppTests/Info.plist; 1013 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1014 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1015 | OTHER_LDFLAGS = ( 1016 | "-ObjC", 1017 | "-lc++", 1018 | ); 1019 | PRODUCT_NAME = "$(TARGET_NAME)"; 1020 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ExampleApp.app/ExampleApp"; 1021 | }; 1022 | name = Release; 1023 | }; 1024 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1025 | isa = XCBuildConfiguration; 1026 | buildSettings = { 1027 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1028 | CURRENT_PROJECT_VERSION = 1; 1029 | DEAD_CODE_STRIPPING = NO; 1030 | DEVELOPMENT_TEAM = J623D3MCYC; 1031 | INFOPLIST_FILE = ExampleApp/Info.plist; 1032 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1033 | OTHER_LDFLAGS = ( 1034 | "$(inherited)", 1035 | "-ObjC", 1036 | "-lc++", 1037 | ); 1038 | PRODUCT_NAME = ExampleApp; 1039 | SWIFT_OBJC_BRIDGING_HEADER = "ExampleApp-Bridging-Header.h"; 1040 | SWIFT_VERSION = 3.0; 1041 | VERSIONING_SYSTEM = "apple-generic"; 1042 | }; 1043 | name = Debug; 1044 | }; 1045 | 13B07F951A680F5B00A75B9A /* Release */ = { 1046 | isa = XCBuildConfiguration; 1047 | buildSettings = { 1048 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1049 | CURRENT_PROJECT_VERSION = 1; 1050 | DEVELOPMENT_TEAM = J623D3MCYC; 1051 | INFOPLIST_FILE = ExampleApp/Info.plist; 1052 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1053 | OTHER_LDFLAGS = ( 1054 | "$(inherited)", 1055 | "-ObjC", 1056 | "-lc++", 1057 | ); 1058 | PRODUCT_NAME = ExampleApp; 1059 | SWIFT_OBJC_BRIDGING_HEADER = "ExampleApp-Bridging-Header.h"; 1060 | SWIFT_VERSION = 3.0; 1061 | VERSIONING_SYSTEM = "apple-generic"; 1062 | }; 1063 | name = Release; 1064 | }; 1065 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1066 | isa = XCBuildConfiguration; 1067 | buildSettings = { 1068 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1069 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1070 | CLANG_ANALYZER_NONNULL = YES; 1071 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1072 | CLANG_WARN_INFINITE_RECURSION = YES; 1073 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1074 | DEBUG_INFORMATION_FORMAT = dwarf; 1075 | ENABLE_TESTABILITY = YES; 1076 | GCC_NO_COMMON_BLOCKS = YES; 1077 | INFOPLIST_FILE = "ExampleApp-tvOS/Info.plist"; 1078 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1079 | OTHER_LDFLAGS = ( 1080 | "-ObjC", 1081 | "-lc++", 1082 | ); 1083 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ExampleApp-tvOS"; 1084 | PRODUCT_NAME = "$(TARGET_NAME)"; 1085 | SDKROOT = appletvos; 1086 | TARGETED_DEVICE_FAMILY = 3; 1087 | TVOS_DEPLOYMENT_TARGET = 9.2; 1088 | }; 1089 | name = Debug; 1090 | }; 1091 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1092 | isa = XCBuildConfiguration; 1093 | buildSettings = { 1094 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1095 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1096 | CLANG_ANALYZER_NONNULL = YES; 1097 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1098 | CLANG_WARN_INFINITE_RECURSION = YES; 1099 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1100 | COPY_PHASE_STRIP = NO; 1101 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1102 | GCC_NO_COMMON_BLOCKS = YES; 1103 | INFOPLIST_FILE = "ExampleApp-tvOS/Info.plist"; 1104 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1105 | OTHER_LDFLAGS = ( 1106 | "-ObjC", 1107 | "-lc++", 1108 | ); 1109 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ExampleApp-tvOS"; 1110 | PRODUCT_NAME = "$(TARGET_NAME)"; 1111 | SDKROOT = appletvos; 1112 | TARGETED_DEVICE_FAMILY = 3; 1113 | TVOS_DEPLOYMENT_TARGET = 9.2; 1114 | }; 1115 | name = Release; 1116 | }; 1117 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1118 | isa = XCBuildConfiguration; 1119 | buildSettings = { 1120 | BUNDLE_LOADER = "$(TEST_HOST)"; 1121 | CLANG_ANALYZER_NONNULL = YES; 1122 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1123 | CLANG_WARN_INFINITE_RECURSION = YES; 1124 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1125 | DEBUG_INFORMATION_FORMAT = dwarf; 1126 | ENABLE_TESTABILITY = YES; 1127 | GCC_NO_COMMON_BLOCKS = YES; 1128 | INFOPLIST_FILE = "ExampleApp-tvOSTests/Info.plist"; 1129 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1130 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ExampleApp-tvOSTests"; 1131 | PRODUCT_NAME = "$(TARGET_NAME)"; 1132 | SDKROOT = appletvos; 1133 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ExampleApp-tvOS.app/ExampleApp-tvOS"; 1134 | TVOS_DEPLOYMENT_TARGET = 10.1; 1135 | }; 1136 | name = Debug; 1137 | }; 1138 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1139 | isa = XCBuildConfiguration; 1140 | buildSettings = { 1141 | BUNDLE_LOADER = "$(TEST_HOST)"; 1142 | CLANG_ANALYZER_NONNULL = YES; 1143 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1144 | CLANG_WARN_INFINITE_RECURSION = YES; 1145 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1146 | COPY_PHASE_STRIP = NO; 1147 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1148 | GCC_NO_COMMON_BLOCKS = YES; 1149 | INFOPLIST_FILE = "ExampleApp-tvOSTests/Info.plist"; 1150 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1151 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ExampleApp-tvOSTests"; 1152 | PRODUCT_NAME = "$(TARGET_NAME)"; 1153 | SDKROOT = appletvos; 1154 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ExampleApp-tvOS.app/ExampleApp-tvOS"; 1155 | TVOS_DEPLOYMENT_TARGET = 10.1; 1156 | }; 1157 | name = Release; 1158 | }; 1159 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1160 | isa = XCBuildConfiguration; 1161 | buildSettings = { 1162 | ALWAYS_SEARCH_USER_PATHS = NO; 1163 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1164 | CLANG_CXX_LIBRARY = "libc++"; 1165 | CLANG_ENABLE_MODULES = YES; 1166 | CLANG_ENABLE_OBJC_ARC = YES; 1167 | CLANG_WARN_BOOL_CONVERSION = YES; 1168 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1169 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1170 | CLANG_WARN_EMPTY_BODY = YES; 1171 | CLANG_WARN_ENUM_CONVERSION = YES; 1172 | CLANG_WARN_INT_CONVERSION = YES; 1173 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1174 | CLANG_WARN_UNREACHABLE_CODE = YES; 1175 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1176 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1177 | COPY_PHASE_STRIP = NO; 1178 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1179 | GCC_C_LANGUAGE_STANDARD = gnu99; 1180 | GCC_DYNAMIC_NO_PIC = NO; 1181 | GCC_OPTIMIZATION_LEVEL = 0; 1182 | GCC_PREPROCESSOR_DEFINITIONS = ( 1183 | "DEBUG=1", 1184 | "$(inherited)", 1185 | ); 1186 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1187 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1188 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1189 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1190 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1191 | GCC_WARN_UNUSED_FUNCTION = YES; 1192 | GCC_WARN_UNUSED_VARIABLE = YES; 1193 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1194 | MTL_ENABLE_DEBUG_INFO = YES; 1195 | ONLY_ACTIVE_ARCH = YES; 1196 | SDKROOT = iphoneos; 1197 | }; 1198 | name = Debug; 1199 | }; 1200 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1201 | isa = XCBuildConfiguration; 1202 | buildSettings = { 1203 | ALWAYS_SEARCH_USER_PATHS = NO; 1204 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1205 | CLANG_CXX_LIBRARY = "libc++"; 1206 | CLANG_ENABLE_MODULES = YES; 1207 | CLANG_ENABLE_OBJC_ARC = YES; 1208 | CLANG_WARN_BOOL_CONVERSION = YES; 1209 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1210 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1211 | CLANG_WARN_EMPTY_BODY = YES; 1212 | CLANG_WARN_ENUM_CONVERSION = YES; 1213 | CLANG_WARN_INT_CONVERSION = YES; 1214 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1215 | CLANG_WARN_UNREACHABLE_CODE = YES; 1216 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1217 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1218 | COPY_PHASE_STRIP = YES; 1219 | ENABLE_NS_ASSERTIONS = NO; 1220 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1221 | GCC_C_LANGUAGE_STANDARD = gnu99; 1222 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1223 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1224 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1225 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1226 | GCC_WARN_UNUSED_FUNCTION = YES; 1227 | GCC_WARN_UNUSED_VARIABLE = YES; 1228 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 1229 | MTL_ENABLE_DEBUG_INFO = NO; 1230 | SDKROOT = iphoneos; 1231 | VALIDATE_PRODUCT = YES; 1232 | }; 1233 | name = Release; 1234 | }; 1235 | /* End XCBuildConfiguration section */ 1236 | 1237 | /* Begin XCConfigurationList section */ 1238 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ExampleAppTests" */ = { 1239 | isa = XCConfigurationList; 1240 | buildConfigurations = ( 1241 | 00E356F61AD99517003FC87E /* Debug */, 1242 | 00E356F71AD99517003FC87E /* Release */, 1243 | ); 1244 | defaultConfigurationIsVisible = 0; 1245 | defaultConfigurationName = Release; 1246 | }; 1247 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ExampleApp" */ = { 1248 | isa = XCConfigurationList; 1249 | buildConfigurations = ( 1250 | 13B07F941A680F5B00A75B9A /* Debug */, 1251 | 13B07F951A680F5B00A75B9A /* Release */, 1252 | ); 1253 | defaultConfigurationIsVisible = 0; 1254 | defaultConfigurationName = Release; 1255 | }; 1256 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ExampleApp-tvOS" */ = { 1257 | isa = XCConfigurationList; 1258 | buildConfigurations = ( 1259 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1260 | 2D02E4981E0B4A5E006451C7 /* Release */, 1261 | ); 1262 | defaultConfigurationIsVisible = 0; 1263 | defaultConfigurationName = Release; 1264 | }; 1265 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ExampleApp-tvOSTests" */ = { 1266 | isa = XCConfigurationList; 1267 | buildConfigurations = ( 1268 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1269 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1270 | ); 1271 | defaultConfigurationIsVisible = 0; 1272 | defaultConfigurationName = Release; 1273 | }; 1274 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ExampleApp" */ = { 1275 | isa = XCConfigurationList; 1276 | buildConfigurations = ( 1277 | 83CBBA201A601CBA00E9B192 /* Debug */, 1278 | 83CBBA211A601CBA00E9B192 /* Release */, 1279 | ); 1280 | defaultConfigurationIsVisible = 0; 1281 | defaultConfigurationName = Release; 1282 | }; 1283 | /* End XCConfigurationList section */ 1284 | }; 1285 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1286 | } 1287 | -------------------------------------------------------------------------------- /ExampleApp/ios/ExampleApp.xcodeproj/xcshareddata/xcschemes/ExampleApp-tvOS.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ExampleApp/ios/ExampleApp.xcodeproj/xcshareddata/xcschemes/ExampleApp.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 43 | 49 | 50 | 51 | 52 | 53 | 58 | 59 | 61 | 67 | 68 | 69 | 70 | 71 | 77 | 78 | 79 | 80 | 81 | 82 | 92 | 94 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 113 | 119 | 120 | 121 | 122 | 124 | 125 | 128 | 129 | 130 | -------------------------------------------------------------------------------- /ExampleApp/ios/ExampleApp/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | @interface AppDelegate : UIResponder 13 | 14 | @property (nonatomic, strong) UIWindow *window; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /ExampleApp/ios/ExampleApp/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import "AppDelegate.h" 11 | 12 | #import 13 | #import 14 | 15 | @implementation AppDelegate 16 | 17 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 18 | { 19 | NSURL *jsCodeLocation; 20 | 21 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; 22 | 23 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 24 | moduleName:@"ExampleApp" 25 | initialProperties:nil 26 | launchOptions:launchOptions]; 27 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 28 | 29 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 30 | UIViewController *rootViewController = [UIViewController new]; 31 | rootViewController.view = rootView; 32 | self.window.rootViewController = rootViewController; 33 | [self.window makeKeyAndVisible]; 34 | return YES; 35 | } 36 | 37 | @end 38 | -------------------------------------------------------------------------------- /ExampleApp/ios/ExampleApp/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /ExampleApp/ios/ExampleApp/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /ExampleApp/ios/ExampleApp/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ExampleApp 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UIViewControllerBasedStatusBarAppearance 40 | 41 | NSLocationWhenInUseUsageDescription 42 | 43 | NSAppTransportSecurity 44 | 45 | 46 | NSExceptionDomains 47 | 48 | localhost 49 | 50 | NSExceptionAllowsInsecureHTTPLoads 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /ExampleApp/ios/ExampleApp/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | 12 | #import "AppDelegate.h" 13 | 14 | int main(int argc, char * argv[]) { 15 | @autoreleasepool { 16 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /ExampleApp/ios/ExampleAppTests/ExampleAppTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015-present, Facebook, Inc. 3 | * All rights reserved. 4 | * 5 | * This source code is licensed under the BSD-style license found in the 6 | * LICENSE file in the root directory of this source tree. An additional grant 7 | * of patent rights can be found in the PATENTS file in the same directory. 8 | */ 9 | 10 | #import 11 | #import 12 | 13 | #import 14 | #import 15 | 16 | #define TIMEOUT_SECONDS 600 17 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 18 | 19 | @interface ExampleAppTests : XCTestCase 20 | 21 | @end 22 | 23 | @implementation ExampleAppTests 24 | 25 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 26 | { 27 | if (test(view)) { 28 | return YES; 29 | } 30 | for (UIView *subview in [view subviews]) { 31 | if ([self findSubviewInView:subview matching:test]) { 32 | return YES; 33 | } 34 | } 35 | return NO; 36 | } 37 | 38 | - (void)testRendersWelcomeScreen 39 | { 40 | UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; 41 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 42 | BOOL foundElement = NO; 43 | 44 | __block NSString *redboxError = nil; 45 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 46 | if (level >= RCTLogLevelError) { 47 | redboxError = message; 48 | } 49 | }); 50 | 51 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 52 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 53 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 54 | 55 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 56 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 57 | return YES; 58 | } 59 | return NO; 60 | }]; 61 | } 62 | 63 | RCTSetLogFunction(RCTDefaultLogFunction); 64 | 65 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 66 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 67 | } 68 | 69 | 70 | @end 71 | -------------------------------------------------------------------------------- /ExampleApp/ios/ExampleAppTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /ExampleApp/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ExampleApp", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "test": "jest" 8 | }, 9 | "dependencies": { 10 | "react": "16.0.0-alpha.6", 11 | "react-native": "0.43.4", 12 | "react-native-mail-compose": "joonhocho/react-native-mail-compose" 13 | }, 14 | "devDependencies": { 15 | "babel-jest": "19.0.0", 16 | "babel-preset-react-native": "1.9.1", 17 | "jest": "19.0.2", 18 | "react-test-renderer": "16.0.0-alpha.6" 19 | }, 20 | "jest": { 21 | "preset": "react-native" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Joon Ho Cho 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # react-native-mail-compose 2 | React Native library for composing email. Wraps MFMailComposeViewController for iOS and Intent for Android. 3 | 4 | For composing text message, check out [joonhocho/react-native-message-compose](https://github.com/joonhocho/react-native-message-compose). 5 | 6 | 7 | ## Getting started 8 | 9 | Tested with React Native 0.43.x. 10 | 11 | `$ react-native install react-native-mail-compose` 12 | 13 | 14 | ## Android (Manual Installation) 15 | Theses steps are automatically done by `react-native install`. 16 | 17 | - Add to your `{YourApp}/android/settings.gradle`: 18 | ``` 19 | include ':react-native-mail-compose' 20 | project(':react-native-mail-compose').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-mail-compose/android') 21 | ...other modules 22 | ``` 23 | 24 | - Modify your `{YourApp}/android/app/build.gradle`: 25 | ``` 26 | dependencies { 27 | compile project(':react-native-mail-compose') // Add this 28 | ...other modules 29 | } 30 | ``` 31 | 32 | - Modify your `{YourApp}/android/app/src/main/java/com/{YourApp}/MainApplication.java`: 33 | ``` 34 | ... 35 | import com.reactlibrary.mailcompose.RNMailComposePackage; // Add this 36 | ... 37 | public class MainApplication extends Application implements ReactApplication { 38 | ... 39 | protected List getPackages() { 40 | return Arrays.asList( 41 | new MainReactPackage(), 42 | new RNMailComposePackage() // Add this 43 | ...other modules 44 | ); 45 | } 46 | ``` 47 | 48 | ## iOS (Required) 49 | These steps MUST be done manually. They are NOT done by `react-native install`. 50 | 51 | - Make sure you have a Swift Bridging Header for your project. Here's [how to create one](http://www.learnswiftonline.com/getting-started/adding-swift-bridging-header/) if you don't. 52 | - Open up your project in xcode and right click the package. 53 | - Click `Add files to '{YourApp}'`. 54 | - Select to `{YourApp}/node_modules/react-native-mail-compose/ios/RNMailCompose`. 55 | - Click 'Add'. 56 | 57 | 58 | Add to your Swift Bridging Header, `{YourApp}/ios/{YourApp}-Bridging-Header.h`: 59 | ``` 60 | #import 61 | #import 62 | #import 63 | ``` 64 | 65 | ## Usage 66 | ```javascript 67 | import MailCompose from 'react-native-mail-compose'; 68 | 69 | // later in your code... 70 | async sendMail() { 71 | try { 72 | await MailCompose.send({ 73 | toRecipients: ['to1@example.com', 'to2@example.com'], 74 | ccRecipients: ['cc1@example.com', 'cc2@example.com'], 75 | bccRecipients: ['bcc1@example.com', 'bcc2@example.com'], 76 | subject: 'This is subject', 77 | text: 'This is body', 78 | html: '

This is html body

', // Or, use this if you want html body. Note that some Android mail clients / devices don't support this properly. 79 | attachments: [{ 80 | filename: 'mytext', // [Optional] If not provided, UUID will be generated. 81 | ext: '.txt', 82 | mimeType: 'text/plain', 83 | text: 'Hello my friend', // Use this if the data is in UTF8 text. 84 | data: '...BASE64_ENCODED_STRING...', // Or, use this if the data is not in plain text. 85 | }], 86 | }); 87 | } catch (e) { 88 | // e.code may be 'cannotSendMail' || 'cancelled' || 'saved' || 'failed' 89 | } 90 | } 91 | ``` 92 | 93 | 94 | ## LICENSE 95 | ``` 96 | The MIT License (MIT) 97 | 98 | Copyright (c) 2017 Joon Ho Cho 99 | 100 | Permission is hereby granted, free of charge, to any person obtaining a copy 101 | of this software and associated documentation files (the "Software"), to deal 102 | in the Software without restriction, including without limitation the rights 103 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 104 | copies of the Software, and to permit persons to whom the Software is 105 | furnished to do so, subject to the following conditions: 106 | 107 | The above copyright notice and this permission notice shall be included in all 108 | copies or substantial portions of the Software. 109 | 110 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 111 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 112 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 113 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 114 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 115 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 116 | SOFTWARE. 117 | ``` 118 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.1" 6 | 7 | defaultConfig { 8 | minSdkVersion 16 9 | targetSdkVersion 22 10 | versionCode 1 11 | versionName "1.0" 12 | ndk { 13 | abiFilters "armeabi-v7a", "x86" 14 | } 15 | } 16 | 17 | lintOptions { 18 | abortOnError false 19 | } 20 | } 21 | 22 | dependencies { 23 | compile "com.facebook.react:react-native:+" 24 | } 25 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/joonhocho/react-native-mail-compose/853582aa4453e4fd6e974e257f3eaf9db93fa6cf/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Dec 28 10:00:20 PST 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip 7 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 10 | DEFAULT_JVM_OPTS="" 11 | 12 | APP_NAME="Gradle" 13 | APP_BASE_NAME=`basename "$0"` 14 | 15 | # Use the maximum available, or set MAX_FD != -1 to use that value. 16 | MAX_FD="maximum" 17 | 18 | warn ( ) { 19 | echo "$*" 20 | } 21 | 22 | die ( ) { 23 | echo 24 | echo "$*" 25 | echo 26 | exit 1 27 | } 28 | 29 | # OS specific support (must be 'true' or 'false'). 30 | cygwin=false 31 | msys=false 32 | darwin=false 33 | case "`uname`" in 34 | CYGWIN* ) 35 | cygwin=true 36 | ;; 37 | Darwin* ) 38 | darwin=true 39 | ;; 40 | MINGW* ) 41 | msys=true 42 | ;; 43 | esac 44 | 45 | # Attempt to set APP_HOME 46 | # Resolve links: $0 may be a link 47 | PRG="$0" 48 | # Need this for relative symlinks. 49 | while [ -h "$PRG" ] ; do 50 | ls=`ls -ld "$PRG"` 51 | link=`expr "$ls" : '.*-> \(.*\)$'` 52 | if expr "$link" : '/.*' > /dev/null; then 53 | PRG="$link" 54 | else 55 | PRG=`dirname "$PRG"`"/$link" 56 | fi 57 | done 58 | SAVED="`pwd`" 59 | cd "`dirname \"$PRG\"`/" >/dev/null 60 | APP_HOME="`pwd -P`" 61 | cd "$SAVED" >/dev/null 62 | 63 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 64 | 65 | # Determine the Java command to use to start the JVM. 66 | if [ -n "$JAVA_HOME" ] ; then 67 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 68 | # IBM's JDK on AIX uses strange locations for the executables 69 | JAVACMD="$JAVA_HOME/jre/sh/java" 70 | else 71 | JAVACMD="$JAVA_HOME/bin/java" 72 | fi 73 | if [ ! -x "$JAVACMD" ] ; then 74 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 75 | 76 | Please set the JAVA_HOME variable in your environment to match the 77 | location of your Java installation." 78 | fi 79 | else 80 | JAVACMD="java" 81 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 82 | 83 | Please set the JAVA_HOME variable in your environment to match the 84 | location of your Java installation." 85 | fi 86 | 87 | # Increase the maximum file descriptors if we can. 88 | if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then 89 | MAX_FD_LIMIT=`ulimit -H -n` 90 | if [ $? -eq 0 ] ; then 91 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 92 | MAX_FD="$MAX_FD_LIMIT" 93 | fi 94 | ulimit -n $MAX_FD 95 | if [ $? -ne 0 ] ; then 96 | warn "Could not set maximum file descriptor limit: $MAX_FD" 97 | fi 98 | else 99 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 100 | fi 101 | fi 102 | 103 | # For Darwin, add options to specify how the application appears in the dock 104 | if $darwin; then 105 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 106 | fi 107 | 108 | # For Cygwin, switch paths to Windows format before running java 109 | if $cygwin ; then 110 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 111 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 112 | JAVACMD=`cygpath --unix "$JAVACMD"` 113 | 114 | # We build the pattern for arguments to be converted via cygpath 115 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 116 | SEP="" 117 | for dir in $ROOTDIRSRAW ; do 118 | ROOTDIRS="$ROOTDIRS$SEP$dir" 119 | SEP="|" 120 | done 121 | OURCYGPATTERN="(^($ROOTDIRS))" 122 | # Add a user-defined pattern to the cygpath arguments 123 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 124 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 125 | fi 126 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 127 | i=0 128 | for arg in "$@" ; do 129 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 130 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 131 | 132 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 133 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 134 | else 135 | eval `echo args$i`="\"$arg\"" 136 | fi 137 | i=$((i+1)) 138 | done 139 | case $i in 140 | (0) set -- ;; 141 | (1) set -- "$args0" ;; 142 | (2) set -- "$args0" "$args1" ;; 143 | (3) set -- "$args0" "$args1" "$args2" ;; 144 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 145 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 146 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 147 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 148 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 149 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 150 | esac 151 | fi 152 | 153 | # Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules 154 | function splitJvmOpts() { 155 | JVM_OPTS=("$@") 156 | } 157 | eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS 158 | JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" 159 | 160 | exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" 161 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 12 | set DEFAULT_JVM_OPTS= 13 | 14 | set DIRNAME=%~dp0 15 | if "%DIRNAME%" == "" set DIRNAME=. 16 | set APP_BASE_NAME=%~n0 17 | set APP_HOME=%DIRNAME% 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windowz variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | if "%@eval[2+2]" == "4" goto 4NT_args 53 | 54 | :win9xME_args 55 | @rem Slurp the command line arguments. 56 | set CMD_LINE_ARGS= 57 | set _SKIP=2 58 | 59 | :win9xME_args_slurp 60 | if "x%~1" == "x" goto execute 61 | 62 | set CMD_LINE_ARGS=%* 63 | goto execute 64 | 65 | :4NT_args 66 | @rem Get arguments from the 4NT Shell from JP Software 67 | set CMD_LINE_ARGS=%$ 68 | 69 | :execute 70 | @rem Setup the command line 71 | 72 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 73 | 74 | @rem Execute Gradle 75 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 76 | 77 | :end 78 | @rem End local scope for the variables with windows NT shell 79 | if "%ERRORLEVEL%"=="0" goto mainEnd 80 | 81 | :fail 82 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 83 | rem the _cmd.exe /c_ return code! 84 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 85 | exit /b 1 86 | 87 | :mainEnd 88 | if "%OS%"=="Windows_NT" endlocal 89 | 90 | :omega 91 | -------------------------------------------------------------------------------- /android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /android/src/main/java/com/reactlibrary/mailcompose/RNMailComposeModule.java: -------------------------------------------------------------------------------- 1 | package com.reactlibrary.mailcompose; 2 | 3 | import android.app.Activity; 4 | import android.content.ActivityNotFoundException; 5 | import android.content.Intent; 6 | import android.net.Uri; 7 | import android.os.Bundle; 8 | import android.text.Html; 9 | import android.text.Spanned; 10 | import android.util.Base64; 11 | 12 | import com.facebook.react.bridge.ActivityEventListener; 13 | import com.facebook.react.bridge.BaseActivityEventListener; 14 | import com.facebook.react.bridge.Promise; 15 | import com.facebook.react.bridge.ReactApplicationContext; 16 | import com.facebook.react.bridge.ReactContextBaseJavaModule; 17 | import com.facebook.react.bridge.ReactMethod; 18 | import com.facebook.react.bridge.ReadableArray; 19 | import com.facebook.react.bridge.ReadableMap; 20 | import com.facebook.react.bridge.ReadableType; 21 | 22 | import java.io.ByteArrayOutputStream; 23 | import java.io.File; 24 | import java.io.FileWriter; 25 | import java.io.BufferedWriter; 26 | import java.io.FileOutputStream; 27 | import java.io.IOException; 28 | import java.io.InputStream; 29 | import java.net.MalformedURLException; 30 | import java.net.URL; 31 | import java.util.ArrayList; 32 | import java.util.HashMap; 33 | import java.util.Map; 34 | import java.util.UUID; 35 | 36 | 37 | public class RNMailComposeModule extends ReactContextBaseJavaModule { 38 | private static final int ACTIVITY_SEND = 129382; 39 | 40 | private Promise mPromise; 41 | 42 | private final ActivityEventListener mActivityEventListener = new BaseActivityEventListener() { 43 | 44 | @Override 45 | public void onActivityResult(Activity activity, int requestCode, int resultCode, Intent intent) { 46 | if (requestCode == ACTIVITY_SEND) { 47 | if (mPromise != null) { 48 | if (resultCode == Activity.RESULT_CANCELED) { 49 | mPromise.reject("cancelled", "Operation has been cancelled"); 50 | } else { 51 | mPromise.resolve("sent"); 52 | } 53 | mPromise = null; 54 | } 55 | } 56 | } 57 | }; 58 | 59 | public RNMailComposeModule(final ReactApplicationContext reactContext) { 60 | super(reactContext); 61 | reactContext.addActivityEventListener(mActivityEventListener); 62 | } 63 | 64 | @Override 65 | public String getName() { 66 | return "RNMailCompose"; 67 | } 68 | 69 | @Override 70 | public Map getConstants() { 71 | final Map constants = new HashMap<>(); 72 | constants.put("name", getName()); 73 | return constants; 74 | } 75 | 76 | private void putExtra(Intent intent, String key, String value) { 77 | if (value != null && !value.isEmpty()) { 78 | intent.putExtra(key, value); 79 | } 80 | } 81 | 82 | private void putExtra(Intent intent, String key, Spanned value) { 83 | if (value != null) { 84 | intent.putExtra(key, value); 85 | } 86 | } 87 | 88 | private void putExtra(Intent intent, String key, String[] value) { 89 | if (value != null && value.length > 0) { 90 | intent.putExtra(key, value); 91 | } 92 | } 93 | 94 | private void putExtra(Intent intent, String key, ArrayList value) { 95 | if (value != null && value.size() > 0) { 96 | intent.putExtra(key, value); 97 | } 98 | } 99 | 100 | private void addAttachments(Intent intent, ReadableArray attachments) { 101 | if (attachments == null) return; 102 | 103 | ArrayList uris = new ArrayList<>(); 104 | for (int i = 0; i < attachments.size(); i++) { 105 | if (attachments.getType(i) == ReadableType.Map) { 106 | ReadableMap attachment = attachments.getMap(i); 107 | if (attachment != null) { 108 | byte[] blob = getBlob(attachment, "data"); 109 | String text = getString(attachment, "text"); 110 | // String mimeType = getString(attachment, "mimeType"); 111 | String filename = getString(attachment, "filename"); 112 | if (filename == null) { 113 | filename = UUID.randomUUID().toString(); 114 | } 115 | String ext = getString(attachment, "ext"); 116 | 117 | File tempFile = createTempFile(filename, ext); 118 | 119 | if (blob != null) { 120 | tempFile = writeBlob(tempFile, blob); 121 | } else if (text != null) { 122 | tempFile = writeText(tempFile, text); 123 | } 124 | 125 | if (tempFile != null) { 126 | uris.add(Uri.fromFile(tempFile)); 127 | } 128 | } 129 | } 130 | } 131 | 132 | if (uris.size() > 0) { 133 | intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, uris); 134 | } 135 | } 136 | 137 | private boolean isEmpty(String str) { 138 | return str == null || str.isEmpty(); 139 | } 140 | 141 | private String getString(ReadableMap map, String key) { 142 | if (map.hasKey(key) && map.getType(key) == ReadableType.String) { 143 | return map.getString(key); 144 | } 145 | return null; 146 | } 147 | 148 | private String[] getStringArray(ReadableMap map, String key) { 149 | ReadableArray array = getArray(map, key); 150 | if (array == null) return null; 151 | 152 | ArrayList list = new ArrayList<>(); 153 | for (int i = 0; i < array.size(); i++) { 154 | if (array.getType(i) == ReadableType.String) { 155 | String str = array.getString(i); 156 | if (!isEmpty(str)) { 157 | list.add(str); 158 | } 159 | } 160 | } 161 | 162 | String[] arr = new String[list.size()]; 163 | return list.toArray(arr); 164 | } 165 | 166 | private ReadableArray getArray(ReadableMap map, String key) { 167 | if (map.hasKey(key) && map.getType(key) == ReadableType.Array) { 168 | return map.getArray(key); 169 | } 170 | return null; 171 | } 172 | 173 | private ReadableMap getMap(ReadableMap map, String key) { 174 | if (map.hasKey(key) && map.getType(key) == ReadableType.Map) { 175 | return map.getMap(key); 176 | } 177 | return null; 178 | } 179 | 180 | private byte[] getBlob(ReadableMap map, String key) { 181 | if (map.hasKey(key) && map.getType(key) == ReadableType.String) { 182 | String base64 = map.getString(key); 183 | if (base64 != null && !base64.isEmpty()) { 184 | return Base64.decode(base64, 0); 185 | } 186 | } 187 | return null; 188 | } 189 | 190 | public static byte[] byteArrayFromUrl(String urlString) { 191 | URL url; 192 | try { 193 | url = new URL(urlString); 194 | } catch (MalformedURLException e) { 195 | return null; 196 | } 197 | 198 | ByteArrayOutputStream baos = new ByteArrayOutputStream(); 199 | InputStream is = null; 200 | 201 | try { 202 | is = url.openStream(); 203 | byte[] byteChunk = new byte[4096]; // Or whatever size you want to read in at a time. 204 | 205 | int n; 206 | while ((n = is.read(byteChunk)) > 0) { 207 | baos.write(byteChunk, 0, n); 208 | } 209 | } catch (IOException e) { 210 | return null; 211 | } finally { 212 | if (is != null) { 213 | try { 214 | is.close(); 215 | } catch (IOException e) { 216 | // do nothing 217 | } 218 | } 219 | } 220 | 221 | return baos.toByteArray(); 222 | } 223 | 224 | private byte[] getBlobFromUri(ReadableMap map, String key) { 225 | if (map.hasKey(key) && map.getType(key) == ReadableType.String) { 226 | String uri = map.getString(key); 227 | if (uri != null && !uri.isEmpty()) { 228 | return byteArrayFromUrl(uri); 229 | } 230 | } 231 | return null; 232 | } 233 | 234 | private File createTempFile(String filename, String ext) { 235 | if (filename != null && ext != null) { 236 | try { 237 | return File.createTempFile(filename, ext, getCurrentActivity().getBaseContext().getExternalCacheDir()); 238 | } catch (IOException e1) { 239 | } 240 | } 241 | return null; 242 | } 243 | 244 | private File writeText(File file, String text) { 245 | if (file != null && text != null) { 246 | BufferedWriter bw = null; 247 | try { 248 | bw = new BufferedWriter(new FileWriter(file.getAbsoluteFile())); 249 | bw.write(text); 250 | bw.flush(); 251 | bw.close(); 252 | return file; 253 | } catch (Exception e) { 254 | if (bw != null) { 255 | try { 256 | bw.close(); 257 | } catch (Exception e1) { 258 | } 259 | } 260 | } 261 | } 262 | return null; 263 | } 264 | 265 | private File writeBlob(File file, byte[] blob) { 266 | if (file != null && blob != null) { 267 | FileOutputStream fo = null; 268 | try { 269 | fo = new FileOutputStream(file); 270 | fo.write(blob); 271 | fo.flush(); 272 | fo.close(); 273 | return file; 274 | } catch (Exception e) { 275 | if (fo != null) { 276 | try { 277 | fo.close(); 278 | } catch (Exception e1) { 279 | } 280 | } 281 | } 282 | } 283 | return null; 284 | } 285 | 286 | @ReactMethod 287 | public void send(ReadableMap data, Promise promise) throws IOException { 288 | if (mPromise != null) { 289 | mPromise.reject("timeout", "Operation has timed out"); 290 | mPromise = null; 291 | } 292 | 293 | Intent intent = new Intent(Intent.ACTION_SEND_MULTIPLE); 294 | 295 | String text = getString(data, "body"); 296 | String html = getString(data, "html"); 297 | if (!isEmpty(html)) { 298 | intent.setType("text/html"); 299 | putExtra(intent, Intent.EXTRA_TEXT, Html.fromHtml(html)); 300 | putExtra(intent, Intent.EXTRA_HTML_TEXT, Html.fromHtml(html)); 301 | } else { 302 | intent.setType("text/plain"); 303 | if (!isEmpty(text)) { 304 | putExtra(intent, Intent.EXTRA_TEXT, text); 305 | } 306 | } 307 | 308 | putExtra(intent, Intent.EXTRA_SUBJECT, getString(data, "subject")); 309 | putExtra(intent, Intent.EXTRA_EMAIL, getStringArray(data, "toRecipients")); 310 | putExtra(intent, Intent.EXTRA_CC, getStringArray(data, "ccRecipients")); 311 | putExtra(intent, Intent.EXTRA_BCC, getStringArray(data, "bccRecipients")); 312 | addAttachments(intent, getArray(data, "attachments")); 313 | 314 | intent.putExtra("exit_on_sent", true); 315 | intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 316 | intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); 317 | 318 | try { 319 | getCurrentActivity().startActivityForResult(Intent.createChooser(intent, "Send Mail"), ACTIVITY_SEND); 320 | mPromise = promise; 321 | } catch (ActivityNotFoundException e) { 322 | promise.reject("failed", "Activity Not Found"); 323 | } catch (Exception e) { 324 | promise.reject("failed", "Unknown Error"); 325 | } 326 | } 327 | } 328 | 329 | -------------------------------------------------------------------------------- /android/src/main/java/com/reactlibrary/mailcompose/RNMailComposePackage.java: -------------------------------------------------------------------------------- 1 | package com.reactlibrary.mailcompose; 2 | 3 | import com.facebook.react.ReactPackage; 4 | import com.facebook.react.bridge.JavaScriptModule; 5 | import com.facebook.react.bridge.NativeModule; 6 | import com.facebook.react.bridge.ReactApplicationContext; 7 | import com.facebook.react.uimanager.ViewManager; 8 | import java.util.Arrays; 9 | import java.util.Collections; 10 | import java.util.List; 11 | 12 | 13 | public class RNMailComposePackage implements ReactPackage { 14 | @Override 15 | public List createNativeModules(ReactApplicationContext reactContext) { 16 | return Arrays.asList(new RNMailComposeModule(reactContext)); 17 | } 18 | 19 | // Depreciated RN 0.47 20 | public List> createJSModules() { 21 | return Collections.emptyList(); 22 | } 23 | 24 | @Override 25 | public List createViewManagers(ReactApplicationContext reactContext) { 26 | return Collections.emptyList(); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./js/RNMailCompose'); 2 | -------------------------------------------------------------------------------- /ios/RNMailCompose.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 7 | 9 | 10 | 12 | 13 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /ios/RNMailCompose/RNMailCompose-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // RNMailCompose-Bridging-Header.h 3 | // DropCard 4 | // 5 | // Created by Joon Ho Cho on 4/30/17. 6 | // 7 | 8 | #ifndef RNMailCompose_Bridging_Header_h 9 | #define RNMailCompose_Bridging_Header_h 10 | 11 | #import 12 | #import 13 | 14 | #endif /* RNMailCompose_Bridging_Header_h */ 15 | -------------------------------------------------------------------------------- /ios/RNMailCompose/RNMailCompose.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RNMailCompose.swift 3 | // DropCard 4 | // 5 | // Created by Joon Ho Cho on 4/30/17. 6 | // 7 | 8 | import Foundation 9 | import MobileCoreServices 10 | import MessageUI 11 | 12 | 13 | @objc(RNMailCompose) 14 | class RNMailCompose: NSObject, MFMailComposeViewControllerDelegate { 15 | var resolve: RCTPromiseResolveBlock? 16 | var reject: RCTPromiseRejectBlock? 17 | 18 | @objc func constantsToExport() -> [String: Any] { 19 | return [ 20 | "name": "RNMailCompose", 21 | ] 22 | } 23 | 24 | @objc func canSendMail(_ resolve: RCTPromiseResolveBlock, reject: RCTPromiseRejectBlock) { 25 | return resolve(MFMailComposeViewController.canSendMail()) 26 | } 27 | 28 | func textToData(utf8: String?, base64: String?) -> Data? { 29 | if let utf8 = utf8 { 30 | return utf8.data(using: .utf8) 31 | } 32 | if let base64 = base64 { 33 | return Data(base64Encoded: base64, options: .ignoreUnknownCharacters) 34 | } 35 | return nil 36 | } 37 | 38 | func toFilename(filename: String?, ext: String?) -> String? { 39 | if let ext = ext { 40 | return (filename ?? UUID().uuidString) + ext 41 | } 42 | return nil 43 | } 44 | 45 | @objc func send(_ data: [String: Any], resolve: @escaping RCTPromiseResolveBlock, reject: @escaping RCTPromiseRejectBlock) { 46 | if !MFMailComposeViewController.canSendMail() { 47 | reject("cannotSendMail", "Cannot send mail", nil) 48 | return 49 | } 50 | 51 | let vc = MFMailComposeViewController() 52 | 53 | if let value = data["subject"] as? String { 54 | vc.setSubject(value) 55 | } 56 | if let value = data["toRecipients"] as? [String] { 57 | vc.setToRecipients(value) 58 | } 59 | if let value = data["ccRecipients"] as? [String] { 60 | vc.setCcRecipients(value) 61 | } 62 | if let value = data["bccRecipients"] as? [String] { 63 | vc.setBccRecipients(value) 64 | } 65 | if let value = data["body"] as? String { 66 | vc.setMessageBody(value, isHTML: false) 67 | } 68 | if let value = data["html"] as? String { 69 | vc.setMessageBody(value, isHTML: true) 70 | } 71 | 72 | if let value = data["attachments"] as? [[String: String]] { 73 | for dict in value { 74 | if let data = textToData(utf8: dict["text"], base64: dict["data"]), let mimeType = dict["mimeType"], let filename = toFilename(filename: dict["filename"], ext: dict["ext"]) { 75 | vc.addAttachmentData(data, mimeType: mimeType, fileName: filename) 76 | } 77 | } 78 | } 79 | 80 | vc.mailComposeDelegate = self 81 | 82 | if present(viewController: vc) { 83 | self.resolve = resolve 84 | self.reject = reject 85 | } else { 86 | reject("failed", "Could not present view controller", nil) 87 | } 88 | } 89 | 90 | func mailComposeController(_ controller: MFMailComposeViewController, didFinishWith result: MFMailComposeResult, error: Error?) { 91 | switch (result) { 92 | case .cancelled: 93 | reject?("cancelled", "Operation has been cancelled", nil) 94 | break 95 | case .sent: 96 | resolve?("sent") 97 | break 98 | case .saved: 99 | reject?("saved", "Draft has been saved", nil) 100 | break 101 | case .failed: 102 | reject?("failed", "Operation has failed", nil) 103 | break 104 | } 105 | resolve = nil 106 | reject = nil 107 | 108 | controller.dismiss(animated: true, completion: nil) 109 | } 110 | 111 | func getTopViewController(window: UIWindow?) -> UIViewController? { 112 | if let window = window { 113 | var top = window.rootViewController 114 | while true { 115 | if let presented = top?.presentedViewController { 116 | top = presented 117 | } else if let nav = top as? UINavigationController { 118 | top = nav.visibleViewController 119 | } else if let tab = top as? UITabBarController { 120 | top = tab.selectedViewController 121 | } else { 122 | break 123 | } 124 | } 125 | return top 126 | } 127 | return nil 128 | } 129 | 130 | func present(viewController: UIViewController) -> Bool { 131 | if let topVc = getTopViewController(window: UIApplication.shared.keyWindow) { 132 | topVc.present(viewController, animated: true, completion: nil) 133 | return true 134 | } 135 | return false 136 | } 137 | } 138 | 139 | -------------------------------------------------------------------------------- /ios/RNMailCompose/RNMailComposeBridge.m: -------------------------------------------------------------------------------- 1 | // 2 | // RNMailComposeBridge.m 3 | // DropCard 4 | // 5 | // Created by Joon Ho Cho on 4/30/17. 6 | // 7 | 8 | #import 9 | #import 10 | #import 11 | 12 | #import 13 | #import 14 | 15 | @interface RCT_EXTERN_MODULE(RNMailCompose, NSObject) 16 | 17 | RCT_EXTERN_METHOD(canSendMail:(RCTPromiseResolveBlock)resolve 18 | reject:(RCTPromiseRejectBlock)reject); 19 | 20 | RCT_EXTERN_METHOD(send:(NSDictionary *)data 21 | resolve:(RCTPromiseResolveBlock)resolve 22 | reject:(RCTPromiseRejectBlock)reject); 23 | 24 | @end 25 | -------------------------------------------------------------------------------- /js/RNMailCompose.android.js: -------------------------------------------------------------------------------- 1 | import {NativeModules} from 'react-native'; 2 | import formatData from './formatData'; 3 | 4 | 5 | const {RNMailCompose} = NativeModules; 6 | 7 | export default { 8 | name: RNMailCompose.name, 9 | 10 | send(data) { 11 | return RNMailCompose.send(data); 12 | }, 13 | }; 14 | -------------------------------------------------------------------------------- /js/RNMailCompose.ios.js: -------------------------------------------------------------------------------- 1 | import {NativeModules} from 'react-native'; 2 | import formatData from './formatData'; 3 | 4 | 5 | const {RNMailCompose} = NativeModules; 6 | 7 | export default { 8 | name: RNMailCompose.name, 9 | 10 | canSendMail() { 11 | return RNMailCompose.canSendMail(); 12 | }, 13 | 14 | send(data) { 15 | return RNMailCompose.send(data); 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /js/formatData.android.js: -------------------------------------------------------------------------------- 1 | export default ({ 2 | recipients, 3 | body, 4 | subject, 5 | attachments, 6 | }) => ({ 7 | address: recipients.join(';'), 8 | body, 9 | subject, 10 | attachment: attachments[0], 11 | }); 12 | -------------------------------------------------------------------------------- /js/formatData.ios.js: -------------------------------------------------------------------------------- 1 | export default (data) => data; 2 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | "name": "react-native-mail-compose", 4 | "version": "0.0.6", 5 | "description": "React Native library for composing email. Wraps MFMailComposeViewController for iOS and Intent for Android.", 6 | "main": "index.js", 7 | "scripts": { 8 | "test": "echo \"Error: no test specified\" && exit 1" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "https://github.com/joonhocho/react-native-mail-compose.git" 13 | }, 14 | "keywords": [ 15 | "react-native", 16 | "react", 17 | "native", 18 | "mail", 19 | "email", 20 | "compose", 21 | "MFMailComposeViewController", 22 | "ios", 23 | "intent", 24 | "android" 25 | ], 26 | "author": "Joon Ho Cho ", 27 | "license": "MIT", 28 | "bugs": { 29 | "url": "https://github.com/joonhocho/react-native-mail-compose/issues" 30 | }, 31 | "homepage": "https://github.com/joonhocho/react-native-mail-compose#readme" 32 | } 33 | -------------------------------------------------------------------------------- /react-native-mail-compose.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "react-native-mail-compose" 3 | s.version = "0.0.3" 4 | s.summary = "React Native library for composing email. Wraps MFMailComposeViewController for iOS and Intent for Android." 5 | s.requires_arc = true 6 | s.license = 'MIT' 7 | s.homepage = 'https://github.com/joonhocho/react-native-mail-compose' 8 | s.author = "Joon Ho Cho" 9 | s.source = { :git => "https://github.com/joonhocho/react-native-mail-compose.git" } 10 | s.source_files = 'ios/**/*.{h,m,swift}' 11 | s.platform = :ios, "8.0" 12 | s.dependency 'React/Core' 13 | end 14 | --------------------------------------------------------------------------------