├── .editorconfig ├── .gitignore ├── .npmignore ├── .prettierignore ├── LICENSE ├── ReactNativeDraftjsExample ├── .buckconfig ├── .eslintrc.js ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .watchmanconfig ├── App.js ├── __tests__ │ └── App-test.js ├── android │ ├── app │ │ ├── BUCK │ │ ├── build.gradle │ │ ├── build_defs.bzl │ │ ├── debug.keystore │ │ ├── proguard-rules.pro │ │ └── src │ │ │ ├── debug │ │ │ └── AndroidManifest.xml │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── assets │ │ │ └── draftjs-source.html │ │ │ ├── java │ │ │ └── com │ │ │ │ └── reactnativedraftjsexample │ │ │ │ ├── MainActivity.java │ │ │ │ └── MainApplication.java │ │ │ └── res │ │ │ ├── mipmap-hdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-mdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.png │ │ │ ├── mipmap-xxxhdpi │ │ │ ├── ic_launcher.png │ │ │ └── ic_launcher_round.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 ├── babel.config.js ├── index.js ├── ios │ ├── Podfile │ ├── Podfile.lock │ ├── ReactNativeDraftjsExample-tvOS │ │ └── Info.plist │ ├── ReactNativeDraftjsExample-tvOSTests │ │ └── Info.plist │ ├── ReactNativeDraftjsExample.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── ReactNativeDraftjsExample-tvOS.xcscheme │ │ │ └── ReactNativeDraftjsExample.xcscheme │ ├── ReactNativeDraftjsExample.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── ReactNativeDraftjsExample │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Base.lproj │ │ │ └── LaunchScreen.xib │ │ ├── Images.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ └── Contents.json │ │ ├── Info.plist │ │ └── main.m │ └── ReactNativeDraftjsExampleTests │ │ ├── Info.plist │ │ └── ReactNativeDraftjsExampleTests.m ├── metro.config.js ├── package.json └── yarn.lock ├── Readme.md ├── assets └── react-native-drafjs-in-action.png ├── copyHtml.gradle ├── draftjs-html-source └── draftjs-source.html ├── draftjs-web ├── .gitignore ├── README.md ├── package.json ├── public │ ├── favicon.ico │ ├── index.html │ └── manifest.json ├── src │ ├── App.css │ ├── App.js │ ├── App.test.js │ ├── Components │ │ └── EditorController │ │ │ ├── Components │ │ │ └── ControllerButton.js │ │ │ └── EditorController.js │ ├── Constants │ │ ├── BlockTypes.js │ │ └── InlineStyles.js │ ├── index.css │ ├── index.js │ ├── logo.svg │ └── serviceWorker.js └── yarn.lock ├── index.js ├── package.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = lf 5 | insert_final_newline = true 6 | indent_style = space 7 | indent_size = 2 8 | trim_trailing_whitespace = true 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Build file of the drafjs web editor 2 | # draftjs-html-source/ 3 | 4 | # OSX 5 | # 6 | .DS_Store 7 | 8 | # Xcode 9 | # 10 | build/ 11 | *.pbxuser 12 | !default.pbxuser 13 | *.mode1v3 14 | !default.mode1v3 15 | *.mode2v3 16 | !default.mode2v3 17 | *.perspectivev3 18 | !default.perspectivev3 19 | xcuserdata 20 | *.xccheckout 21 | *.moved-aside 22 | DerivedData 23 | *.hmap 24 | *.ipa 25 | *.xcuserstate 26 | project.xcworkspace 27 | 28 | # Android/IntelliJ 29 | # 30 | build/ 31 | .idea 32 | .gradle 33 | local.properties 34 | *.iml 35 | 36 | # node.js 37 | # 38 | node_modules/ 39 | npm-debug.log 40 | yarn-error.log 41 | 42 | # BUCK 43 | buck-out/ 44 | \.buckd/ 45 | 46 | # fastlane 47 | # 48 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 49 | # screenshots whenever they are needed. 50 | # For more information about the recommended setup visit: 51 | # https://docs.fastlane.tools/best-practices/source-control/ 52 | 53 | */fastlane/report.xml 54 | */fastlane/Preview.html 55 | */fastlane/screenshots 56 | 57 | # Bundle artifact 58 | *.jsbundle 59 | 60 | # Ignore archives 61 | *.zip 62 | 63 | # Ignore env 64 | .env 65 | # Ignore changelog 66 | changeLog.txt 67 | 68 | 69 | # Created by https://www.gitignore.io/api/visualstudiocode,xcode,eclipse,android,intellij,cocoapods,androidstudio,fastlane,node 70 | # Edit at https://www.gitignore.io/?templates=visualstudiocode,xcode,eclipse,android,intellij,cocoapods,androidstudio,fastlane,node 71 | 72 | ### Android ### 73 | # Built application files 74 | *.apk 75 | *.ap_ 76 | *.aab 77 | 78 | # Files for the ART/Dalvik VM 79 | *.dex 80 | 81 | # Java class files 82 | *.class 83 | 84 | # Generated files 85 | bin/ 86 | gen/ 87 | out/ 88 | release/ 89 | 90 | # Gradle files 91 | .gradle/ 92 | build/ 93 | 94 | # Local configuration file (sdk path, etc) 95 | local.properties 96 | 97 | # Proguard folder generated by Eclipse 98 | proguard/ 99 | 100 | # Log Files 101 | *.log 102 | 103 | # Android Studio Navigation editor temp files 104 | .navigation/ 105 | 106 | # Android Studio captures folder 107 | captures/ 108 | 109 | # IntelliJ 110 | *.iml 111 | .idea/workspace.xml 112 | .idea/tasks.xml 113 | .idea/gradle.xml 114 | .idea/assetWizardSettings.xml 115 | .idea/dictionaries 116 | .idea/libraries 117 | # Android Studio 3 in .gitignore file. 118 | .idea/caches 119 | .idea/modules.xml 120 | # Comment next line if keeping position of elements in Navigation Editor is relevant for you 121 | .idea/navEditor.xml 122 | 123 | # Keystore files 124 | # Uncomment the following lines if you do not want to check your keystore files in. 125 | #*.jks 126 | #*.keystore 127 | 128 | # External native build folder generated in Android Studio 2.2 and later 129 | .externalNativeBuild 130 | 131 | # Google Services (e.g. APIs or Firebase) 132 | # google-services.json 133 | 134 | # Freeline 135 | freeline.py 136 | freeline/ 137 | freeline_project_description.json 138 | 139 | # fastlane 140 | fastlane/report.xml 141 | fastlane/Preview.html 142 | fastlane/screenshots 143 | fastlane/test_output 144 | fastlane/readme.md 145 | 146 | # Version control 147 | vcs.xml 148 | 149 | # lint 150 | lint/intermediates/ 151 | lint/generated/ 152 | lint/outputs/ 153 | lint/tmp/ 154 | # lint/reports/ 155 | 156 | ### Android Patch ### 157 | gen-external-apklibs 158 | output.json 159 | 160 | ### CocoaPods ### 161 | ## CocoaPods GitIgnore Template 162 | 163 | # CocoaPods - Only use to conserve bandwidth / Save time on Pushing 164 | # - Also handy if you have a large number of dependant pods 165 | # - AS PER https://guides.cocoapods.org/using/using-cocoapods.html NEVER IGNORE THE LOCK FILE 166 | Pods/ 167 | 168 | ### Eclipse ### 169 | .metadata 170 | tmp/ 171 | *.tmp 172 | *.bak 173 | *.swp 174 | *~.nib 175 | .settings/ 176 | .loadpath 177 | .recommenders 178 | 179 | # External tool builders 180 | .externalToolBuilders/ 181 | 182 | # Locally stored "Eclipse launch configurations" 183 | *.launch 184 | 185 | # PyDev specific (Python IDE for Eclipse) 186 | *.pydevproject 187 | 188 | # CDT-specific (C/C++ Development Tooling) 189 | .cproject 190 | 191 | # CDT- autotools 192 | .autotools 193 | 194 | # Java annotation processor (APT) 195 | .factorypath 196 | 197 | # PDT-specific (PHP Development Tools) 198 | .buildpath 199 | 200 | # sbteclipse plugin 201 | .target 202 | 203 | # Tern plugin 204 | .tern-project 205 | 206 | # TeXlipse plugin 207 | .texlipse 208 | 209 | # STS (Spring Tool Suite) 210 | .springBeans 211 | 212 | # Code Recommenders 213 | .recommenders/ 214 | 215 | # Annotation Processing 216 | .apt_generated/ 217 | 218 | # Scala IDE specific (Scala & Java development for Eclipse) 219 | .cache-main 220 | .scala_dependencies 221 | .worksheet 222 | 223 | ### Eclipse Patch ### 224 | # Eclipse Core 225 | .project 226 | 227 | # JDT-specific (Eclipse Java Development Tools) 228 | .classpath 229 | 230 | # Annotation Processing 231 | .apt_generated 232 | 233 | .sts4-cache/ 234 | 235 | ### fastlane ### 236 | # fastlane - A streamlined workflow tool for Cocoa deployment 237 | # 238 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 239 | # screenshots whenever they are needed. 240 | # For more information about the recommended setup visit: 241 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 242 | 243 | # fastlane specific 244 | 245 | # deliver temporary files 246 | 247 | # snapshot generated screenshots 248 | fastlane/screenshots/**/*.png 249 | fastlane/screenshots/screenshots.html 250 | 251 | # scan temporary files 252 | 253 | ### Intellij ### 254 | # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm 255 | # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 256 | 257 | # User-specific stuff 258 | .idea/**/workspace.xml 259 | .idea/**/tasks.xml 260 | .idea/**/usage.statistics.xml 261 | .idea/**/dictionaries 262 | .idea/**/shelf 263 | 264 | # Generated files 265 | .idea/**/contentModel.xml 266 | 267 | # Sensitive or high-churn files 268 | .idea/**/dataSources/ 269 | .idea/**/dataSources.ids 270 | .idea/**/dataSources.local.xml 271 | .idea/**/sqlDataSources.xml 272 | .idea/**/dynamic.xml 273 | .idea/**/uiDesigner.xml 274 | .idea/**/dbnavigator.xml 275 | 276 | # Gradle 277 | .idea/**/gradle.xml 278 | .idea/**/libraries 279 | 280 | # Gradle and Maven with auto-import 281 | # When using Gradle or Maven with auto-import, you should exclude module files, 282 | # since they will be recreated, and may cause churn. Uncomment if using 283 | # auto-import. 284 | # .idea/modules.xml 285 | # .idea/*.iml 286 | # .idea/modules 287 | # *.iml 288 | # *.ipr 289 | 290 | # CMake 291 | cmake-build-*/ 292 | 293 | # Mongo Explorer plugin 294 | .idea/**/mongoSettings.xml 295 | 296 | # File-based project format 297 | *.iws 298 | 299 | # IntelliJ 300 | 301 | # mpeltonen/sbt-idea plugin 302 | .idea_modules/ 303 | 304 | # JIRA plugin 305 | atlassian-ide-plugin.xml 306 | 307 | # Cursive Clojure plugin 308 | .idea/replstate.xml 309 | 310 | # Crashlytics plugin (for Android Studio and IntelliJ) 311 | com_crashlytics_export_strings.xml 312 | crashlytics.properties 313 | crashlytics-build.properties 314 | fabric.properties 315 | 316 | # Editor-based Rest Client 317 | .idea/httpRequests 318 | 319 | # Android studio 3.1+ serialized cache file 320 | .idea/caches/build_file_checksums.ser 321 | 322 | ### Intellij Patch ### 323 | # Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 324 | 325 | # *.iml 326 | # modules.xml 327 | # .idea/misc.xml 328 | # *.ipr 329 | 330 | # Sonarlint plugin 331 | .idea/sonarlint 332 | 333 | ### Node ### 334 | # Logs 335 | logs 336 | npm-debug.log* 337 | yarn-debug.log* 338 | yarn-error.log* 339 | lerna-debug.log* 340 | 341 | # Diagnostic reports (https://nodejs.org/api/report.html) 342 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 343 | 344 | # Runtime data 345 | pids 346 | *.pid 347 | *.seed 348 | *.pid.lock 349 | 350 | # Directory for instrumented libs generated by jscoverage/JSCover 351 | lib-cov 352 | 353 | # Coverage directory used by tools like istanbul 354 | coverage 355 | *.lcov 356 | 357 | # nyc test coverage 358 | .nyc_output 359 | 360 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 361 | .grunt 362 | 363 | # Bower dependency directory (https://bower.io/) 364 | bower_components 365 | 366 | # node-waf configuration 367 | .lock-wscript 368 | 369 | # Compiled binary addons (https://nodejs.org/api/addons.html) 370 | build/Release 371 | 372 | # Dependency directories 373 | node_modules/ 374 | jspm_packages/ 375 | 376 | # TypeScript v1 declaration files 377 | typings/ 378 | 379 | # TypeScript cache 380 | *.tsbuildinfo 381 | 382 | # Optional npm cache directory 383 | .npm 384 | 385 | # Optional eslint cache 386 | .eslintcache 387 | 388 | # Optional REPL history 389 | .node_repl_history 390 | 391 | # Output of 'npm pack' 392 | *.tgz 393 | 394 | # Yarn Integrity file 395 | .yarn-integrity 396 | 397 | # dotenv environment variables file 398 | .env 399 | .env.test 400 | 401 | # parcel-bundler cache (https://parceljs.org/) 402 | .cache 403 | 404 | # next.js build output 405 | .next 406 | 407 | # nuxt.js build output 408 | .nuxt 409 | 410 | # vuepress build output 411 | .vuepress/dist 412 | 413 | # Serverless directories 414 | .serverless/ 415 | 416 | # FuseBox cache 417 | .fusebox/ 418 | 419 | # DynamoDB Local files 420 | .dynamodb/ 421 | 422 | ### VisualStudioCode ### 423 | .vscode/* 424 | !.vscode/settings.json 425 | !.vscode/tasks.json 426 | !.vscode/launch.json 427 | !.vscode/extensions.json 428 | 429 | ### VisualStudioCode Patch ### 430 | # Ignore all local history of files 431 | .history 432 | 433 | ### Xcode ### 434 | # Xcode 435 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 436 | 437 | ## User settings 438 | xcuserdata/ 439 | 440 | ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) 441 | *.xcscmblueprint 442 | *.xccheckout 443 | 444 | ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) 445 | DerivedData/ 446 | *.moved-aside 447 | *.pbxuser 448 | !default.pbxuser 449 | *.mode1v3 450 | !default.mode1v3 451 | *.mode2v3 452 | !default.mode2v3 453 | *.perspectivev3 454 | !default.perspectivev3 455 | 456 | ## Xcode Patch 457 | *.xcodeproj/* 458 | !*.xcodeproj/project.pbxproj 459 | !*.xcodeproj/xcshareddata/ 460 | !*.xcworkspace/contents.xcworkspacedata 461 | /*.gcno 462 | 463 | ### Xcode Patch ### 464 | **/xcshareddata/WorkspaceSettings.xcsettings 465 | 466 | ### AndroidStudio ### 467 | # Covers files to be ignored for android development using Android Studio. 468 | 469 | # Built application files 470 | 471 | # Files for the ART/Dalvik VM 472 | 473 | # Java class files 474 | 475 | # Generated files 476 | 477 | # Gradle files 478 | .gradle 479 | 480 | # Signing files 481 | .signing/ 482 | 483 | # Local configuration file (sdk path, etc) 484 | 485 | # Proguard folder generated by Eclipse 486 | 487 | # Log Files 488 | 489 | # Android Studio 490 | /*/build/ 491 | /*/local.properties 492 | /*/out 493 | /*/*/build 494 | /*/*/production 495 | *.ipr 496 | *~ 497 | 498 | # Android Patch 499 | 500 | # External native build folder generated in Android Studio 2.2 and later 501 | 502 | # NDK 503 | obj/ 504 | 505 | # IntelliJ IDEA 506 | /out/ 507 | 508 | # User-specific configurations 509 | .idea/caches/ 510 | .idea/libraries/ 511 | .idea/shelf/ 512 | .idea/.name 513 | .idea/compiler.xml 514 | .idea/copyright/profiles_settings.xml 515 | .idea/encodings.xml 516 | .idea/misc.xml 517 | .idea/scopes/scope_settings.xml 518 | .idea/vcs.xml 519 | .idea/jsLibraryMappings.xml 520 | .idea/datasources.xml 521 | .idea/dataSources.ids 522 | .idea/sqlDataSources.xml 523 | .idea/dynamic.xml 524 | .idea/uiDesigner.xml 525 | 526 | # OS-specific files 527 | .DS_Store 528 | .DS_Store? 529 | ._* 530 | .Spotlight-V100 531 | .Trashes 532 | ehthumbs.db 533 | Thumbs.db 534 | 535 | # Legacy Eclipse project files 536 | 537 | # Mobile Tools for Java (J2ME) 538 | .mtj.tmp/ 539 | 540 | # Package Files # 541 | *.war 542 | *.ear 543 | 544 | # virtual machine crash logs (Reference: http://www.java.com/en/download/help/error_hotspot.xml) 545 | hs_err_pid* 546 | 547 | ## Plugin-specific files: 548 | 549 | # mpeltonen/sbt-idea plugin 550 | 551 | # JIRA plugin 552 | 553 | # Mongo Explorer plugin 554 | .idea/mongoSettings.xml 555 | 556 | # Crashlytics plugin (for Android Studio and IntelliJ) 557 | 558 | ### AndroidStudio Patch ### 559 | 560 | !/gradle/wrapper/gradle-wrapper.jar 561 | 562 | # End of https://www.gitignore.io/api/visualstudiocode,xcode,eclipse,android,intellij,cocoapods,androidstudio,fastlane,node 563 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | draftjs-web/ 2 | ReactNativeDraftjsExample/ 3 | assets/react-native-drafjs-in-action.png 4 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | draftjs-html-source/ 2 | ReactNativeDraftjsExample/android/app/src/main/assets/draftjs-source.html 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019-present DaniAkash 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 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: "@react-native-community" 4 | }; 5 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/.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 | node_modules/react-native/Libraries/react-native/React.js 15 | 16 | ; Ignore polyfills 17 | node_modules/react-native/Libraries/polyfills/.* 18 | 19 | ; These should not be required directly 20 | ; require from fbjs/lib instead: require('fbjs/lib/warning') 21 | node_modules/warning/.* 22 | 23 | ; Flow doesn't support platforms 24 | .*/Libraries/Utilities/HMRLoadingView.js 25 | 26 | [untyped] 27 | .*/node_modules/@react-native-community/cli/.*/.* 28 | 29 | [include] 30 | 31 | [libs] 32 | node_modules/react-native/Libraries/react-native/react-native-interface.js 33 | node_modules/react-native/flow/ 34 | 35 | [options] 36 | emoji=true 37 | 38 | esproposal.optional_chaining=enable 39 | esproposal.nullish_coalescing=enable 40 | 41 | module.file_ext=.js 42 | module.file_ext=.json 43 | module.file_ext=.ios.js 44 | 45 | module.system=haste 46 | module.system.haste.use_name_reducers=true 47 | # get basename 48 | module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1' 49 | # strip .js or .js.flow suffix 50 | module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1' 51 | # strip .ios suffix 52 | module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1' 53 | module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1' 54 | module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1' 55 | module.system.haste.paths.blacklist=.*/__tests__/.* 56 | module.system.haste.paths.blacklist=.*/__mocks__/.* 57 | module.system.haste.paths.whitelist=/node_modules/react-native/Libraries/.* 58 | module.system.haste.paths.whitelist=/node_modules/react-native/RNTester/.* 59 | module.system.haste.paths.whitelist=/node_modules/react-native/IntegrationTests/.* 60 | module.system.haste.paths.blacklist=/node_modules/react-native/Libraries/react-native/react-native-implementation.js 61 | module.system.haste.paths.blacklist=/node_modules/react-native/Libraries/Animated/src/polyfills/.* 62 | 63 | munge_underscores=true 64 | 65 | 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' 66 | 67 | suppress_type=$FlowIssue 68 | suppress_type=$FlowFixMe 69 | suppress_type=$FlowFixMeProps 70 | suppress_type=$FlowFixMeState 71 | 72 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\) 73 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+ 74 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 75 | 76 | [lints] 77 | sketchy-null-number=warn 78 | sketchy-null-mixed=warn 79 | sketchy-number=warn 80 | untyped-type-import=warn 81 | nonstrict-import=warn 82 | deprecated-type=warn 83 | unsafe-getters-setters=warn 84 | inexact-spread=warn 85 | unnecessary-invariant=warn 86 | signature-verification-failure=warn 87 | deprecated-utility=error 88 | 89 | [strict] 90 | deprecated-type 91 | nonstrict-import 92 | sketchy-null 93 | unclear-type 94 | unsafe-getters-setters 95 | untyped-import 96 | untyped-type-import 97 | 98 | [version] 99 | ^0.98.0 100 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/.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 | 43 | # fastlane 44 | # 45 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 46 | # screenshots whenever they are needed. 47 | # For more information about the recommended setup visit: 48 | # https://docs.fastlane.tools/best-practices/source-control/ 49 | 50 | */fastlane/report.xml 51 | */fastlane/Preview.html 52 | */fastlane/screenshots 53 | 54 | # Bundle artifact 55 | *.jsbundle 56 | 57 | # CocoaPods 58 | /ios/Pods/ 59 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/App.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | * @flow 7 | */ 8 | 9 | import React, { useState, useEffect } from "react"; 10 | import { 11 | SafeAreaView, 12 | StyleSheet, 13 | TouchableOpacity, 14 | View, 15 | Text, 16 | Platform 17 | } from "react-native"; 18 | import KeyboardSpacer from "react-native-keyboard-spacer"; 19 | import RNDraftView from "react-native-draftjs-editor"; 20 | 21 | const ControlButton = ({ text, action, isActive }) => { 22 | return ( 23 | 30 | {text} 31 | 32 | ); 33 | }; 34 | 35 | const EditorToolBar = ({ 36 | activeStyles, 37 | blockType, 38 | toggleStyle, 39 | toggleBlockType 40 | }) => { 41 | return ( 42 | 43 | toggleStyle("BOLD")} 47 | /> 48 | toggleStyle("ITALIC")} 52 | /> 53 | toggleBlockType("header-one")} 57 | /> 58 | toggleBlockType("unordered-list-item")} 62 | /> 63 | toggleBlockType("ordered-list-item")} 67 | /> 68 | toggleStyle("STRIKETHROUGH")} 72 | /> 73 | 74 | ); 75 | }; 76 | 77 | const styleMap = { 78 | STRIKETHROUGH: { 79 | textDecoration: "line-through" 80 | } 81 | }; 82 | 83 | const App = () => { 84 | const _draftRef = React.createRef(); 85 | const [activeStyles, setActiveStyles] = useState([]); 86 | const [blockType, setActiveBlockType] = useState("unstyled"); 87 | const [editorState, setEditorState] = useState(""); 88 | 89 | const defaultValue = 90 | "

A Full fledged Text Editor

This editor is built with Draft.js. Hence should be suitable for most projects. However, Draft.js Isn’t fully compatible with mobile yet. So you might face some issues.


This is a simple implementation

  • It contains Text formatting and Some blocks formatting
  • Each for it’s own purpose

You can also do

  1. Custom style map
  2. Own css styles
  3. Custom block styling

You are welcome to try it!

"; 91 | 92 | const editorLoaded = () => { 93 | _draftRef.current && _draftRef.current.focus(); 94 | }; 95 | 96 | const toggleStyle = style => { 97 | _draftRef.current && _draftRef.current.setStyle(style); 98 | }; 99 | 100 | const toggleBlockType = blockType => { 101 | _draftRef.current && _draftRef.current.setBlockType(blockType); 102 | }; 103 | 104 | useEffect(() => { 105 | /** 106 | * Get the current editor state in HTML. 107 | * Usually keep it in the submit or next action to get output after user has typed. 108 | */ 109 | setEditorState(_draftRef.current ? _draftRef.current.getEditorState() : ""); 110 | }, [_draftRef]); 111 | console.log(editorState); 112 | 113 | return ( 114 | 115 | 125 | 131 | {Platform.OS === "ios" ? : null} 132 | 133 | ); 134 | }; 135 | 136 | const styles = StyleSheet.create({ 137 | containerStyle: { 138 | flex: 1, 139 | marginTop: 36 140 | }, 141 | toolbarContainer: { 142 | height: 56, 143 | flexDirection: "row", 144 | backgroundColor: "silver", 145 | alignItems: "center", 146 | justifyContent: "space-around" 147 | }, 148 | controlButtonContainer: { 149 | padding: 8, 150 | borderRadius: 2 151 | } 152 | }); 153 | 154 | export default App; 155 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/__tests__/App-test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import "react-native"; 6 | import React from "react"; 7 | import App from "../App"; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from "react-test-renderer"; 11 | 12 | it("renders correctly", () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/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 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") 12 | 13 | lib_deps = [] 14 | 15 | create_aar_targets(glob(["libs/*.aar"])) 16 | 17 | create_jar_targets(glob(["libs/*.jar"])) 18 | 19 | android_library( 20 | name = "all-libs", 21 | exported_deps = lib_deps, 22 | ) 23 | 24 | android_library( 25 | name = "app-code", 26 | srcs = glob([ 27 | "src/main/java/**/*.java", 28 | ]), 29 | deps = [ 30 | ":all-libs", 31 | ":build_config", 32 | ":res", 33 | ], 34 | ) 35 | 36 | android_build_config( 37 | name = "build_config", 38 | package = "com.reactnativedraftjsexample", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.reactnativedraftjsexample", 44 | res = "src/main/res", 45 | ) 46 | 47 | android_binary( 48 | name = "app", 49 | keystore = "//android/keystores:debug", 50 | manifest = "src/main/AndroidManifest.xml", 51 | package_type = "debug", 52 | deps = [ 53 | ":app-code", 54 | ], 55 | ) 56 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/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 | * // https://facebook.github.io/react-native/docs/performance#enable-the-ram-format 22 | * bundleCommand: "ram-bundle", 23 | * 24 | * // whether to bundle JS and assets in debug mode 25 | * bundleInDebug: false, 26 | * 27 | * // whether to bundle JS and assets in release mode 28 | * bundleInRelease: true, 29 | * 30 | * // whether to bundle JS and assets in another build variant (if configured). 31 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 32 | * // The configuration property can be in the following formats 33 | * // 'bundleIn${productFlavor}${buildType}' 34 | * // 'bundleIn${buildType}' 35 | * // bundleInFreeDebug: true, 36 | * // bundleInPaidRelease: true, 37 | * // bundleInBeta: true, 38 | * 39 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 40 | * // for example: to disable dev mode in the staging build type (if configured) 41 | * devDisabledInStaging: true, 42 | * // The configuration property can be in the following formats 43 | * // 'devDisabledIn${productFlavor}${buildType}' 44 | * // 'devDisabledIn${buildType}' 45 | * 46 | * // the root of your project, i.e. where "package.json" lives 47 | * root: "../../", 48 | * 49 | * // where to put the JS bundle asset in debug mode 50 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 51 | * 52 | * // where to put the JS bundle asset in release mode 53 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 54 | * 55 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 56 | * // require('./image.png')), in debug mode 57 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 58 | * 59 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 60 | * // require('./image.png')), in release mode 61 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 62 | * 63 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 64 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 65 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 66 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 67 | * // for example, you might want to remove it from here. 68 | * inputExcludes: ["android/**", "ios/**"], 69 | * 70 | * // override which node gets called and with what additional arguments 71 | * nodeExecutableAndArgs: ["node"], 72 | * 73 | * // supply additional arguments to the packager 74 | * extraPackagerArgs: [] 75 | * ] 76 | */ 77 | 78 | project.ext.react = [ 79 | entryFile: "index.js", 80 | enableHermes: false, // clean and rebuild if changing 81 | ] 82 | 83 | apply from: "../../node_modules/react-native/react.gradle" 84 | 85 | /** 86 | * Set this to true to create two separate APKs instead of one: 87 | * - An APK that only works on ARM devices 88 | * - An APK that only works on x86 devices 89 | * The advantage is the size of the APK is reduced by about 4MB. 90 | * Upload all the APKs to the Play Store and people will download 91 | * the correct one based on the CPU architecture of their device. 92 | */ 93 | def enableSeparateBuildPerCPUArchitecture = false 94 | 95 | /** 96 | * Run Proguard to shrink the Java bytecode in release builds. 97 | */ 98 | def enableProguardInReleaseBuilds = false 99 | 100 | /** 101 | * The preferred build flavor of JavaScriptCore. 102 | * 103 | * For example, to use the international variant, you can use: 104 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'` 105 | * 106 | * The international variant includes ICU i18n library and necessary data 107 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that 108 | * give correct results when using with locales other than en-US. Note that 109 | * this variant is about 6MiB larger per architecture than default. 110 | */ 111 | def jscFlavor = 'org.webkit:android-jsc:+' 112 | 113 | /** 114 | * Whether to enable the Hermes VM. 115 | * 116 | * This should be set on project.ext.react and mirrored here. If it is not set 117 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode 118 | * and the benefits of using Hermes will therefore be sharply reduced. 119 | */ 120 | def enableHermes = project.ext.react.get("enableHermes", false); 121 | 122 | android { 123 | compileSdkVersion rootProject.ext.compileSdkVersion 124 | 125 | compileOptions { 126 | sourceCompatibility JavaVersion.VERSION_1_8 127 | targetCompatibility JavaVersion.VERSION_1_8 128 | } 129 | 130 | defaultConfig { 131 | applicationId "com.reactnativedraftjsexample" 132 | minSdkVersion rootProject.ext.minSdkVersion 133 | targetSdkVersion rootProject.ext.targetSdkVersion 134 | versionCode 1 135 | versionName "1.0" 136 | } 137 | splits { 138 | abi { 139 | reset() 140 | enable enableSeparateBuildPerCPUArchitecture 141 | universalApk false // If true, also generate a universal APK 142 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64" 143 | } 144 | } 145 | signingConfigs { 146 | debug { 147 | storeFile file('debug.keystore') 148 | storePassword 'android' 149 | keyAlias 'androiddebugkey' 150 | keyPassword 'android' 151 | } 152 | } 153 | buildTypes { 154 | debug { 155 | signingConfig signingConfigs.debug 156 | } 157 | release { 158 | // Caution! In production, you need to generate your own keystore file. 159 | // see https://facebook.github.io/react-native/docs/signed-apk-android. 160 | signingConfig signingConfigs.debug 161 | minifyEnabled enableProguardInReleaseBuilds 162 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 163 | } 164 | } 165 | // applicationVariants are e.g. debug, release 166 | applicationVariants.all { variant -> 167 | variant.outputs.each { output -> 168 | // For each separate APK per architecture, set a unique version code as described here: 169 | // https://developer.android.com/studio/build/configure-apk-splits.html 170 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4] 171 | def abi = output.getFilter(OutputFile.ABI) 172 | if (abi != null) { // null for the universal-debug, universal-release variants 173 | output.versionCodeOverride = 174 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 175 | } 176 | 177 | } 178 | } 179 | 180 | packagingOptions { 181 | pickFirst '**/armeabi-v7a/libc++_shared.so' 182 | pickFirst '**/x86/libc++_shared.so' 183 | pickFirst '**/arm64-v8a/libc++_shared.so' 184 | pickFirst '**/x86_64/libc++_shared.so' 185 | pickFirst '**/x86/libjsc.so' 186 | pickFirst '**/armeabi-v7a/libjsc.so' 187 | } 188 | } 189 | 190 | dependencies { 191 | implementation fileTree(dir: "libs", include: ["*.jar"]) 192 | implementation "com.facebook.react:react-native:+" // From node_modules 193 | 194 | if (enableHermes) { 195 | def hermesPath = "../../node_modules/hermesvm/android/"; 196 | debugImplementation files(hermesPath + "hermes-debug.aar") 197 | releaseImplementation files(hermesPath + "hermes-release.aar") 198 | } else { 199 | implementation jscFlavor 200 | } 201 | } 202 | 203 | // Run this once to be able to run the application with BUCK 204 | // puts all compile dependencies into folder libs for BUCK to use 205 | task copyDownloadableDepsToLibs(type: Copy) { 206 | from configurations.compile 207 | into 'libs' 208 | } 209 | 210 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project) 211 | project.afterEvaluate { 212 | apply from: '../../node_modules/react-native-draftjs-editor/copyHtml.gradle'; 213 | copyEditorHtmlToAppAssets(file('../../node_modules/react-native-draftjs-editor')) 214 | } 215 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 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 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/app/debug.keystore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-toolkit/react-native-draftjs/7b16f490d2c179187e9464d9245c967e379ac7dc/ReactNativeDraftjsExample/android/app/debug.keystore -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/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 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/app/src/main/java/com/reactnativedraftjsexample/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.reactnativedraftjsexample; 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 "ReactNativeDraftjsExample"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/app/src/main/java/com/reactnativedraftjsexample/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.reactnativedraftjsexample; 2 | 3 | import android.app.Application; 4 | import android.util.Log; 5 | 6 | import com.facebook.react.PackageList; 7 | import com.facebook.hermes.reactexecutor.HermesExecutorFactory; 8 | import com.facebook.react.bridge.JavaScriptExecutorFactory; 9 | import com.facebook.react.ReactApplication; 10 | import com.facebook.react.ReactNativeHost; 11 | import com.facebook.react.ReactPackage; 12 | import com.facebook.soloader.SoLoader; 13 | 14 | import java.util.List; 15 | 16 | public class MainApplication extends Application implements ReactApplication { 17 | 18 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 19 | @Override 20 | public boolean getUseDeveloperSupport() { 21 | return BuildConfig.DEBUG; 22 | } 23 | 24 | @Override 25 | protected List getPackages() { 26 | @SuppressWarnings("UnnecessaryLocalVariable") 27 | List packages = new PackageList(this).getPackages(); 28 | // Packages that cannot be autolinked yet can be added manually here, for example: 29 | // packages.add(new MyReactNativePackage()); 30 | return packages; 31 | } 32 | 33 | @Override 34 | protected String getJSMainModuleName() { 35 | return "index"; 36 | } 37 | }; 38 | 39 | @Override 40 | public ReactNativeHost getReactNativeHost() { 41 | return mReactNativeHost; 42 | } 43 | 44 | @Override 45 | public void onCreate() { 46 | super.onCreate(); 47 | SoLoader.init(this, /* native exopackage */ false); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-toolkit/react-native-draftjs/7b16f490d2c179187e9464d9245c967e379ac7dc/ReactNativeDraftjsExample/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-toolkit/react-native-draftjs/7b16f490d2c179187e9464d9245c967e379ac7dc/ReactNativeDraftjsExample/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-toolkit/react-native-draftjs/7b16f490d2c179187e9464d9245c967e379ac7dc/ReactNativeDraftjsExample/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-toolkit/react-native-draftjs/7b16f490d2c179187e9464d9245c967e379ac7dc/ReactNativeDraftjsExample/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-toolkit/react-native-draftjs/7b16f490d2c179187e9464d9245c967e379ac7dc/ReactNativeDraftjsExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-toolkit/react-native-draftjs/7b16f490d2c179187e9464d9245c967e379ac7dc/ReactNativeDraftjsExample/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-toolkit/react-native-draftjs/7b16f490d2c179187e9464d9245c967e379ac7dc/ReactNativeDraftjsExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-toolkit/react-native-draftjs/7b16f490d2c179187e9464d9245c967e379ac7dc/ReactNativeDraftjsExample/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-toolkit/react-native-draftjs/7b16f490d2c179187e9464d9245c967e379ac7dc/ReactNativeDraftjsExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-toolkit/react-native-draftjs/7b16f490d2c179187e9464d9245c967e379ac7dc/ReactNativeDraftjsExample/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | ReactNativeDraftjsExample 3 | 4 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "28.0.3" 6 | minSdkVersion = 16 7 | compileSdkVersion = 28 8 | targetSdkVersion = 28 9 | supportLibVersion = "28.0.0" 10 | } 11 | repositories { 12 | google() 13 | jcenter() 14 | } 15 | dependencies { 16 | classpath("com.android.tools.build:gradle:3.4.1") 17 | 18 | // NOTE: Do not place your application dependencies here; they belong 19 | // in the individual module build.gradle files 20 | } 21 | } 22 | 23 | allprojects { 24 | repositories { 25 | mavenLocal() 26 | maven { 27 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 28 | url("$rootDir/../node_modules/react-native/android") 29 | } 30 | maven { 31 | // Android JSC is installed from npm 32 | url("$rootDir/../node_modules/jsc-android/dist") 33 | } 34 | 35 | google() 36 | jcenter() 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/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.useAndroidX=true 21 | android.enableJetifier=true 22 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-toolkit/react-native-draftjs/7b16f490d2c179187e9464d9245c967e379ac7dc/ReactNativeDraftjsExample/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # 4 | # Copyright 2015 the original author or authors. 5 | # 6 | # Licensed under the Apache License, Version 2.0 (the "License"); 7 | # you may not use this file except in compliance with the License. 8 | # You may obtain a copy of the License at 9 | # 10 | # http://www.apache.org/licenses/LICENSE-2.0 11 | # 12 | # Unless required by applicable law or agreed to in writing, software 13 | # distributed under the License is distributed on an "AS IS" BASIS, 14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | # See the License for the specific language governing permissions and 16 | # limitations under the License. 17 | # 18 | 19 | ############################################################################## 20 | ## 21 | ## Gradle start up script for UN*X 22 | ## 23 | ############################################################################## 24 | 25 | # Attempt to set APP_HOME 26 | # Resolve links: $0 may be a link 27 | PRG="$0" 28 | # Need this for relative symlinks. 29 | while [ -h "$PRG" ] ; do 30 | ls=`ls -ld "$PRG"` 31 | link=`expr "$ls" : '.*-> \(.*\)$'` 32 | if expr "$link" : '/.*' > /dev/null; then 33 | PRG="$link" 34 | else 35 | PRG=`dirname "$PRG"`"/$link" 36 | fi 37 | done 38 | SAVED="`pwd`" 39 | cd "`dirname \"$PRG\"`/" >/dev/null 40 | APP_HOME="`pwd -P`" 41 | cd "$SAVED" >/dev/null 42 | 43 | APP_NAME="Gradle" 44 | APP_BASE_NAME=`basename "$0"` 45 | 46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' 48 | 49 | # Use the maximum available, or set MAX_FD != -1 to use that value. 50 | MAX_FD="maximum" 51 | 52 | warn () { 53 | echo "$*" 54 | } 55 | 56 | die () { 57 | echo 58 | echo "$*" 59 | echo 60 | exit 1 61 | } 62 | 63 | # OS specific support (must be 'true' or 'false'). 64 | cygwin=false 65 | msys=false 66 | darwin=false 67 | nonstop=false 68 | case "`uname`" in 69 | CYGWIN* ) 70 | cygwin=true 71 | ;; 72 | Darwin* ) 73 | darwin=true 74 | ;; 75 | MINGW* ) 76 | msys=true 77 | ;; 78 | NONSTOP* ) 79 | nonstop=true 80 | ;; 81 | esac 82 | 83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 84 | 85 | # Determine the Java command to use to start the JVM. 86 | if [ -n "$JAVA_HOME" ] ; then 87 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 88 | # IBM's JDK on AIX uses strange locations for the executables 89 | JAVACMD="$JAVA_HOME/jre/sh/java" 90 | else 91 | JAVACMD="$JAVA_HOME/bin/java" 92 | fi 93 | if [ ! -x "$JAVACMD" ] ; then 94 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 95 | 96 | Please set the JAVA_HOME variable in your environment to match the 97 | location of your Java installation." 98 | fi 99 | else 100 | JAVACMD="java" 101 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 102 | 103 | Please set the JAVA_HOME variable in your environment to match the 104 | location of your Java installation." 105 | fi 106 | 107 | # Increase the maximum file descriptors if we can. 108 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 109 | MAX_FD_LIMIT=`ulimit -H -n` 110 | if [ $? -eq 0 ] ; then 111 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 112 | MAX_FD="$MAX_FD_LIMIT" 113 | fi 114 | ulimit -n $MAX_FD 115 | if [ $? -ne 0 ] ; then 116 | warn "Could not set maximum file descriptor limit: $MAX_FD" 117 | fi 118 | else 119 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 120 | fi 121 | fi 122 | 123 | # For Darwin, add options to specify how the application appears in the dock 124 | if $darwin; then 125 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 126 | fi 127 | 128 | # For Cygwin, switch paths to Windows format before running java 129 | if $cygwin ; then 130 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 131 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 132 | JAVACMD=`cygpath --unix "$JAVACMD"` 133 | 134 | # We build the pattern for arguments to be converted via cygpath 135 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 136 | SEP="" 137 | for dir in $ROOTDIRSRAW ; do 138 | ROOTDIRS="$ROOTDIRS$SEP$dir" 139 | SEP="|" 140 | done 141 | OURCYGPATTERN="(^($ROOTDIRS))" 142 | # Add a user-defined pattern to the cygpath arguments 143 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 144 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 145 | fi 146 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 147 | i=0 148 | for arg in "$@" ; do 149 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 150 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 151 | 152 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 153 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 154 | else 155 | eval `echo args$i`="\"$arg\"" 156 | fi 157 | i=$((i+1)) 158 | done 159 | case $i in 160 | (0) set -- ;; 161 | (1) set -- "$args0" ;; 162 | (2) set -- "$args0" "$args1" ;; 163 | (3) set -- "$args0" "$args1" "$args2" ;; 164 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 165 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 166 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 167 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 168 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 169 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 170 | esac 171 | fi 172 | 173 | # Escape application args 174 | save () { 175 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 176 | echo " " 177 | } 178 | APP_ARGS=$(save "$@") 179 | 180 | # Collect all arguments for the java command, following the shell quoting and substitution rules 181 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 182 | 183 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong 184 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then 185 | cd "$(dirname "$0")" 186 | fi 187 | 188 | exec "$JAVACMD" "$@" 189 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @rem 2 | @rem Copyright 2015 the original author or authors. 3 | @rem 4 | @rem Licensed under the Apache License, Version 2.0 (the "License"); 5 | @rem you may not use this file except in compliance with the License. 6 | @rem You may obtain a copy of the License at 7 | @rem 8 | @rem http://www.apache.org/licenses/LICENSE-2.0 9 | @rem 10 | @rem Unless required by applicable law or agreed to in writing, software 11 | @rem distributed under the License is distributed on an "AS IS" BASIS, 12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | @rem See the License for the specific language governing permissions and 14 | @rem limitations under the License. 15 | @rem 16 | 17 | @if "%DEBUG%" == "" @echo off 18 | @rem ########################################################################## 19 | @rem 20 | @rem Gradle startup script for Windows 21 | @rem 22 | @rem ########################################################################## 23 | 24 | @rem Set local scope for the variables with windows NT shell 25 | if "%OS%"=="Windows_NT" setlocal 26 | 27 | set DIRNAME=%~dp0 28 | if "%DIRNAME%" == "" set DIRNAME=. 29 | set APP_BASE_NAME=%~n0 30 | set APP_HOME=%DIRNAME% 31 | 32 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 33 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" 34 | 35 | @rem Find java.exe 36 | if defined JAVA_HOME goto findJavaFromJavaHome 37 | 38 | set JAVA_EXE=java.exe 39 | %JAVA_EXE% -version >NUL 2>&1 40 | if "%ERRORLEVEL%" == "0" goto init 41 | 42 | echo. 43 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 44 | echo. 45 | echo Please set the JAVA_HOME variable in your environment to match the 46 | echo location of your Java installation. 47 | 48 | goto fail 49 | 50 | :findJavaFromJavaHome 51 | set JAVA_HOME=%JAVA_HOME:"=% 52 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 53 | 54 | if exist "%JAVA_EXE%" goto init 55 | 56 | echo. 57 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 58 | echo. 59 | echo Please set the JAVA_HOME variable in your environment to match the 60 | echo location of your Java installation. 61 | 62 | goto fail 63 | 64 | :init 65 | @rem Get command-line arguments, handling Windows variants 66 | 67 | if not "%OS%" == "Windows_NT" goto win9xME_args 68 | 69 | :win9xME_args 70 | @rem Slurp the command line arguments. 71 | set CMD_LINE_ARGS= 72 | set _SKIP=2 73 | 74 | :win9xME_args_slurp 75 | if "x%~1" == "x" goto execute 76 | 77 | set CMD_LINE_ARGS=%* 78 | 79 | :execute 80 | @rem Setup the command line 81 | 82 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 83 | 84 | @rem Execute Gradle 85 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 86 | 87 | :end 88 | @rem End local scope for the variables with windows NT shell 89 | if "%ERRORLEVEL%"=="0" goto mainEnd 90 | 91 | :fail 92 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 93 | rem the _cmd.exe /c_ return code! 94 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 95 | exit /b 1 96 | 97 | :mainEnd 98 | if "%OS%"=="Windows_NT" endlocal 99 | 100 | :omega 101 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'ReactNativeDraftjsExample' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ReactNativeDraftjsExample", 3 | "displayName": "ReactNativeDraftjsExample" 4 | } 5 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["module:metro-react-native-babel-preset"] 3 | }; 4 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import { AppRegistry } from "react-native"; 6 | import App from "./App"; 7 | import { name as appName } from "./app.json"; 8 | 9 | AppRegistry.registerComponent(appName, () => App); 10 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/ios/Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '9.0' 2 | require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules' 3 | 4 | target 'ReactNativeDraftjsExample' do 5 | # Pods for ReactNativeDraftjsExample 6 | pod 'React', :path => '../node_modules/react-native/' 7 | pod 'React-Core', :path => '../node_modules/react-native/React' 8 | pod 'React-DevSupport', :path => '../node_modules/react-native/React' 9 | pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook' 10 | pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS' 11 | pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation' 12 | pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob' 13 | pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image' 14 | pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS' 15 | pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network' 16 | pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings' 17 | pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text' 18 | pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration' 19 | pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket' 20 | 21 | pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact' 22 | pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi' 23 | pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor' 24 | pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector' 25 | pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga' 26 | 27 | pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec' 28 | pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec' 29 | pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec' 30 | 31 | target 'ReactNativeDraftjsExampleTests' do 32 | inherit! :search_paths 33 | # Pods for testing 34 | end 35 | 36 | use_native_modules! 37 | end 38 | 39 | target 'ReactNativeDraftjsExample-tvOS' do 40 | # Pods for ReactNativeDraftjsExample-tvOS 41 | 42 | target 'ReactNativeDraftjsExample-tvOSTests' do 43 | inherit! :search_paths 44 | # Pods for testing 45 | end 46 | 47 | end 48 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/ios/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - boost-for-react-native (1.63.0) 3 | - DoubleConversion (1.1.6) 4 | - Folly (2018.10.22.00): 5 | - boost-for-react-native 6 | - DoubleConversion 7 | - Folly/Default (= 2018.10.22.00) 8 | - glog 9 | - Folly/Default (2018.10.22.00): 10 | - boost-for-react-native 11 | - DoubleConversion 12 | - glog 13 | - glog (0.3.5) 14 | - React (0.60.3): 15 | - React-Core (= 0.60.3) 16 | - React-DevSupport (= 0.60.3) 17 | - React-RCTActionSheet (= 0.60.3) 18 | - React-RCTAnimation (= 0.60.3) 19 | - React-RCTBlob (= 0.60.3) 20 | - React-RCTImage (= 0.60.3) 21 | - React-RCTLinking (= 0.60.3) 22 | - React-RCTNetwork (= 0.60.3) 23 | - React-RCTSettings (= 0.60.3) 24 | - React-RCTText (= 0.60.3) 25 | - React-RCTVibration (= 0.60.3) 26 | - React-RCTWebSocket (= 0.60.3) 27 | - React-Core (0.60.3): 28 | - Folly (= 2018.10.22.00) 29 | - React-cxxreact (= 0.60.3) 30 | - React-jsiexecutor (= 0.60.3) 31 | - yoga (= 0.60.3.React) 32 | - React-cxxreact (0.60.3): 33 | - boost-for-react-native (= 1.63.0) 34 | - DoubleConversion 35 | - Folly (= 2018.10.22.00) 36 | - glog 37 | - React-jsinspector (= 0.60.3) 38 | - React-DevSupport (0.60.3): 39 | - React-Core (= 0.60.3) 40 | - React-RCTWebSocket (= 0.60.3) 41 | - React-fishhook (0.60.3) 42 | - React-jsi (0.60.3): 43 | - boost-for-react-native (= 1.63.0) 44 | - DoubleConversion 45 | - Folly (= 2018.10.22.00) 46 | - glog 47 | - React-jsi/Default (= 0.60.3) 48 | - React-jsi/Default (0.60.3): 49 | - boost-for-react-native (= 1.63.0) 50 | - DoubleConversion 51 | - Folly (= 2018.10.22.00) 52 | - glog 53 | - React-jsiexecutor (0.60.3): 54 | - DoubleConversion 55 | - Folly (= 2018.10.22.00) 56 | - glog 57 | - React-cxxreact (= 0.60.3) 58 | - React-jsi (= 0.60.3) 59 | - React-jsinspector (0.60.3) 60 | - react-native-webview (6.3.1): 61 | - React 62 | - React-RCTActionSheet (0.60.3): 63 | - React-Core (= 0.60.3) 64 | - React-RCTAnimation (0.60.3): 65 | - React-Core (= 0.60.3) 66 | - React-RCTBlob (0.60.3): 67 | - React-Core (= 0.60.3) 68 | - React-RCTNetwork (= 0.60.3) 69 | - React-RCTWebSocket (= 0.60.3) 70 | - React-RCTImage (0.60.3): 71 | - React-Core (= 0.60.3) 72 | - React-RCTNetwork (= 0.60.3) 73 | - React-RCTLinking (0.60.3): 74 | - React-Core (= 0.60.3) 75 | - React-RCTNetwork (0.60.3): 76 | - React-Core (= 0.60.3) 77 | - React-RCTSettings (0.60.3): 78 | - React-Core (= 0.60.3) 79 | - React-RCTText (0.60.3): 80 | - React-Core (= 0.60.3) 81 | - React-RCTVibration (0.60.3): 82 | - React-Core (= 0.60.3) 83 | - React-RCTWebSocket (0.60.3): 84 | - React-Core (= 0.60.3) 85 | - React-fishhook (= 0.60.3) 86 | - yoga (0.60.3.React) 87 | 88 | DEPENDENCIES: 89 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`) 90 | - Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`) 91 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) 92 | - React (from `../node_modules/react-native/`) 93 | - React-Core (from `../node_modules/react-native/React`) 94 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`) 95 | - React-DevSupport (from `../node_modules/react-native/React`) 96 | - React-fishhook (from `../node_modules/react-native/Libraries/fishhook`) 97 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`) 98 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`) 99 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`) 100 | - react-native-webview (from `../node_modules/react-native-webview`) 101 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`) 102 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`) 103 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`) 104 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`) 105 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`) 106 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`) 107 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`) 108 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`) 109 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`) 110 | - React-RCTWebSocket (from `../node_modules/react-native/Libraries/WebSocket`) 111 | - yoga (from `../node_modules/react-native/ReactCommon/yoga`) 112 | 113 | SPEC REPOS: 114 | https://github.com/cocoapods/specs.git: 115 | - boost-for-react-native 116 | 117 | EXTERNAL SOURCES: 118 | DoubleConversion: 119 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" 120 | Folly: 121 | :podspec: "../node_modules/react-native/third-party-podspecs/Folly.podspec" 122 | glog: 123 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" 124 | React: 125 | :path: "../node_modules/react-native/" 126 | React-Core: 127 | :path: "../node_modules/react-native/React" 128 | React-cxxreact: 129 | :path: "../node_modules/react-native/ReactCommon/cxxreact" 130 | React-DevSupport: 131 | :path: "../node_modules/react-native/React" 132 | React-fishhook: 133 | :path: "../node_modules/react-native/Libraries/fishhook" 134 | React-jsi: 135 | :path: "../node_modules/react-native/ReactCommon/jsi" 136 | React-jsiexecutor: 137 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor" 138 | React-jsinspector: 139 | :path: "../node_modules/react-native/ReactCommon/jsinspector" 140 | react-native-webview: 141 | :path: "../node_modules/react-native-webview" 142 | React-RCTActionSheet: 143 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS" 144 | React-RCTAnimation: 145 | :path: "../node_modules/react-native/Libraries/NativeAnimation" 146 | React-RCTBlob: 147 | :path: "../node_modules/react-native/Libraries/Blob" 148 | React-RCTImage: 149 | :path: "../node_modules/react-native/Libraries/Image" 150 | React-RCTLinking: 151 | :path: "../node_modules/react-native/Libraries/LinkingIOS" 152 | React-RCTNetwork: 153 | :path: "../node_modules/react-native/Libraries/Network" 154 | React-RCTSettings: 155 | :path: "../node_modules/react-native/Libraries/Settings" 156 | React-RCTText: 157 | :path: "../node_modules/react-native/Libraries/Text" 158 | React-RCTVibration: 159 | :path: "../node_modules/react-native/Libraries/Vibration" 160 | React-RCTWebSocket: 161 | :path: "../node_modules/react-native/Libraries/WebSocket" 162 | yoga: 163 | :path: "../node_modules/react-native/ReactCommon/yoga" 164 | 165 | SPEC CHECKSUMS: 166 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c 167 | DoubleConversion: 5805e889d232975c086db112ece9ed034df7a0b2 168 | Folly: 30e7936e1c45c08d884aa59369ed951a8e68cf51 169 | glog: 1f3da668190260b06b429bb211bfbee5cd790c28 170 | React: ac23e9cc8d2d4cfe9b536b5cc0c32d19b9937bcf 171 | React-Core: 84de3cf80e31f0267c5ce0b5b482d59ce30a8a57 172 | React-cxxreact: a802a1c6b14f3de66ba032460b424c17ececd1e2 173 | React-DevSupport: ae72c4fc86c03197f007bb24404077c85f6dabc1 174 | React-fishhook: 12bd79b4461280f441937dea83f11d9fb660edfc 175 | React-jsi: c2b6e57836bcae2677a036384111dc2c58e94369 176 | React-jsiexecutor: d9023c5c199114d2b6f38ec861a4d923c73d0735 177 | React-jsinspector: 817b64f3c8a807f09d78620f4f505868d89b26f3 178 | react-native-webview: 830d41c90141f3e997ddb271fa93c19f3a619ccc 179 | React-RCTActionSheet: 9c42321fd5652515d706dd722c5a10b1970d7ec8 180 | React-RCTAnimation: fabb087dde8964c9a835a7fabd0e7e5701787913 181 | React-RCTBlob: 93f34281d9c9c9e216b25824309eed9fe22a5d41 182 | React-RCTImage: b09f30159b048eb9a0f859f8f9b0878f3311e8eb 183 | React-RCTLinking: 9dba672b3d5aadab59e93f9ab8c65e5e24b9fb73 184 | React-RCTNetwork: 4b2f706819f08b6fa15c47909985f96b80859832 185 | React-RCTSettings: 59c0eedc36b9aa9dd21cdbb5ab9591ba04132b1f 186 | React-RCTText: b026f8350c2cbe0daeb9880dd9c6e018fce0daf7 187 | React-RCTVibration: 5d9ed4a968e9d42880ddcc7c29bee3417c745408 188 | React-RCTWebSocket: 69d8565d66043f244b4129f3d7154c5689fb7d3e 189 | yoga: 843fe25849b56131275bf3e5da2c468e96f68aff 190 | 191 | PODFILE CHECKSUM: 8203dd79fcdee54742cf255207a9f604a9f99cc8 192 | 193 | COCOAPODS: 1.6.1 194 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/ios/ReactNativeDraftjsExample-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 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 | NSAppTransportSecurity 26 | 27 | NSExceptionDomains 28 | 29 | localhost 30 | 31 | NSExceptionAllowsInsecureHTTPLoads 32 | 33 | 34 | 35 | 36 | NSLocationWhenInUseUsageDescription 37 | 38 | UILaunchStoryboardName 39 | LaunchScreen 40 | UIRequiredDeviceCapabilities 41 | 42 | armv7 43 | 44 | UISupportedInterfaceOrientations 45 | 46 | UIInterfaceOrientationPortrait 47 | UIInterfaceOrientationLandscapeLeft 48 | UIInterfaceOrientationLandscapeRight 49 | 50 | UIViewControllerBasedStatusBarAppearance 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/ios/ReactNativeDraftjsExample-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 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/ios/ReactNativeDraftjsExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00E356F31AD99517003FC87E /* ReactNativeDraftjsExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeDraftjsExampleTests.m */; }; 11 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 12 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 13 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 14 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 15 | 259350EDB46F3FE5E4D851C0 /* libPods-ReactNativeDraftjsExample-tvOSTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B2119FDEE88CD06D6881A32C /* libPods-ReactNativeDraftjsExample-tvOSTests.a */; }; 16 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 17 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 18 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 19 | 2DCD954D1E0B4F2C00145EB5 /* ReactNativeDraftjsExampleTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* ReactNativeDraftjsExampleTests.m */; }; 20 | 337DB8D78F47D30C78FA1B04 /* libPods-ReactNativeDraftjsExample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 034C1295F0E92B25EC4D489E /* libPods-ReactNativeDraftjsExample.a */; }; 21 | 51158803EC2DFAE910A98070 /* libPods-ReactNativeDraftjsExample-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CB4D835C018E7B2BA949CC00 /* libPods-ReactNativeDraftjsExample-tvOS.a */; }; 22 | 989C675B7EDEE8980F7E9994 /* libPods-ReactNativeDraftjsExampleTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CCD3FE748C8F73CE442B19C1 /* libPods-ReactNativeDraftjsExampleTests.a */; }; 23 | /* End PBXBuildFile section */ 24 | 25 | /* Begin PBXContainerItemProxy section */ 26 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 27 | isa = PBXContainerItemProxy; 28 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 29 | proxyType = 1; 30 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 31 | remoteInfo = ReactNativeDraftjsExample; 32 | }; 33 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 34 | isa = PBXContainerItemProxy; 35 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 36 | proxyType = 1; 37 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 38 | remoteInfo = "ReactNativeDraftjsExample-tvOS"; 39 | }; 40 | /* End PBXContainerItemProxy section */ 41 | 42 | /* Begin PBXFileReference section */ 43 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 44 | 00E356EE1AD99517003FC87E /* ReactNativeDraftjsExampleTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ReactNativeDraftjsExampleTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 46 | 00E356F21AD99517003FC87E /* ReactNativeDraftjsExampleTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ReactNativeDraftjsExampleTests.m; sourceTree = ""; }; 47 | 034C1295F0E92B25EC4D489E /* libPods-ReactNativeDraftjsExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeDraftjsExample.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | 13B07F961A680F5B00A75B9A /* ReactNativeDraftjsExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ReactNativeDraftjsExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = ReactNativeDraftjsExample/AppDelegate.h; sourceTree = ""; }; 50 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = ReactNativeDraftjsExample/AppDelegate.m; sourceTree = ""; }; 51 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 52 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = ReactNativeDraftjsExample/Images.xcassets; sourceTree = ""; }; 53 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = ReactNativeDraftjsExample/Info.plist; sourceTree = ""; }; 54 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = ReactNativeDraftjsExample/main.m; sourceTree = ""; }; 55 | 2D02E47B1E0B4A5D006451C7 /* ReactNativeDraftjsExample-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ReactNativeDraftjsExample-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 56 | 2D02E4901E0B4A5D006451C7 /* ReactNativeDraftjsExample-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "ReactNativeDraftjsExample-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 57 | 648B92F552ACE58CFD6B191E /* Pods-ReactNativeDraftjsExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeDraftjsExample.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeDraftjsExample/Pods-ReactNativeDraftjsExample.release.xcconfig"; sourceTree = ""; }; 58 | 828F66C244234D2D4541FCB7 /* Pods-ReactNativeDraftjsExampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeDraftjsExampleTests.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeDraftjsExampleTests/Pods-ReactNativeDraftjsExampleTests.debug.xcconfig"; sourceTree = ""; }; 59 | 9C4DDEA9BAF65943E9587CD6 /* Pods-ReactNativeDraftjsExampleTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeDraftjsExampleTests.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeDraftjsExampleTests/Pods-ReactNativeDraftjsExampleTests.release.xcconfig"; sourceTree = ""; }; 60 | B2119FDEE88CD06D6881A32C /* libPods-ReactNativeDraftjsExample-tvOSTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeDraftjsExample-tvOSTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 61 | B8733D143B7DC3F05A6500EC /* Pods-ReactNativeDraftjsExample-tvOSTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeDraftjsExample-tvOSTests.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeDraftjsExample-tvOSTests/Pods-ReactNativeDraftjsExample-tvOSTests.debug.xcconfig"; sourceTree = ""; }; 62 | CB4D835C018E7B2BA949CC00 /* libPods-ReactNativeDraftjsExample-tvOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeDraftjsExample-tvOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 63 | CCD3FE748C8F73CE442B19C1 /* libPods-ReactNativeDraftjsExampleTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ReactNativeDraftjsExampleTests.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 64 | D20919739DBC41C69453996B /* Pods-ReactNativeDraftjsExample-tvOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeDraftjsExample-tvOS.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeDraftjsExample-tvOS/Pods-ReactNativeDraftjsExample-tvOS.debug.xcconfig"; sourceTree = ""; }; 65 | D2DD90C7F4E08208BF7A5992 /* Pods-ReactNativeDraftjsExample-tvOSTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeDraftjsExample-tvOSTests.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeDraftjsExample-tvOSTests/Pods-ReactNativeDraftjsExample-tvOSTests.release.xcconfig"; sourceTree = ""; }; 66 | D85F5336CFB88BC819F457A8 /* Pods-ReactNativeDraftjsExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeDraftjsExample.debug.xcconfig"; path = "Target Support Files/Pods-ReactNativeDraftjsExample/Pods-ReactNativeDraftjsExample.debug.xcconfig"; sourceTree = ""; }; 67 | E468EAD92FD0DA123E28E399 /* Pods-ReactNativeDraftjsExample-tvOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ReactNativeDraftjsExample-tvOS.release.xcconfig"; path = "Target Support Files/Pods-ReactNativeDraftjsExample-tvOS/Pods-ReactNativeDraftjsExample-tvOS.release.xcconfig"; sourceTree = ""; }; 68 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 69 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; 70 | /* End PBXFileReference section */ 71 | 72 | /* Begin PBXFrameworksBuildPhase section */ 73 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 74 | isa = PBXFrameworksBuildPhase; 75 | buildActionMask = 2147483647; 76 | files = ( 77 | 989C675B7EDEE8980F7E9994 /* libPods-ReactNativeDraftjsExampleTests.a in Frameworks */, 78 | ); 79 | runOnlyForDeploymentPostprocessing = 0; 80 | }; 81 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 82 | isa = PBXFrameworksBuildPhase; 83 | buildActionMask = 2147483647; 84 | files = ( 85 | 337DB8D78F47D30C78FA1B04 /* libPods-ReactNativeDraftjsExample.a in Frameworks */, 86 | ); 87 | runOnlyForDeploymentPostprocessing = 0; 88 | }; 89 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 90 | isa = PBXFrameworksBuildPhase; 91 | buildActionMask = 2147483647; 92 | files = ( 93 | 51158803EC2DFAE910A98070 /* libPods-ReactNativeDraftjsExample-tvOS.a in Frameworks */, 94 | ); 95 | runOnlyForDeploymentPostprocessing = 0; 96 | }; 97 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 98 | isa = PBXFrameworksBuildPhase; 99 | buildActionMask = 2147483647; 100 | files = ( 101 | 259350EDB46F3FE5E4D851C0 /* libPods-ReactNativeDraftjsExample-tvOSTests.a in Frameworks */, 102 | ); 103 | runOnlyForDeploymentPostprocessing = 0; 104 | }; 105 | /* End PBXFrameworksBuildPhase section */ 106 | 107 | /* Begin PBXGroup section */ 108 | 00E356EF1AD99517003FC87E /* ReactNativeDraftjsExampleTests */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | 00E356F21AD99517003FC87E /* ReactNativeDraftjsExampleTests.m */, 112 | 00E356F01AD99517003FC87E /* Supporting Files */, 113 | ); 114 | path = ReactNativeDraftjsExampleTests; 115 | sourceTree = ""; 116 | }; 117 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | 00E356F11AD99517003FC87E /* Info.plist */, 121 | ); 122 | name = "Supporting Files"; 123 | sourceTree = ""; 124 | }; 125 | 13B07FAE1A68108700A75B9A /* ReactNativeDraftjsExample */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 129 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 130 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 131 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 132 | 13B07FB61A68108700A75B9A /* Info.plist */, 133 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 134 | 13B07FB71A68108700A75B9A /* main.m */, 135 | ); 136 | name = ReactNativeDraftjsExample; 137 | sourceTree = ""; 138 | }; 139 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 140 | isa = PBXGroup; 141 | children = ( 142 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 143 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 144 | 034C1295F0E92B25EC4D489E /* libPods-ReactNativeDraftjsExample.a */, 145 | CB4D835C018E7B2BA949CC00 /* libPods-ReactNativeDraftjsExample-tvOS.a */, 146 | B2119FDEE88CD06D6881A32C /* libPods-ReactNativeDraftjsExample-tvOSTests.a */, 147 | CCD3FE748C8F73CE442B19C1 /* libPods-ReactNativeDraftjsExampleTests.a */, 148 | ); 149 | name = Frameworks; 150 | sourceTree = ""; 151 | }; 152 | 7151398B5A821092B7CA440E /* Pods */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | D85F5336CFB88BC819F457A8 /* Pods-ReactNativeDraftjsExample.debug.xcconfig */, 156 | 648B92F552ACE58CFD6B191E /* Pods-ReactNativeDraftjsExample.release.xcconfig */, 157 | D20919739DBC41C69453996B /* Pods-ReactNativeDraftjsExample-tvOS.debug.xcconfig */, 158 | E468EAD92FD0DA123E28E399 /* Pods-ReactNativeDraftjsExample-tvOS.release.xcconfig */, 159 | B8733D143B7DC3F05A6500EC /* Pods-ReactNativeDraftjsExample-tvOSTests.debug.xcconfig */, 160 | D2DD90C7F4E08208BF7A5992 /* Pods-ReactNativeDraftjsExample-tvOSTests.release.xcconfig */, 161 | 828F66C244234D2D4541FCB7 /* Pods-ReactNativeDraftjsExampleTests.debug.xcconfig */, 162 | 9C4DDEA9BAF65943E9587CD6 /* Pods-ReactNativeDraftjsExampleTests.release.xcconfig */, 163 | ); 164 | name = Pods; 165 | path = Pods; 166 | sourceTree = ""; 167 | }; 168 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | ); 172 | name = Libraries; 173 | sourceTree = ""; 174 | }; 175 | 83CBB9F61A601CBA00E9B192 = { 176 | isa = PBXGroup; 177 | children = ( 178 | 13B07FAE1A68108700A75B9A /* ReactNativeDraftjsExample */, 179 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 180 | 00E356EF1AD99517003FC87E /* ReactNativeDraftjsExampleTests */, 181 | 83CBBA001A601CBA00E9B192 /* Products */, 182 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 183 | 7151398B5A821092B7CA440E /* Pods */, 184 | ); 185 | indentWidth = 2; 186 | sourceTree = ""; 187 | tabWidth = 2; 188 | usesTabs = 0; 189 | }; 190 | 83CBBA001A601CBA00E9B192 /* Products */ = { 191 | isa = PBXGroup; 192 | children = ( 193 | 13B07F961A680F5B00A75B9A /* ReactNativeDraftjsExample.app */, 194 | 00E356EE1AD99517003FC87E /* ReactNativeDraftjsExampleTests.xctest */, 195 | 2D02E47B1E0B4A5D006451C7 /* ReactNativeDraftjsExample-tvOS.app */, 196 | 2D02E4901E0B4A5D006451C7 /* ReactNativeDraftjsExample-tvOSTests.xctest */, 197 | ); 198 | name = Products; 199 | sourceTree = ""; 200 | }; 201 | /* End PBXGroup section */ 202 | 203 | /* Begin PBXNativeTarget section */ 204 | 00E356ED1AD99517003FC87E /* ReactNativeDraftjsExampleTests */ = { 205 | isa = PBXNativeTarget; 206 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNativeDraftjsExampleTests" */; 207 | buildPhases = ( 208 | 851B30A99843D3D98DAF3C70 /* [CP] Check Pods Manifest.lock */, 209 | 00E356EA1AD99517003FC87E /* Sources */, 210 | 00E356EB1AD99517003FC87E /* Frameworks */, 211 | 00E356EC1AD99517003FC87E /* Resources */, 212 | ); 213 | buildRules = ( 214 | ); 215 | dependencies = ( 216 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 217 | ); 218 | name = ReactNativeDraftjsExampleTests; 219 | productName = ReactNativeDraftjsExampleTests; 220 | productReference = 00E356EE1AD99517003FC87E /* ReactNativeDraftjsExampleTests.xctest */; 221 | productType = "com.apple.product-type.bundle.unit-test"; 222 | }; 223 | 13B07F861A680F5B00A75B9A /* ReactNativeDraftjsExample */ = { 224 | isa = PBXNativeTarget; 225 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeDraftjsExample" */; 226 | buildPhases = ( 227 | 078710A393DA73A8EC33EB26 /* [CP] Check Pods Manifest.lock */, 228 | FD10A7F022414F080027D42C /* Start Packager */, 229 | 13B07F871A680F5B00A75B9A /* Sources */, 230 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 231 | 13B07F8E1A680F5B00A75B9A /* Resources */, 232 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 233 | ); 234 | buildRules = ( 235 | ); 236 | dependencies = ( 237 | ); 238 | name = ReactNativeDraftjsExample; 239 | productName = ReactNativeDraftjsExample; 240 | productReference = 13B07F961A680F5B00A75B9A /* ReactNativeDraftjsExample.app */; 241 | productType = "com.apple.product-type.application"; 242 | }; 243 | 2D02E47A1E0B4A5D006451C7 /* ReactNativeDraftjsExample-tvOS */ = { 244 | isa = PBXNativeTarget; 245 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeDraftjsExample-tvOS" */; 246 | buildPhases = ( 247 | 3044E0DE26E8F96840941FB3 /* [CP] Check Pods Manifest.lock */, 248 | FD10A7F122414F3F0027D42C /* Start Packager */, 249 | 2D02E4771E0B4A5D006451C7 /* Sources */, 250 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 251 | 2D02E4791E0B4A5D006451C7 /* Resources */, 252 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 253 | ); 254 | buildRules = ( 255 | ); 256 | dependencies = ( 257 | ); 258 | name = "ReactNativeDraftjsExample-tvOS"; 259 | productName = "ReactNativeDraftjsExample-tvOS"; 260 | productReference = 2D02E47B1E0B4A5D006451C7 /* ReactNativeDraftjsExample-tvOS.app */; 261 | productType = "com.apple.product-type.application"; 262 | }; 263 | 2D02E48F1E0B4A5D006451C7 /* ReactNativeDraftjsExample-tvOSTests */ = { 264 | isa = PBXNativeTarget; 265 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeDraftjsExample-tvOSTests" */; 266 | buildPhases = ( 267 | A24C18C19B27B3548184AC24 /* [CP] Check Pods Manifest.lock */, 268 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 269 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 270 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 271 | ); 272 | buildRules = ( 273 | ); 274 | dependencies = ( 275 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 276 | ); 277 | name = "ReactNativeDraftjsExample-tvOSTests"; 278 | productName = "ReactNativeDraftjsExample-tvOSTests"; 279 | productReference = 2D02E4901E0B4A5D006451C7 /* ReactNativeDraftjsExample-tvOSTests.xctest */; 280 | productType = "com.apple.product-type.bundle.unit-test"; 281 | }; 282 | /* End PBXNativeTarget section */ 283 | 284 | /* Begin PBXProject section */ 285 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 286 | isa = PBXProject; 287 | attributes = { 288 | LastUpgradeCheck = 0940; 289 | ORGANIZATIONNAME = Facebook; 290 | TargetAttributes = { 291 | 00E356ED1AD99517003FC87E = { 292 | CreatedOnToolsVersion = 6.2; 293 | TestTargetID = 13B07F861A680F5B00A75B9A; 294 | }; 295 | 2D02E47A1E0B4A5D006451C7 = { 296 | CreatedOnToolsVersion = 8.2.1; 297 | ProvisioningStyle = Automatic; 298 | }; 299 | 2D02E48F1E0B4A5D006451C7 = { 300 | CreatedOnToolsVersion = 8.2.1; 301 | ProvisioningStyle = Automatic; 302 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 303 | }; 304 | }; 305 | }; 306 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeDraftjsExample" */; 307 | compatibilityVersion = "Xcode 3.2"; 308 | developmentRegion = English; 309 | hasScannedForEncodings = 0; 310 | knownRegions = ( 311 | en, 312 | Base, 313 | ); 314 | mainGroup = 83CBB9F61A601CBA00E9B192; 315 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 316 | projectDirPath = ""; 317 | projectRoot = ""; 318 | targets = ( 319 | 13B07F861A680F5B00A75B9A /* ReactNativeDraftjsExample */, 320 | 00E356ED1AD99517003FC87E /* ReactNativeDraftjsExampleTests */, 321 | 2D02E47A1E0B4A5D006451C7 /* ReactNativeDraftjsExample-tvOS */, 322 | 2D02E48F1E0B4A5D006451C7 /* ReactNativeDraftjsExample-tvOSTests */, 323 | ); 324 | }; 325 | /* End PBXProject section */ 326 | 327 | /* Begin PBXResourcesBuildPhase section */ 328 | 00E356EC1AD99517003FC87E /* Resources */ = { 329 | isa = PBXResourcesBuildPhase; 330 | buildActionMask = 2147483647; 331 | files = ( 332 | ); 333 | runOnlyForDeploymentPostprocessing = 0; 334 | }; 335 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 336 | isa = PBXResourcesBuildPhase; 337 | buildActionMask = 2147483647; 338 | files = ( 339 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 340 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 341 | ); 342 | runOnlyForDeploymentPostprocessing = 0; 343 | }; 344 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 345 | isa = PBXResourcesBuildPhase; 346 | buildActionMask = 2147483647; 347 | files = ( 348 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 349 | ); 350 | runOnlyForDeploymentPostprocessing = 0; 351 | }; 352 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 353 | isa = PBXResourcesBuildPhase; 354 | buildActionMask = 2147483647; 355 | files = ( 356 | ); 357 | runOnlyForDeploymentPostprocessing = 0; 358 | }; 359 | /* End PBXResourcesBuildPhase section */ 360 | 361 | /* Begin PBXShellScriptBuildPhase section */ 362 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 363 | isa = PBXShellScriptBuildPhase; 364 | buildActionMask = 2147483647; 365 | files = ( 366 | ); 367 | inputPaths = ( 368 | ); 369 | name = "Bundle React Native code and images"; 370 | outputPaths = ( 371 | ); 372 | runOnlyForDeploymentPostprocessing = 0; 373 | shellPath = /bin/sh; 374 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 375 | }; 376 | 078710A393DA73A8EC33EB26 /* [CP] Check Pods Manifest.lock */ = { 377 | isa = PBXShellScriptBuildPhase; 378 | buildActionMask = 2147483647; 379 | files = ( 380 | ); 381 | inputFileListPaths = ( 382 | ); 383 | inputPaths = ( 384 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 385 | "${PODS_ROOT}/Manifest.lock", 386 | ); 387 | name = "[CP] Check Pods Manifest.lock"; 388 | outputFileListPaths = ( 389 | ); 390 | outputPaths = ( 391 | "$(DERIVED_FILE_DIR)/Pods-ReactNativeDraftjsExample-checkManifestLockResult.txt", 392 | ); 393 | runOnlyForDeploymentPostprocessing = 0; 394 | shellPath = /bin/sh; 395 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 396 | showEnvVarsInLog = 0; 397 | }; 398 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 399 | isa = PBXShellScriptBuildPhase; 400 | buildActionMask = 2147483647; 401 | files = ( 402 | ); 403 | inputPaths = ( 404 | ); 405 | name = "Bundle React Native Code And Images"; 406 | outputPaths = ( 407 | ); 408 | runOnlyForDeploymentPostprocessing = 0; 409 | shellPath = /bin/sh; 410 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 411 | }; 412 | 3044E0DE26E8F96840941FB3 /* [CP] Check Pods Manifest.lock */ = { 413 | isa = PBXShellScriptBuildPhase; 414 | buildActionMask = 2147483647; 415 | files = ( 416 | ); 417 | inputFileListPaths = ( 418 | ); 419 | inputPaths = ( 420 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 421 | "${PODS_ROOT}/Manifest.lock", 422 | ); 423 | name = "[CP] Check Pods Manifest.lock"; 424 | outputFileListPaths = ( 425 | ); 426 | outputPaths = ( 427 | "$(DERIVED_FILE_DIR)/Pods-ReactNativeDraftjsExample-tvOS-checkManifestLockResult.txt", 428 | ); 429 | runOnlyForDeploymentPostprocessing = 0; 430 | shellPath = /bin/sh; 431 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 432 | showEnvVarsInLog = 0; 433 | }; 434 | 851B30A99843D3D98DAF3C70 /* [CP] Check Pods Manifest.lock */ = { 435 | isa = PBXShellScriptBuildPhase; 436 | buildActionMask = 2147483647; 437 | files = ( 438 | ); 439 | inputFileListPaths = ( 440 | ); 441 | inputPaths = ( 442 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 443 | "${PODS_ROOT}/Manifest.lock", 444 | ); 445 | name = "[CP] Check Pods Manifest.lock"; 446 | outputFileListPaths = ( 447 | ); 448 | outputPaths = ( 449 | "$(DERIVED_FILE_DIR)/Pods-ReactNativeDraftjsExampleTests-checkManifestLockResult.txt", 450 | ); 451 | runOnlyForDeploymentPostprocessing = 0; 452 | shellPath = /bin/sh; 453 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 454 | showEnvVarsInLog = 0; 455 | }; 456 | A24C18C19B27B3548184AC24 /* [CP] Check Pods Manifest.lock */ = { 457 | isa = PBXShellScriptBuildPhase; 458 | buildActionMask = 2147483647; 459 | files = ( 460 | ); 461 | inputFileListPaths = ( 462 | ); 463 | inputPaths = ( 464 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 465 | "${PODS_ROOT}/Manifest.lock", 466 | ); 467 | name = "[CP] Check Pods Manifest.lock"; 468 | outputFileListPaths = ( 469 | ); 470 | outputPaths = ( 471 | "$(DERIVED_FILE_DIR)/Pods-ReactNativeDraftjsExample-tvOSTests-checkManifestLockResult.txt", 472 | ); 473 | runOnlyForDeploymentPostprocessing = 0; 474 | shellPath = /bin/sh; 475 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 476 | showEnvVarsInLog = 0; 477 | }; 478 | FD10A7F022414F080027D42C /* Start Packager */ = { 479 | isa = PBXShellScriptBuildPhase; 480 | buildActionMask = 2147483647; 481 | files = ( 482 | ); 483 | inputFileListPaths = ( 484 | ); 485 | inputPaths = ( 486 | ); 487 | name = "Start Packager"; 488 | outputFileListPaths = ( 489 | ); 490 | outputPaths = ( 491 | ); 492 | runOnlyForDeploymentPostprocessing = 0; 493 | shellPath = /bin/sh; 494 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 495 | showEnvVarsInLog = 0; 496 | }; 497 | FD10A7F122414F3F0027D42C /* Start Packager */ = { 498 | isa = PBXShellScriptBuildPhase; 499 | buildActionMask = 2147483647; 500 | files = ( 501 | ); 502 | inputFileListPaths = ( 503 | ); 504 | inputPaths = ( 505 | ); 506 | name = "Start Packager"; 507 | outputFileListPaths = ( 508 | ); 509 | outputPaths = ( 510 | ); 511 | runOnlyForDeploymentPostprocessing = 0; 512 | shellPath = /bin/sh; 513 | shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n"; 514 | showEnvVarsInLog = 0; 515 | }; 516 | /* End PBXShellScriptBuildPhase section */ 517 | 518 | /* Begin PBXSourcesBuildPhase section */ 519 | 00E356EA1AD99517003FC87E /* Sources */ = { 520 | isa = PBXSourcesBuildPhase; 521 | buildActionMask = 2147483647; 522 | files = ( 523 | 00E356F31AD99517003FC87E /* ReactNativeDraftjsExampleTests.m in Sources */, 524 | ); 525 | runOnlyForDeploymentPostprocessing = 0; 526 | }; 527 | 13B07F871A680F5B00A75B9A /* Sources */ = { 528 | isa = PBXSourcesBuildPhase; 529 | buildActionMask = 2147483647; 530 | files = ( 531 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 532 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 533 | ); 534 | runOnlyForDeploymentPostprocessing = 0; 535 | }; 536 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 537 | isa = PBXSourcesBuildPhase; 538 | buildActionMask = 2147483647; 539 | files = ( 540 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 541 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 542 | ); 543 | runOnlyForDeploymentPostprocessing = 0; 544 | }; 545 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 546 | isa = PBXSourcesBuildPhase; 547 | buildActionMask = 2147483647; 548 | files = ( 549 | 2DCD954D1E0B4F2C00145EB5 /* ReactNativeDraftjsExampleTests.m in Sources */, 550 | ); 551 | runOnlyForDeploymentPostprocessing = 0; 552 | }; 553 | /* End PBXSourcesBuildPhase section */ 554 | 555 | /* Begin PBXTargetDependency section */ 556 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 557 | isa = PBXTargetDependency; 558 | target = 13B07F861A680F5B00A75B9A /* ReactNativeDraftjsExample */; 559 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 560 | }; 561 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 562 | isa = PBXTargetDependency; 563 | target = 2D02E47A1E0B4A5D006451C7 /* ReactNativeDraftjsExample-tvOS */; 564 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 565 | }; 566 | /* End PBXTargetDependency section */ 567 | 568 | /* Begin PBXVariantGroup section */ 569 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 570 | isa = PBXVariantGroup; 571 | children = ( 572 | 13B07FB21A68108700A75B9A /* Base */, 573 | ); 574 | name = LaunchScreen.xib; 575 | path = ReactNativeDraftjsExample; 576 | sourceTree = ""; 577 | }; 578 | /* End PBXVariantGroup section */ 579 | 580 | /* Begin XCBuildConfiguration section */ 581 | 00E356F61AD99517003FC87E /* Debug */ = { 582 | isa = XCBuildConfiguration; 583 | baseConfigurationReference = 828F66C244234D2D4541FCB7 /* Pods-ReactNativeDraftjsExampleTests.debug.xcconfig */; 584 | buildSettings = { 585 | BUNDLE_LOADER = "$(TEST_HOST)"; 586 | GCC_PREPROCESSOR_DEFINITIONS = ( 587 | "DEBUG=1", 588 | "$(inherited)", 589 | ); 590 | INFOPLIST_FILE = ReactNativeDraftjsExampleTests/Info.plist; 591 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 592 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 593 | OTHER_LDFLAGS = ( 594 | "-ObjC", 595 | "-lc++", 596 | "$(inherited)", 597 | ); 598 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 599 | PRODUCT_NAME = "$(TARGET_NAME)"; 600 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeDraftjsExample.app/ReactNativeDraftjsExample"; 601 | }; 602 | name = Debug; 603 | }; 604 | 00E356F71AD99517003FC87E /* Release */ = { 605 | isa = XCBuildConfiguration; 606 | baseConfigurationReference = 9C4DDEA9BAF65943E9587CD6 /* Pods-ReactNativeDraftjsExampleTests.release.xcconfig */; 607 | buildSettings = { 608 | BUNDLE_LOADER = "$(TEST_HOST)"; 609 | COPY_PHASE_STRIP = NO; 610 | INFOPLIST_FILE = ReactNativeDraftjsExampleTests/Info.plist; 611 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 612 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 613 | OTHER_LDFLAGS = ( 614 | "-ObjC", 615 | "-lc++", 616 | "$(inherited)", 617 | ); 618 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 619 | PRODUCT_NAME = "$(TARGET_NAME)"; 620 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeDraftjsExample.app/ReactNativeDraftjsExample"; 621 | }; 622 | name = Release; 623 | }; 624 | 13B07F941A680F5B00A75B9A /* Debug */ = { 625 | isa = XCBuildConfiguration; 626 | baseConfigurationReference = D85F5336CFB88BC819F457A8 /* Pods-ReactNativeDraftjsExample.debug.xcconfig */; 627 | buildSettings = { 628 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 629 | CURRENT_PROJECT_VERSION = 1; 630 | DEAD_CODE_STRIPPING = NO; 631 | INFOPLIST_FILE = ReactNativeDraftjsExample/Info.plist; 632 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 633 | OTHER_LDFLAGS = ( 634 | "$(inherited)", 635 | "-ObjC", 636 | "-lc++", 637 | ); 638 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 639 | PRODUCT_NAME = ReactNativeDraftjsExample; 640 | VERSIONING_SYSTEM = "apple-generic"; 641 | }; 642 | name = Debug; 643 | }; 644 | 13B07F951A680F5B00A75B9A /* Release */ = { 645 | isa = XCBuildConfiguration; 646 | baseConfigurationReference = 648B92F552ACE58CFD6B191E /* Pods-ReactNativeDraftjsExample.release.xcconfig */; 647 | buildSettings = { 648 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 649 | CURRENT_PROJECT_VERSION = 1; 650 | INFOPLIST_FILE = ReactNativeDraftjsExample/Info.plist; 651 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 652 | OTHER_LDFLAGS = ( 653 | "$(inherited)", 654 | "-ObjC", 655 | "-lc++", 656 | ); 657 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 658 | PRODUCT_NAME = ReactNativeDraftjsExample; 659 | VERSIONING_SYSTEM = "apple-generic"; 660 | }; 661 | name = Release; 662 | }; 663 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 664 | isa = XCBuildConfiguration; 665 | baseConfigurationReference = D20919739DBC41C69453996B /* Pods-ReactNativeDraftjsExample-tvOS.debug.xcconfig */; 666 | buildSettings = { 667 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 668 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 669 | CLANG_ANALYZER_NONNULL = YES; 670 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 671 | CLANG_WARN_INFINITE_RECURSION = YES; 672 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 673 | DEBUG_INFORMATION_FORMAT = dwarf; 674 | ENABLE_TESTABILITY = YES; 675 | GCC_NO_COMMON_BLOCKS = YES; 676 | INFOPLIST_FILE = "ReactNativeDraftjsExample-tvOS/Info.plist"; 677 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 678 | OTHER_LDFLAGS = ( 679 | "$(inherited)", 680 | "-ObjC", 681 | "-lc++", 682 | ); 683 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ReactNativeDraftjsExample-tvOS"; 684 | PRODUCT_NAME = "$(TARGET_NAME)"; 685 | SDKROOT = appletvos; 686 | TARGETED_DEVICE_FAMILY = 3; 687 | TVOS_DEPLOYMENT_TARGET = 9.2; 688 | }; 689 | name = Debug; 690 | }; 691 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 692 | isa = XCBuildConfiguration; 693 | baseConfigurationReference = E468EAD92FD0DA123E28E399 /* Pods-ReactNativeDraftjsExample-tvOS.release.xcconfig */; 694 | buildSettings = { 695 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 696 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 697 | CLANG_ANALYZER_NONNULL = YES; 698 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 699 | CLANG_WARN_INFINITE_RECURSION = YES; 700 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 701 | COPY_PHASE_STRIP = NO; 702 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 703 | GCC_NO_COMMON_BLOCKS = YES; 704 | INFOPLIST_FILE = "ReactNativeDraftjsExample-tvOS/Info.plist"; 705 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 706 | OTHER_LDFLAGS = ( 707 | "$(inherited)", 708 | "-ObjC", 709 | "-lc++", 710 | ); 711 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ReactNativeDraftjsExample-tvOS"; 712 | PRODUCT_NAME = "$(TARGET_NAME)"; 713 | SDKROOT = appletvos; 714 | TARGETED_DEVICE_FAMILY = 3; 715 | TVOS_DEPLOYMENT_TARGET = 9.2; 716 | }; 717 | name = Release; 718 | }; 719 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 720 | isa = XCBuildConfiguration; 721 | baseConfigurationReference = B8733D143B7DC3F05A6500EC /* Pods-ReactNativeDraftjsExample-tvOSTests.debug.xcconfig */; 722 | buildSettings = { 723 | BUNDLE_LOADER = "$(TEST_HOST)"; 724 | CLANG_ANALYZER_NONNULL = YES; 725 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 726 | CLANG_WARN_INFINITE_RECURSION = YES; 727 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 728 | DEBUG_INFORMATION_FORMAT = dwarf; 729 | ENABLE_TESTABILITY = YES; 730 | GCC_NO_COMMON_BLOCKS = YES; 731 | INFOPLIST_FILE = "ReactNativeDraftjsExample-tvOSTests/Info.plist"; 732 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 733 | OTHER_LDFLAGS = ( 734 | "$(inherited)", 735 | "-ObjC", 736 | "-lc++", 737 | ); 738 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ReactNativeDraftjsExample-tvOSTests"; 739 | PRODUCT_NAME = "$(TARGET_NAME)"; 740 | SDKROOT = appletvos; 741 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeDraftjsExample-tvOS.app/ReactNativeDraftjsExample-tvOS"; 742 | TVOS_DEPLOYMENT_TARGET = 10.1; 743 | }; 744 | name = Debug; 745 | }; 746 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 747 | isa = XCBuildConfiguration; 748 | baseConfigurationReference = D2DD90C7F4E08208BF7A5992 /* Pods-ReactNativeDraftjsExample-tvOSTests.release.xcconfig */; 749 | buildSettings = { 750 | BUNDLE_LOADER = "$(TEST_HOST)"; 751 | CLANG_ANALYZER_NONNULL = YES; 752 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 753 | CLANG_WARN_INFINITE_RECURSION = YES; 754 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 755 | COPY_PHASE_STRIP = NO; 756 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 757 | GCC_NO_COMMON_BLOCKS = YES; 758 | INFOPLIST_FILE = "ReactNativeDraftjsExample-tvOSTests/Info.plist"; 759 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 760 | OTHER_LDFLAGS = ( 761 | "$(inherited)", 762 | "-ObjC", 763 | "-lc++", 764 | ); 765 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.ReactNativeDraftjsExample-tvOSTests"; 766 | PRODUCT_NAME = "$(TARGET_NAME)"; 767 | SDKROOT = appletvos; 768 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ReactNativeDraftjsExample-tvOS.app/ReactNativeDraftjsExample-tvOS"; 769 | TVOS_DEPLOYMENT_TARGET = 10.1; 770 | }; 771 | name = Release; 772 | }; 773 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 774 | isa = XCBuildConfiguration; 775 | buildSettings = { 776 | ALWAYS_SEARCH_USER_PATHS = NO; 777 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 778 | CLANG_CXX_LIBRARY = "libc++"; 779 | CLANG_ENABLE_MODULES = YES; 780 | CLANG_ENABLE_OBJC_ARC = YES; 781 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 782 | CLANG_WARN_BOOL_CONVERSION = YES; 783 | CLANG_WARN_COMMA = YES; 784 | CLANG_WARN_CONSTANT_CONVERSION = YES; 785 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 786 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 787 | CLANG_WARN_EMPTY_BODY = YES; 788 | CLANG_WARN_ENUM_CONVERSION = YES; 789 | CLANG_WARN_INFINITE_RECURSION = YES; 790 | CLANG_WARN_INT_CONVERSION = YES; 791 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 792 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 793 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 794 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 795 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 796 | CLANG_WARN_STRICT_PROTOTYPES = YES; 797 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 798 | CLANG_WARN_UNREACHABLE_CODE = YES; 799 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 800 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 801 | COPY_PHASE_STRIP = NO; 802 | ENABLE_STRICT_OBJC_MSGSEND = YES; 803 | ENABLE_TESTABILITY = YES; 804 | GCC_C_LANGUAGE_STANDARD = gnu99; 805 | GCC_DYNAMIC_NO_PIC = NO; 806 | GCC_NO_COMMON_BLOCKS = YES; 807 | GCC_OPTIMIZATION_LEVEL = 0; 808 | GCC_PREPROCESSOR_DEFINITIONS = ( 809 | "DEBUG=1", 810 | "$(inherited)", 811 | ); 812 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 813 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 814 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 815 | GCC_WARN_UNDECLARED_SELECTOR = YES; 816 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 817 | GCC_WARN_UNUSED_FUNCTION = YES; 818 | GCC_WARN_UNUSED_VARIABLE = YES; 819 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 820 | MTL_ENABLE_DEBUG_INFO = YES; 821 | ONLY_ACTIVE_ARCH = YES; 822 | SDKROOT = iphoneos; 823 | }; 824 | name = Debug; 825 | }; 826 | 83CBBA211A601CBA00E9B192 /* Release */ = { 827 | isa = XCBuildConfiguration; 828 | buildSettings = { 829 | ALWAYS_SEARCH_USER_PATHS = NO; 830 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 831 | CLANG_CXX_LIBRARY = "libc++"; 832 | CLANG_ENABLE_MODULES = YES; 833 | CLANG_ENABLE_OBJC_ARC = YES; 834 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 835 | CLANG_WARN_BOOL_CONVERSION = YES; 836 | CLANG_WARN_COMMA = YES; 837 | CLANG_WARN_CONSTANT_CONVERSION = YES; 838 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 839 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 840 | CLANG_WARN_EMPTY_BODY = YES; 841 | CLANG_WARN_ENUM_CONVERSION = YES; 842 | CLANG_WARN_INFINITE_RECURSION = YES; 843 | CLANG_WARN_INT_CONVERSION = YES; 844 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 845 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 846 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 847 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 848 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 849 | CLANG_WARN_STRICT_PROTOTYPES = YES; 850 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 851 | CLANG_WARN_UNREACHABLE_CODE = YES; 852 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 853 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 854 | COPY_PHASE_STRIP = YES; 855 | ENABLE_NS_ASSERTIONS = NO; 856 | ENABLE_STRICT_OBJC_MSGSEND = YES; 857 | GCC_C_LANGUAGE_STANDARD = gnu99; 858 | GCC_NO_COMMON_BLOCKS = YES; 859 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 860 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 861 | GCC_WARN_UNDECLARED_SELECTOR = YES; 862 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 863 | GCC_WARN_UNUSED_FUNCTION = YES; 864 | GCC_WARN_UNUSED_VARIABLE = YES; 865 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 866 | MTL_ENABLE_DEBUG_INFO = NO; 867 | SDKROOT = iphoneos; 868 | VALIDATE_PRODUCT = YES; 869 | }; 870 | name = Release; 871 | }; 872 | /* End XCBuildConfiguration section */ 873 | 874 | /* Begin XCConfigurationList section */ 875 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "ReactNativeDraftjsExampleTests" */ = { 876 | isa = XCConfigurationList; 877 | buildConfigurations = ( 878 | 00E356F61AD99517003FC87E /* Debug */, 879 | 00E356F71AD99517003FC87E /* Release */, 880 | ); 881 | defaultConfigurationIsVisible = 0; 882 | defaultConfigurationName = Release; 883 | }; 884 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "ReactNativeDraftjsExample" */ = { 885 | isa = XCConfigurationList; 886 | buildConfigurations = ( 887 | 13B07F941A680F5B00A75B9A /* Debug */, 888 | 13B07F951A680F5B00A75B9A /* Release */, 889 | ); 890 | defaultConfigurationIsVisible = 0; 891 | defaultConfigurationName = Release; 892 | }; 893 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeDraftjsExample-tvOS" */ = { 894 | isa = XCConfigurationList; 895 | buildConfigurations = ( 896 | 2D02E4971E0B4A5E006451C7 /* Debug */, 897 | 2D02E4981E0B4A5E006451C7 /* Release */, 898 | ); 899 | defaultConfigurationIsVisible = 0; 900 | defaultConfigurationName = Release; 901 | }; 902 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "ReactNativeDraftjsExample-tvOSTests" */ = { 903 | isa = XCConfigurationList; 904 | buildConfigurations = ( 905 | 2D02E4991E0B4A5E006451C7 /* Debug */, 906 | 2D02E49A1E0B4A5E006451C7 /* Release */, 907 | ); 908 | defaultConfigurationIsVisible = 0; 909 | defaultConfigurationName = Release; 910 | }; 911 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "ReactNativeDraftjsExample" */ = { 912 | isa = XCConfigurationList; 913 | buildConfigurations = ( 914 | 83CBBA201A601CBA00E9B192 /* Debug */, 915 | 83CBBA211A601CBA00E9B192 /* Release */, 916 | ); 917 | defaultConfigurationIsVisible = 0; 918 | defaultConfigurationName = Release; 919 | }; 920 | /* End XCConfigurationList section */ 921 | }; 922 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 923 | } 924 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/ios/ReactNativeDraftjsExample.xcodeproj/xcshareddata/xcschemes/ReactNativeDraftjsExample-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 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/ios/ReactNativeDraftjsExample.xcodeproj/xcshareddata/xcschemes/ReactNativeDraftjsExample.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 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/ios/ReactNativeDraftjsExample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/ios/ReactNativeDraftjsExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/ios/ReactNativeDraftjsExample/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (nonatomic, strong) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/ios/ReactNativeDraftjsExample/AppDelegate.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import "AppDelegate.h" 9 | 10 | #import 11 | #import 12 | #import 13 | 14 | @implementation AppDelegate 15 | 16 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 17 | { 18 | RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; 19 | RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 20 | moduleName:@"ReactNativeDraftjsExample" 21 | initialProperties:nil]; 22 | 23 | rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 24 | 25 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 26 | UIViewController *rootViewController = [UIViewController new]; 27 | rootViewController.view = rootView; 28 | self.window.rootViewController = rootViewController; 29 | [self.window makeKeyAndVisible]; 30 | return YES; 31 | } 32 | 33 | - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge 34 | { 35 | #if DEBUG 36 | return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 37 | #else 38 | return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; 39 | #endif 40 | } 41 | 42 | @end 43 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/ios/ReactNativeDraftjsExample/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 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/ios/ReactNativeDraftjsExample/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 | } 39 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/ios/ReactNativeDraftjsExample/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info": { 3 | "version": 1, 4 | "author": "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/ios/ReactNativeDraftjsExample/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ReactNativeDraftjsExample 9 | CFBundleExecutable 10 | $(EXECUTABLE_NAME) 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 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 | NSAppTransportSecurity 28 | 29 | NSAllowsArbitraryLoads 30 | 31 | NSExceptionDomains 32 | 33 | localhost 34 | 35 | NSExceptionAllowsInsecureHTTPLoads 36 | 37 | 38 | 39 | 40 | NSLocationWhenInUseUsageDescription 41 | 42 | UILaunchStoryboardName 43 | LaunchScreen 44 | UIRequiredDeviceCapabilities 45 | 46 | armv7 47 | 48 | UISupportedInterfaceOrientations 49 | 50 | UIInterfaceOrientationPortrait 51 | UIInterfaceOrientationLandscapeLeft 52 | UIInterfaceOrientationLandscapeRight 53 | 54 | UIViewControllerBasedStatusBarAppearance 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/ios/ReactNativeDraftjsExample/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/ios/ReactNativeDraftjsExampleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 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 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/ios/ReactNativeDraftjsExampleTests/ReactNativeDraftjsExampleTests.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | #import 12 | #import 13 | 14 | #define TIMEOUT_SECONDS 600 15 | #define TEXT_TO_LOOK_FOR @"Welcome to React Native!" 16 | 17 | @interface ReactNativeDraftjsExampleTests : XCTestCase 18 | 19 | @end 20 | 21 | @implementation ReactNativeDraftjsExampleTests 22 | 23 | - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test 24 | { 25 | if (test(view)) { 26 | return YES; 27 | } 28 | for (UIView *subview in [view subviews]) { 29 | if ([self findSubviewInView:subview matching:test]) { 30 | return YES; 31 | } 32 | } 33 | return NO; 34 | } 35 | 36 | - (void)testRendersWelcomeScreen 37 | { 38 | UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController]; 39 | NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS]; 40 | BOOL foundElement = NO; 41 | 42 | __block NSString *redboxError = nil; 43 | RCTSetLogFunction(^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) { 44 | if (level >= RCTLogLevelError) { 45 | redboxError = message; 46 | } 47 | }); 48 | 49 | while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) { 50 | [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 51 | [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]]; 52 | 53 | foundElement = [self findSubviewInView:vc.view matching:^BOOL(UIView *view) { 54 | if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) { 55 | return YES; 56 | } 57 | return NO; 58 | }]; 59 | } 60 | 61 | RCTSetLogFunction(RCTDefaultLogFunction); 62 | 63 | XCTAssertNil(redboxError, @"RedBox error: %@", redboxError); 64 | XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS); 65 | } 66 | 67 | 68 | @end 69 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | module.exports = { 9 | transformer: { 10 | getTransformOptions: async () => ({ 11 | transform: { 12 | experimentalImportSupport: false, 13 | inlineRequires: false 14 | } 15 | }) 16 | } 17 | }; 18 | -------------------------------------------------------------------------------- /ReactNativeDraftjsExample/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ReactNativeDraftjsExample", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "react-native start", 7 | "test": "jest", 8 | "lint": "eslint ." 9 | }, 10 | "dependencies": { 11 | "react": "16.8.6", 12 | "react-native": "0.60.3", 13 | "react-native-draftjs-editor": "0.0.2", 14 | "react-native-keyboard-spacer": "^0.4.1", 15 | "react-native-webview": "6.3.1" 16 | }, 17 | "devDependencies": { 18 | "@babel/core": "^7.5.4", 19 | "@babel/runtime": "^7.5.4", 20 | "@react-native-community/eslint-config": "^0.0.5", 21 | "babel-jest": "^24.8.0", 22 | "eslint": "^6.0.1", 23 | "jest": "^24.8.0", 24 | "metro-react-native-babel-preset": "^0.55.0", 25 | "react-test-renderer": "16.8.6" 26 | }, 27 | "jest": { 28 | "preset": "react-native" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 | # React Native Draft.js Editor 2 | 3 | A full fledged React Native Rich Text editor based on [Draft.js](https://draftjs.org/)!! 4 | 5 | ## Not actively maintained 6 | 7 | This project is not actively maintained (there's an implementation for TypeScript & Expo Support but not published). If you need any help, reach out to me on [Twitter](https://twitter.com/dani_akash_). 8 | 9 | ### Installation 10 | 11 | #### React Native Webview 12 | This project requires the latest version of [React Native Webview](https://github.com/react-native-community/react-native-webview) to be installed and linked to work properly. 13 | 14 | Install using npm: 15 | 16 | ```sh 17 | npm i react-native-draftjs-editor 18 | ``` 19 | 20 | Install using yarn: 21 | 22 | ```sh 23 | yarn add react-native-draftjs-editor 24 | ``` 25 | 26 | ### For Android alone 27 | 28 | After installation, add the following lines to the end of your `android/app/build.gradle` file 29 | 30 | ```gradle 31 | project.afterEvaluate { 32 | apply from: '../../node_modules/react-native-draftjs-editor/copyHtml.gradle'; 33 | copyEditorHtmlToAppAssets(file('../../node_modules/react-native-draftjs-editor')) 34 | } 35 | ``` 36 | 37 | _iOS installation does not require any additional steps._ 38 | 39 | # API 40 | 41 | # RNDraftView 42 | 43 | ### Props 44 | 45 | | Name | Type | Description | 46 | | ------------------ | ----------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | 47 | | defaultValue | String | The default value with which the editor should be populated. Should be an HTML string generated from draft.js using [draft-js-export-html](https://www.npmjs.com/package/draft-js-export-html). | 48 | | onEditorReady | Function | A callback function that will be called when the editor has loaded and is ready to use. Ensure this function is called before you apply any instance methods. | 49 | | style | [React Native View Style](https://facebook.github.io/react-native/docs/style) | Use this to style the View Component that is wrapping the rich text editor. | 50 | | placeholder | String | A placeholder string for the text editor. | 51 | | ref | React Ref Object | Pass a ref here to access the instance methods. | 52 | | onStyleChanged | Function | Will call a function with an Array of styles [] in the current editor's context. Use this to keep track of the applied styles in the editor. | 53 | | onBlockTypeChanged | Function | will call a function with a block type in the current editor's context. Use this to keep track of the applied block types in the editor. | 54 | | styleMap | Object | A custom style map you can pass to add custom styling of elements in your text editor. Refer [Draft.js](https://draftjs.org/docs/advanced-topics-inline-styles#mapping-a-style-string-to-css) Docs | 55 | | styleSheet | String | A CSS string which you can pass to style the HTML in which the rich text editor is running. This can be used if you want to change fonts and background colors of the editor etc. | 56 | 57 | `styleMap` and `styleSheet` are parsed as strings and are sent over to the webview. To prevent the string parsing from failing, please do not use single quotes `'` within the `styleMap` object's keys and values or inside the `styleSheet` string. 58 | 59 | ### Instance methods 60 | 61 | | Name | Params | Description | 62 | | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------- | 63 | | focus | - | shift focus to the rich text editor | 64 | | blur | - | removes focus from the rich text editor | 65 | | setStyle | `BOLD`, `ITALIC`, `UNDERLINE` and `CODE` | call this instance method to apply a style to the selected/active text. Call this again with the same style to remove it. | 66 | | setBlockType | Supports the default block types supported by draft.js [editor](https://github.com/facebook/draft-js/blob/master/src/component/utils/DraftStyleDefault.css) | Call this instance method to apply and call it again to remove the style. | 67 | | getEditorState | - | Returns the current editor state as a HTML string exported using [draft-js-export-html](https://www.npmjs.com/package/draft-js-export-html). | 68 | 69 | ## Sample Usage 70 | 71 | ```jsx 72 | import React, { useState, useEffect } from "react"; 73 | import { 74 | SafeAreaView, 75 | StyleSheet, 76 | TouchableOpacity, 77 | View, 78 | Text, 79 | Platform 80 | } from "react-native"; 81 | import KeyboardSpacer from "react-native-keyboard-spacer"; 82 | import RNDraftView from "react-native-draftjs-editor"; 83 | 84 | const ControlButton = ({ text, action, isActive }) => { 85 | return ( 86 | 93 | {text} 94 | 95 | ); 96 | }; 97 | 98 | const EditorToolBar = ({ 99 | activeStyles, 100 | blockType, 101 | toggleStyle, 102 | toggleBlockType 103 | }) => { 104 | return ( 105 | 106 | toggleStyle("BOLD")} 110 | /> 111 | toggleStyle("ITALIC")} 115 | /> 116 | toggleBlockType("header-one")} 120 | /> 121 | toggleBlockType("unordered-list-item")} 125 | /> 126 | toggleBlockType("ordered-list-item")} 130 | /> 131 | toggleStyle("STRIKETHROUGH")} 135 | /> 136 | 137 | ); 138 | }; 139 | 140 | const styleMap = { 141 | STRIKETHROUGH: { 142 | textDecoration: "line-through" 143 | } 144 | }; 145 | 146 | const App = () => { 147 | const _draftRef = React.createRef(); 148 | const [activeStyles, setActiveStyles] = useState([]); 149 | const [blockType, setActiveBlockType] = useState("unstyled"); 150 | const [editorState, setEditorState] = useState(""); 151 | 152 | const defaultValue = 153 | "

A Full fledged Text Editor

This editor is built with Draft.js. Hence should be suitable for most projects. However, Draft.js Isn’t fully compatible with mobile yet. So you might face some issues.


This is a simple implementation

  • It contains Text formatting and Some blocks formatting
  • Each for it’s own purpose

You can also do

  1. Custom style map
  2. Own css styles
  3. Custom block styling

You are welcome to try it!

"; 154 | 155 | const editorLoaded = () => { 156 | _draftRef.current && _draftRef.current.focus(); 157 | }; 158 | 159 | const toggleStyle = style => { 160 | _draftRef.current && _draftRef.current.setStyle(style); 161 | }; 162 | 163 | const toggleBlockType = blockType => { 164 | _draftRef.current && _draftRef.current.setBlockType(blockType); 165 | }; 166 | 167 | useEffect(() => { 168 | /** 169 | * Get the current editor state in HTML. 170 | * Usually keep it in the submit or next action to get output after user has typed. 171 | */ 172 | setEditorState(_draftRef.current ? _draftRef.current.getEditorState() : ""); 173 | }, [_draftRef]); 174 | console.log(editorState); 175 | 176 | return ( 177 | 178 | 188 | 194 | {Platform.OS === "ios" ? : null} 195 | 196 | ); 197 | }; 198 | 199 | const styles = StyleSheet.create({ 200 | containerStyle: { 201 | flex: 1, 202 | marginTop: 36 203 | }, 204 | toolbarContainer: { 205 | height: 56, 206 | flexDirection: "row", 207 | backgroundColor: "silver", 208 | alignItems: "center", 209 | justifyContent: "space-around" 210 | }, 211 | controlButtonContainer: { 212 | padding: 8, 213 | borderRadius: 2 214 | } 215 | }); 216 | 217 | export default App; 218 | ``` 219 | 220 | ### The above code will create the following editor view: 221 | 222 | ![react-native-draftjs-editor](https://raw.githubusercontent.com/DaniAkash/react-native-draftjs/master/assets/react-native-drafjs-in-action.png) 223 | 224 | Refer the working example in [`ReactNativeDraftjsExample/`](https://github.com/DaniAkash/react-native-draftjs/tree/master/ReactNativeDraftjsExample) directory 225 | 226 | If you run across any issues, please note that Draft.js is **not** fully mobile compatible yet. Before raising any issues in this repository please check if your issue exists in the following lists: 227 | 228 | - https://github.com/facebook/draft-js/labels/android 229 | - https://github.com/facebook/draft-js/labels/ios 230 | 231 | ## TODO 232 | 233 | - [x] Custom Style map. 234 | - [ ] Custom Block Components. 235 | - [x] CSS Styling of the editor 236 | - [ ] Test Cases 237 | - [ ] Native iOS and Android libraries 238 | -------------------------------------------------------------------------------- /assets/react-native-drafjs-in-action.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-toolkit/react-native-draftjs/7b16f490d2c179187e9464d9245c967e379ac7dc/assets/react-native-drafjs-in-action.png -------------------------------------------------------------------------------- /copyHtml.gradle: -------------------------------------------------------------------------------- 1 | ext { 2 | copyEditorHtmlToAppAssets = { dir -> 3 | def fromF = new File(dir, '/draftjs-html-source/draftjs-source.html'); 4 | def toF = new File(projectDir, '/src/main/assets/'); 5 | println ('Copying Draft js html asset file from ' + fromF.toString() + ' to ' + toF.toString()); 6 | 7 | copy { 8 | from fromF 9 | into toF 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /draftjs-web/.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /draftjs-web/README.md: -------------------------------------------------------------------------------- 1 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 2 | 3 | ## Available Scripts 4 | 5 | In the project directory, you can run: 6 | 7 | ### `npm start` 8 | 9 | Runs the app in the development mode.
10 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. 11 | 12 | The page will reload if you make edits.
13 | You will also see any lint errors in the console. 14 | 15 | ### `npm test` 16 | 17 | Launches the test runner in the interactive watch mode.
18 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 19 | 20 | ### `npm run build` 21 | 22 | Builds the app for production to the `build` folder.
23 | It correctly bundles React in production mode and optimizes the build for the best performance. 24 | 25 | The build is minified and the filenames include the hashes.
26 | Your app is ready to be deployed! 27 | 28 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 29 | 30 | ### `npm run eject` 31 | 32 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!** 33 | 34 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 35 | 36 | Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. 37 | 38 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. 39 | 40 | ## Learn More 41 | 42 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 43 | 44 | To learn React, check out the [React documentation](https://reactjs.org/). 45 | 46 | ### Code Splitting 47 | 48 | This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting 49 | 50 | ### Analyzing the Bundle Size 51 | 52 | This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size 53 | 54 | ### Making a Progressive Web App 55 | 56 | This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app 57 | 58 | ### Advanced Configuration 59 | 60 | This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration 61 | 62 | ### Deployment 63 | 64 | This section has moved here: https://facebook.github.io/create-react-app/docs/deployment 65 | 66 | ### `npm run build` fails to minify 67 | 68 | This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify 69 | -------------------------------------------------------------------------------- /draftjs-web/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "draftjs-web", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "draft-js": "^0.11.0", 7 | "draft-js-export-html": "^1.3.3", 8 | "draft-js-import-html": "^1.3.3", 9 | "immutable": "^4.0.0-rc.12", 10 | "prop-types": "^15.7.2", 11 | "react": "^16.8.6", 12 | "react-dom": "^16.8.6", 13 | "react-scripts": "3.0.1" 14 | }, 15 | "scripts": { 16 | "start": "react-scripts start", 17 | "build": "react-scripts build && mkdir -p ../draftjs-html-source && inliner -ni ./build/index.html > ../draftjs-html-source/draftjs-source.html", 18 | "test": "react-scripts test", 19 | "eject": "react-scripts eject" 20 | }, 21 | "eslintConfig": { 22 | "extends": "react-app" 23 | }, 24 | "homepage": "./", 25 | "browserslist": { 26 | "production": [ 27 | ">0.2%", 28 | "not dead", 29 | "not op_mini all" 30 | ], 31 | "development": [ 32 | "last 1 chrome version", 33 | "last 1 firefox version", 34 | "last 1 safari version" 35 | ] 36 | }, 37 | "devDependencies": { 38 | "inliner": "^1.13.1" 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /draftjs-web/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/react-native-toolkit/react-native-draftjs/7b16f490d2c179187e9464d9245c967e379ac7dc/draftjs-web/public/favicon.ico -------------------------------------------------------------------------------- /draftjs-web/public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 22 | React App 23 | 24 | 25 | 26 |
36 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /draftjs-web/public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | } 10 | ], 11 | "start_url": ".", 12 | "display": "standalone", 13 | "theme_color": "#000000", 14 | "background_color": "#ffffff" 15 | } 16 | -------------------------------------------------------------------------------- /draftjs-web/src/App.css: -------------------------------------------------------------------------------- 1 | .App { 2 | text-align: center; 3 | } 4 | 5 | .App-logo { 6 | animation: App-logo-spin infinite 20s linear; 7 | height: 40vmin; 8 | pointer-events: none; 9 | } 10 | 11 | .App-header { 12 | background-color: #282c34; 13 | min-height: 100vh; 14 | display: flex; 15 | flex-direction: column; 16 | align-items: center; 17 | justify-content: center; 18 | font-size: calc(10px + 2vmin); 19 | color: white; 20 | } 21 | 22 | .App-link { 23 | color: #61dafb; 24 | } 25 | 26 | @keyframes App-logo-spin { 27 | from { 28 | transform: rotate(0deg); 29 | } 30 | to { 31 | transform: rotate(360deg); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /draftjs-web/src/App.js: -------------------------------------------------------------------------------- 1 | import React, { useState, createRef, useEffect } from "react"; 2 | import { 3 | Editor, 4 | EditorState, 5 | RichUtils, 6 | getDefaultKeyBinding, 7 | DefaultDraftBlockRenderMap 8 | } from "draft-js"; 9 | import { stateFromHTML } from "draft-js-import-html"; 10 | import { stateToHTML } from "draft-js-export-html"; 11 | import { Map } from "immutable"; 12 | import EditorController from "./Components/EditorController/EditorController"; 13 | 14 | /** 15 | * For testing the post messages 16 | * in web 17 | */ 18 | // window.ReactNativeWebView ={}; 19 | // window.ReactNativeWebView.postMessage = value => console.log(value); 20 | 21 | function App() { 22 | const _draftEditorRef = createRef(); 23 | const [editorState, setEditorState] = useState(EditorState.createEmpty()); 24 | const [placeholder, setPlaceholder] = useState(""); 25 | const [editorStyle, setEditorStyle] = useState(""); 26 | const [styleMap, setStyleMap] = useState({}); 27 | const [blockRenderMap, setBlockRenderMap] = useState(Map({})); 28 | const [isMounted, setMountStatus] = useState(false); 29 | 30 | useEffect(() => { 31 | if (!isMounted) { 32 | setMountStatus(true); 33 | /** 34 | * componentDidMount action goes here... 35 | */ 36 | if (window.ReactNativeWebView) { 37 | window.ReactNativeWebView.postMessage( 38 | JSON.stringify({ 39 | isMounted: true 40 | }) 41 | ); 42 | } 43 | } 44 | }, [isMounted]); 45 | 46 | const handleKeyCommand = (command, editorState) => { 47 | const newState = RichUtils.handleKeyCommand(editorState, command); 48 | if (newState) { 49 | setEditorState(newState); 50 | return true; 51 | } 52 | return false; 53 | }; 54 | 55 | const mapKeyToEditorCommand = e => { 56 | switch (e.keyCode) { 57 | case 9: // TAB 58 | const newEditorState = RichUtils.onTab( 59 | e, 60 | editorState, 61 | 4 /* maxDepth */ 62 | ); 63 | if (newEditorState !== editorState) { 64 | setEditorState(newEditorState); 65 | } 66 | return; 67 | default: 68 | return getDefaultKeyBinding(e); 69 | } 70 | }; 71 | 72 | const toggleBlockType = blockType => { 73 | setEditorState(RichUtils.toggleBlockType(editorState, blockType)); 74 | }; 75 | 76 | const toggleInlineStyle = inlineStyle => { 77 | setEditorState(RichUtils.toggleInlineStyle(editorState, inlineStyle)); 78 | }; 79 | 80 | const setDefaultValue = html => { 81 | try { 82 | if (html) { 83 | setEditorState(EditorState.createWithContent(stateFromHTML(html))); 84 | } 85 | } catch (e) { 86 | console.error(e); 87 | } 88 | }; 89 | 90 | const setEditorPlaceholder = placeholder => { 91 | setPlaceholder(placeholder); 92 | }; 93 | 94 | const setEditorStyleSheet = styleSheet => { 95 | setEditorStyle(styleSheet); 96 | }; 97 | 98 | const setEditorStyleMap = editorStyleMap => { 99 | setStyleMap(editorStyleMap); 100 | }; 101 | 102 | const focusTextEditor = () => { 103 | _draftEditorRef.current && _draftEditorRef.current.focus(); 104 | }; 105 | 106 | const blurTextEditor = () => { 107 | _draftEditorRef.current && _draftEditorRef.current.blur(); 108 | }; 109 | 110 | const setEditorBlockRenderMap = renderMapString => { 111 | try { 112 | setBlockRenderMap(Map(JSON.parse(renderMapString))); 113 | } catch (e) { 114 | setBlockRenderMap(Map({})); 115 | console.error(e); 116 | } 117 | }; 118 | 119 | window.toggleBlockType = toggleBlockType; 120 | window.toggleInlineStyle = toggleInlineStyle; 121 | window.setDefaultValue = setDefaultValue; 122 | window.setEditorPlaceholder = setEditorPlaceholder; 123 | window.setEditorStyleSheet = setEditorStyleSheet; 124 | window.setEditorStyleMap = setEditorStyleMap; 125 | window.focusTextEditor = focusTextEditor; 126 | window.blurTextEditor = blurTextEditor; 127 | window.setEditorBlockRenderMap = setEditorBlockRenderMap; 128 | 129 | if (window.ReactNativeWebView) { 130 | window.ReactNativeWebView.postMessage( 131 | JSON.stringify({ 132 | editorState: stateToHTML(editorState.getCurrentContent()) 133 | }) 134 | ); 135 | } 136 | 137 | const customBlockRenderMap = DefaultDraftBlockRenderMap.merge(blockRenderMap); 138 | 139 | return ( 140 | <> 141 | 144 | 154 | 159 | 160 | ); 161 | } 162 | 163 | export default App; 164 | -------------------------------------------------------------------------------- /draftjs-web/src/App.test.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import App from './App'; 4 | 5 | it('renders without crashing', () => { 6 | const div = document.createElement('div'); 7 | ReactDOM.render(, div); 8 | ReactDOM.unmountComponentAtNode(div); 9 | }); 10 | -------------------------------------------------------------------------------- /draftjs-web/src/Components/EditorController/Components/ControllerButton.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import PropTypes from "prop-types"; 3 | 4 | const ControllerButton = ({ isActive, label, onToggle, style }) => { 5 | const onClick = e => { 6 | e.preventDefault(); 7 | onToggle(style); 8 | }; 9 | 10 | return ( 11 | 21 | {label} 22 | 23 | ); 24 | }; 25 | 26 | ControllerButton.propTypes = { 27 | isActive: PropTypes.bool, 28 | label: PropTypes.string, 29 | onToggle: PropTypes.func, 30 | style: PropTypes.string 31 | }; 32 | 33 | export default ControllerButton; 34 | -------------------------------------------------------------------------------- /draftjs-web/src/Components/EditorController/EditorController.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import PropTypes from "prop-types"; 3 | import ControllerButton from "./Components/ControllerButton"; 4 | import BlockTypes from "../../Constants/BlockTypes"; 5 | import InlineStyles from "../../Constants/InlineStyles"; 6 | 7 | const EditorController = ({ 8 | editorState = {}, 9 | onToggleBlockType = () => null, 10 | onToggleInlineStyle = () => null 11 | }) => { 12 | const selection = editorState.getSelection(); 13 | const editorBlockType = editorState 14 | .getCurrentContent() 15 | .getBlockForKey(selection.getStartKey()) 16 | .getType(); 17 | const currentStyle = editorState.getCurrentInlineStyle(); 18 | 19 | const setIterartor = currentStyle.values(); 20 | let style = setIterartor.next(); 21 | let styleString = ""; 22 | while (!style.done) { 23 | if (styleString) styleString += "," + style.value; 24 | else styleString = style.value; 25 | style = setIterartor.next(); 26 | } 27 | 28 | if (window.ReactNativeWebView) { 29 | window.ReactNativeWebView.postMessage( 30 | JSON.stringify({ 31 | blockType: editorBlockType, 32 | styles: styleString 33 | }) 34 | ); 35 | } 36 | 37 | return ( 38 | 62 | ); 63 | }; 64 | 65 | EditorController.propTypes = { 66 | editorState: PropTypes.object, 67 | onToggleBlockType: PropTypes.func, 68 | onToggleInlineStyle: PropTypes.func 69 | }; 70 | 71 | export default EditorController; 72 | -------------------------------------------------------------------------------- /draftjs-web/src/Constants/BlockTypes.js: -------------------------------------------------------------------------------- 1 | const BlockTypes = [ 2 | { label: "H1", style: "header-one" }, 3 | { label: "H2", style: "header-two" }, 4 | { label: "H3", style: "header-three" }, 5 | { label: "H4", style: "header-four" }, 6 | { label: "H5", style: "header-five" }, 7 | { label: "H6", style: "header-six" }, 8 | { label: "Blockquote", style: "blockquote" }, 9 | { label: "UL", style: "unordered-list-item" }, 10 | { label: "OL", style: "ordered-list-item" }, 11 | { label: "Code Block", style: "code-block" } 12 | ]; 13 | 14 | export default BlockTypes; 15 | -------------------------------------------------------------------------------- /draftjs-web/src/Constants/InlineStyles.js: -------------------------------------------------------------------------------- 1 | const InlineStyles = [ 2 | { label: "Bold", style: "BOLD" }, 3 | { label: "Italic", style: "ITALIC" }, 4 | { label: "Underline", style: "UNDERLINE" }, 5 | { label: "Monospace", style: "CODE" } 6 | ]; 7 | 8 | export default InlineStyles; 9 | -------------------------------------------------------------------------------- /draftjs-web/src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", 4 | "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /draftjs-web/src/index.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import ReactDOM from "react-dom"; 3 | import App from "./App"; 4 | 5 | ReactDOM.render(, document.getElementById("root")); 6 | 7 | // If you want your app to work offline and load faster, you can change 8 | // unregister() to register() below. Note this comes with some pitfalls. 9 | // Learn more about service workers: https://bit.ly/CRA-PWA 10 | -------------------------------------------------------------------------------- /draftjs-web/src/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /draftjs-web/src/serviceWorker.js: -------------------------------------------------------------------------------- 1 | // This optional code is used to register a service worker. 2 | // register() is not called by default. 3 | 4 | // This lets the app load faster on subsequent visits in production, and gives 5 | // it offline capabilities. However, it also means that developers (and users) 6 | // will only see deployed updates on subsequent visits to a page, after all the 7 | // existing tabs open on the page have been closed, since previously cached 8 | // resources are updated in the background. 9 | 10 | // To learn more about the benefits of this model and instructions on how to 11 | // opt-in, read https://bit.ly/CRA-PWA 12 | 13 | const isLocalhost = Boolean( 14 | window.location.hostname === 'localhost' || 15 | // [::1] is the IPv6 localhost address. 16 | window.location.hostname === '[::1]' || 17 | // 127.0.0.1/8 is considered localhost for IPv4. 18 | window.location.hostname.match( 19 | /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/ 20 | ) 21 | ); 22 | 23 | export function register(config) { 24 | if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) { 25 | // The URL constructor is available in all browsers that support SW. 26 | const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href); 27 | if (publicUrl.origin !== window.location.origin) { 28 | // Our service worker won't work if PUBLIC_URL is on a different origin 29 | // from what our page is served on. This might happen if a CDN is used to 30 | // serve assets; see https://github.com/facebook/create-react-app/issues/2374 31 | return; 32 | } 33 | 34 | window.addEventListener('load', () => { 35 | const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`; 36 | 37 | if (isLocalhost) { 38 | // This is running on localhost. Let's check if a service worker still exists or not. 39 | checkValidServiceWorker(swUrl, config); 40 | 41 | // Add some additional logging to localhost, pointing developers to the 42 | // service worker/PWA documentation. 43 | navigator.serviceWorker.ready.then(() => { 44 | console.log( 45 | 'This web app is being served cache-first by a service ' + 46 | 'worker. To learn more, visit https://bit.ly/CRA-PWA' 47 | ); 48 | }); 49 | } else { 50 | // Is not localhost. Just register service worker 51 | registerValidSW(swUrl, config); 52 | } 53 | }); 54 | } 55 | } 56 | 57 | function registerValidSW(swUrl, config) { 58 | navigator.serviceWorker 59 | .register(swUrl) 60 | .then(registration => { 61 | registration.onupdatefound = () => { 62 | const installingWorker = registration.installing; 63 | if (installingWorker == null) { 64 | return; 65 | } 66 | installingWorker.onstatechange = () => { 67 | if (installingWorker.state === 'installed') { 68 | if (navigator.serviceWorker.controller) { 69 | // At this point, the updated precached content has been fetched, 70 | // but the previous service worker will still serve the older 71 | // content until all client tabs are closed. 72 | console.log( 73 | 'New content is available and will be used when all ' + 74 | 'tabs for this page are closed. See https://bit.ly/CRA-PWA.' 75 | ); 76 | 77 | // Execute callback 78 | if (config && config.onUpdate) { 79 | config.onUpdate(registration); 80 | } 81 | } else { 82 | // At this point, everything has been precached. 83 | // It's the perfect time to display a 84 | // "Content is cached for offline use." message. 85 | console.log('Content is cached for offline use.'); 86 | 87 | // Execute callback 88 | if (config && config.onSuccess) { 89 | config.onSuccess(registration); 90 | } 91 | } 92 | } 93 | }; 94 | }; 95 | }) 96 | .catch(error => { 97 | console.error('Error during service worker registration:', error); 98 | }); 99 | } 100 | 101 | function checkValidServiceWorker(swUrl, config) { 102 | // Check if the service worker can be found. If it can't reload the page. 103 | fetch(swUrl) 104 | .then(response => { 105 | // Ensure service worker exists, and that we really are getting a JS file. 106 | const contentType = response.headers.get('content-type'); 107 | if ( 108 | response.status === 404 || 109 | (contentType != null && contentType.indexOf('javascript') === -1) 110 | ) { 111 | // No service worker found. Probably a different app. Reload the page. 112 | navigator.serviceWorker.ready.then(registration => { 113 | registration.unregister().then(() => { 114 | window.location.reload(); 115 | }); 116 | }); 117 | } else { 118 | // Service worker found. Proceed as normal. 119 | registerValidSW(swUrl, config); 120 | } 121 | }) 122 | .catch(() => { 123 | console.log( 124 | 'No internet connection found. App is running in offline mode.' 125 | ); 126 | }); 127 | } 128 | 129 | export function unregister() { 130 | if ('serviceWorker' in navigator) { 131 | navigator.serviceWorker.ready.then(registration => { 132 | registration.unregister(); 133 | }); 134 | } 135 | } 136 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from "react"; 2 | import { ViewPropTypes, Platform } from "react-native"; 3 | import WebView from "react-native-webview"; 4 | import PropTypes from "prop-types"; 5 | 6 | const draftJsHtml = require("./draftjs-html-source/draftjs-source.html"); 7 | 8 | class RNDraftView extends Component { 9 | static propTypes = { 10 | style: ViewPropTypes.style, 11 | onStyleChanged: PropTypes.func, 12 | onBlockTypeChanged: PropTypes.func, 13 | defaultValue: PropTypes.string, 14 | placeholder: PropTypes.string, 15 | styleSheet: PropTypes.string, 16 | styleMap: PropTypes.object, 17 | blockRenderMap: PropTypes.object, 18 | onEditorReady: PropTypes.func 19 | }; 20 | 21 | _webViewRef = React.createRef(); 22 | 23 | state = { 24 | editorState: "" 25 | }; 26 | 27 | executeScript = (functionName, parameter) => { 28 | this._webViewRef.current && 29 | this._webViewRef.current.injectJavaScript( 30 | `window.${functionName}(${parameter ? `'${parameter}'` : ""});true;` 31 | ); 32 | }; 33 | 34 | setBlockType = blockType => { 35 | this.executeScript("toggleBlockType", blockType); 36 | }; 37 | 38 | setStyle = style => { 39 | this.executeScript("toggleInlineStyle", style); 40 | }; 41 | 42 | getEditorState = () => { 43 | return this.state.editorState; 44 | }; 45 | 46 | _onMessage = event => { 47 | const { 48 | onStyleChanged = () => null, 49 | onBlockTypeChanged = () => null 50 | } = this.props; 51 | const { data } = event.nativeEvent; 52 | const { blockType, styles, editorState, isMounted } = JSON.parse(data); 53 | onStyleChanged(styles ? styles.split(",") : []); 54 | if (blockType) onBlockTypeChanged(blockType); 55 | if (editorState) 56 | this.setState({ editorState: editorState.replace(/(\r\n|\n|\r)/gm, "") }); 57 | if (isMounted) this.widgetMounted(); 58 | }; 59 | 60 | widgetMounted = () => { 61 | const { 62 | placeholder, 63 | defaultValue, 64 | styleSheet, 65 | styleMap, 66 | blockRenderMap, 67 | onEditorReady = () => null 68 | } = this.props; 69 | if (defaultValue) { 70 | this.executeScript("setDefaultValue", defaultValue); 71 | } 72 | if (placeholder) { 73 | this.executeScript("setEditorPlaceholder", placeholder); 74 | } 75 | if (styleSheet) { 76 | this.executeScript("setEditorStyleSheet", styleSheet); 77 | } 78 | if (styleMap) { 79 | try { 80 | this.executeScript("setEditorStyleMap", JSON.stringify(styleMap)); 81 | } catch (e) { 82 | console.error(e); 83 | } 84 | } 85 | if (blockRenderMap) { 86 | try { 87 | this.executeScript( 88 | "setEditorBlockRenderMap", 89 | JSON.stringify(blockRenderMap) 90 | ); 91 | } catch (e) { 92 | console.error(e); 93 | } 94 | } 95 | onEditorReady(); 96 | }; 97 | 98 | focus = () => { 99 | this.executeScript("focusTextEditor"); 100 | }; 101 | 102 | blur = () => { 103 | this.executeScript("blurTextEditor"); 104 | }; 105 | 106 | render() { 107 | const { style = { flex: 1 } } = this.props; 108 | return ( 109 | 122 | ); 123 | } 124 | } 125 | 126 | export default RNDraftView; 127 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-draftjs-editor", 3 | "version": "0.0.2", 4 | "description": "A full fledged React Native Rich Text editor based on draft.js", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "husky": { 10 | "hooks": { 11 | "pre-commit": "pretty-quick --staged" 12 | } 13 | }, 14 | "keywords": [ 15 | "react", 16 | "react-native", 17 | "draftjs", 18 | "rich-text-editor" 19 | ], 20 | "author": "DaniAkash (https://github.com/DaniAkash)", 21 | "repository": "DaniAkash/react-native-draftjs", 22 | "license": "MIT", 23 | "peerDependencies": { 24 | "react": "^16.8.6", 25 | "react-native-webview": "^5.12.1", 26 | "prop-types": "^15.7.2", 27 | "react-native": "^0.60.4" 28 | }, 29 | "devDependencies": { 30 | "husky": "^3.0.0", 31 | "prettier": "^1.18.2", 32 | "pretty-quick": "^1.11.1" 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | "@babel/code-frame@^7.0.0": 6 | version "7.0.0" 7 | resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.0.0.tgz#06e2ab19bdb535385559aabb5ba59729482800f8" 8 | integrity sha512-OfC2uemaknXr87bdLUkWog7nYuliM9Ij5HUcajsVcMCpQrcLmtxRbVFTIqmcSkSeYRBFBRxs2FiUqFJDLdiebA== 9 | dependencies: 10 | "@babel/highlight" "^7.0.0" 11 | 12 | "@babel/highlight@^7.0.0": 13 | version "7.5.0" 14 | resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.5.0.tgz#56d11312bd9248fa619591d02472be6e8cb32540" 15 | integrity sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ== 16 | dependencies: 17 | chalk "^2.0.0" 18 | esutils "^2.0.2" 19 | js-tokens "^4.0.0" 20 | 21 | "@types/normalize-package-data@^2.4.0": 22 | version "2.4.0" 23 | resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e" 24 | integrity sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA== 25 | 26 | ansi-styles@^3.2.1: 27 | version "3.2.1" 28 | resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" 29 | integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== 30 | dependencies: 31 | color-convert "^1.9.0" 32 | 33 | argparse@^1.0.7: 34 | version "1.0.10" 35 | resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" 36 | integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== 37 | dependencies: 38 | sprintf-js "~1.0.2" 39 | 40 | array-differ@^2.0.3: 41 | version "2.1.0" 42 | resolved "https://registry.yarnpkg.com/array-differ/-/array-differ-2.1.0.tgz#4b9c1c3f14b906757082925769e8ab904f4801b1" 43 | integrity sha512-KbUpJgx909ZscOc/7CLATBFam7P1Z1QRQInvgT0UztM9Q72aGKCunKASAl7WNW0tnPmPyEMeMhdsfWhfmW037w== 44 | 45 | array-union@^1.0.2: 46 | version "1.0.2" 47 | resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" 48 | integrity sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk= 49 | dependencies: 50 | array-uniq "^1.0.1" 51 | 52 | array-uniq@^1.0.1: 53 | version "1.0.3" 54 | resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" 55 | integrity sha1-r2rId6Jcx/dOBYiUdThY39sk/bY= 56 | 57 | arrify@^1.0.1: 58 | version "1.0.1" 59 | resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" 60 | integrity sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0= 61 | 62 | balanced-match@^1.0.0: 63 | version "1.0.0" 64 | resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" 65 | integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= 66 | 67 | brace-expansion@^1.1.7: 68 | version "1.1.11" 69 | resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" 70 | integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== 71 | dependencies: 72 | balanced-match "^1.0.0" 73 | concat-map "0.0.1" 74 | 75 | caller-callsite@^2.0.0: 76 | version "2.0.0" 77 | resolved "https://registry.yarnpkg.com/caller-callsite/-/caller-callsite-2.0.0.tgz#847e0fce0a223750a9a027c54b33731ad3154134" 78 | integrity sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ= 79 | dependencies: 80 | callsites "^2.0.0" 81 | 82 | caller-path@^2.0.0: 83 | version "2.0.0" 84 | resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-2.0.0.tgz#468f83044e369ab2010fac5f06ceee15bb2cb1f4" 85 | integrity sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ= 86 | dependencies: 87 | caller-callsite "^2.0.0" 88 | 89 | callsites@^2.0.0: 90 | version "2.0.0" 91 | resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" 92 | integrity sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA= 93 | 94 | chalk@^2.0.0, chalk@^2.3.0: 95 | version "2.4.2" 96 | resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" 97 | integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== 98 | dependencies: 99 | ansi-styles "^3.2.1" 100 | escape-string-regexp "^1.0.5" 101 | supports-color "^5.3.0" 102 | 103 | ci-info@^2.0.0: 104 | version "2.0.0" 105 | resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46" 106 | integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== 107 | 108 | color-convert@^1.9.0: 109 | version "1.9.3" 110 | resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" 111 | integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== 112 | dependencies: 113 | color-name "1.1.3" 114 | 115 | color-name@1.1.3: 116 | version "1.1.3" 117 | resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" 118 | integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= 119 | 120 | concat-map@0.0.1: 121 | version "0.0.1" 122 | resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" 123 | integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= 124 | 125 | cosmiconfig@^5.2.1: 126 | version "5.2.1" 127 | resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.2.1.tgz#040f726809c591e77a17c0a3626ca45b4f168b1a" 128 | integrity sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA== 129 | dependencies: 130 | import-fresh "^2.0.0" 131 | is-directory "^0.3.1" 132 | js-yaml "^3.13.1" 133 | parse-json "^4.0.0" 134 | 135 | cross-spawn@^5.0.1: 136 | version "5.1.0" 137 | resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" 138 | integrity sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk= 139 | dependencies: 140 | lru-cache "^4.0.1" 141 | shebang-command "^1.2.0" 142 | which "^1.2.9" 143 | 144 | cross-spawn@^6.0.0: 145 | version "6.0.5" 146 | resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" 147 | integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== 148 | dependencies: 149 | nice-try "^1.0.4" 150 | path-key "^2.0.1" 151 | semver "^5.5.0" 152 | shebang-command "^1.2.0" 153 | which "^1.2.9" 154 | 155 | end-of-stream@^1.1.0: 156 | version "1.4.1" 157 | resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.1.tgz#ed29634d19baba463b6ce6b80a37213eab71ec43" 158 | integrity sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q== 159 | dependencies: 160 | once "^1.4.0" 161 | 162 | error-ex@^1.3.1: 163 | version "1.3.2" 164 | resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" 165 | integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== 166 | dependencies: 167 | is-arrayish "^0.2.1" 168 | 169 | escape-string-regexp@^1.0.5: 170 | version "1.0.5" 171 | resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" 172 | integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= 173 | 174 | esprima@^4.0.0: 175 | version "4.0.1" 176 | resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" 177 | integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== 178 | 179 | esutils@^2.0.2: 180 | version "2.0.2" 181 | resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" 182 | integrity sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs= 183 | 184 | execa@^0.8.0: 185 | version "0.8.0" 186 | resolved "https://registry.yarnpkg.com/execa/-/execa-0.8.0.tgz#d8d76bbc1b55217ed190fd6dd49d3c774ecfc8da" 187 | integrity sha1-2NdrvBtVIX7RkP1t1J08d07PyNo= 188 | dependencies: 189 | cross-spawn "^5.0.1" 190 | get-stream "^3.0.0" 191 | is-stream "^1.1.0" 192 | npm-run-path "^2.0.0" 193 | p-finally "^1.0.0" 194 | signal-exit "^3.0.0" 195 | strip-eof "^1.0.0" 196 | 197 | execa@^1.0.0: 198 | version "1.0.0" 199 | resolved "https://registry.yarnpkg.com/execa/-/execa-1.0.0.tgz#c6236a5bb4df6d6f15e88e7f017798216749ddd8" 200 | integrity sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA== 201 | dependencies: 202 | cross-spawn "^6.0.0" 203 | get-stream "^4.0.0" 204 | is-stream "^1.1.0" 205 | npm-run-path "^2.0.0" 206 | p-finally "^1.0.0" 207 | signal-exit "^3.0.0" 208 | strip-eof "^1.0.0" 209 | 210 | find-up@^2.1.0: 211 | version "2.1.0" 212 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" 213 | integrity sha1-RdG35QbHF93UgndaK3eSCjwMV6c= 214 | dependencies: 215 | locate-path "^2.0.0" 216 | 217 | find-up@^4.0.0: 218 | version "4.1.0" 219 | resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" 220 | integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== 221 | dependencies: 222 | locate-path "^5.0.0" 223 | path-exists "^4.0.0" 224 | 225 | get-stdin@^7.0.0: 226 | version "7.0.0" 227 | resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-7.0.0.tgz#8d5de98f15171a125c5e516643c7a6d0ea8a96f6" 228 | integrity sha512-zRKcywvrXlXsA0v0i9Io4KDRaAw7+a1ZpjRwl9Wox8PFlVCCHra7E9c4kqXCoCM9nR5tBkaTTZRBoCm60bFqTQ== 229 | 230 | get-stream@^3.0.0: 231 | version "3.0.0" 232 | resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" 233 | integrity sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ= 234 | 235 | get-stream@^4.0.0: 236 | version "4.1.0" 237 | resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5" 238 | integrity sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w== 239 | dependencies: 240 | pump "^3.0.0" 241 | 242 | has-flag@^3.0.0: 243 | version "3.0.0" 244 | resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" 245 | integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= 246 | 247 | hosted-git-info@^2.1.4: 248 | version "2.7.1" 249 | resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.7.1.tgz#97f236977bd6e125408930ff6de3eec6281ec047" 250 | integrity sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w== 251 | 252 | husky@^3.0.0: 253 | version "3.0.0" 254 | resolved "https://registry.yarnpkg.com/husky/-/husky-3.0.0.tgz#de63821a7049dc412b1afd753c259e2f6e227562" 255 | integrity sha512-lKMEn7bRK+7f5eWPNGclDVciYNQt0GIkAQmhKl+uHP1qFzoN0h92kmH9HZ8PCwyVA2EQPD8KHf0FYWqnTxau+Q== 256 | dependencies: 257 | cosmiconfig "^5.2.1" 258 | execa "^1.0.0" 259 | get-stdin "^7.0.0" 260 | is-ci "^2.0.0" 261 | opencollective-postinstall "^2.0.2" 262 | pkg-dir "^4.2.0" 263 | please-upgrade-node "^3.1.1" 264 | read-pkg "^5.1.1" 265 | run-node "^1.0.0" 266 | slash "^3.0.0" 267 | 268 | ignore@^3.3.7: 269 | version "3.3.10" 270 | resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.10.tgz#0a97fb876986e8081c631160f8f9f389157f0043" 271 | integrity sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug== 272 | 273 | import-fresh@^2.0.0: 274 | version "2.0.0" 275 | resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546" 276 | integrity sha1-2BNVwVYS04bGH53dOSLUMEgipUY= 277 | dependencies: 278 | caller-path "^2.0.0" 279 | resolve-from "^3.0.0" 280 | 281 | is-arrayish@^0.2.1: 282 | version "0.2.1" 283 | resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" 284 | integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= 285 | 286 | is-ci@^2.0.0: 287 | version "2.0.0" 288 | resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-2.0.0.tgz#6bc6334181810e04b5c22b3d589fdca55026404c" 289 | integrity sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w== 290 | dependencies: 291 | ci-info "^2.0.0" 292 | 293 | is-directory@^0.3.1: 294 | version "0.3.1" 295 | resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1" 296 | integrity sha1-YTObbyR1/Hcv2cnYP1yFddwVSuE= 297 | 298 | is-stream@^1.1.0: 299 | version "1.1.0" 300 | resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" 301 | integrity sha1-EtSj3U5o4Lec6428hBc66A2RykQ= 302 | 303 | isexe@^2.0.0: 304 | version "2.0.0" 305 | resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" 306 | integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= 307 | 308 | js-tokens@^4.0.0: 309 | version "4.0.0" 310 | resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" 311 | integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== 312 | 313 | js-yaml@^3.13.1: 314 | version "3.13.1" 315 | resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847" 316 | integrity sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw== 317 | dependencies: 318 | argparse "^1.0.7" 319 | esprima "^4.0.0" 320 | 321 | json-parse-better-errors@^1.0.1: 322 | version "1.0.2" 323 | resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" 324 | integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== 325 | 326 | lines-and-columns@^1.1.6: 327 | version "1.1.6" 328 | resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00" 329 | integrity sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA= 330 | 331 | locate-path@^2.0.0: 332 | version "2.0.0" 333 | resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" 334 | integrity sha1-K1aLJl7slExtnA3pw9u7ygNUzY4= 335 | dependencies: 336 | p-locate "^2.0.0" 337 | path-exists "^3.0.0" 338 | 339 | locate-path@^5.0.0: 340 | version "5.0.0" 341 | resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" 342 | integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== 343 | dependencies: 344 | p-locate "^4.1.0" 345 | 346 | lru-cache@^4.0.1: 347 | version "4.1.5" 348 | resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.5.tgz#8bbe50ea85bed59bc9e33dcab8235ee9bcf443cd" 349 | integrity sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g== 350 | dependencies: 351 | pseudomap "^1.0.2" 352 | yallist "^2.1.2" 353 | 354 | minimatch@^3.0.4: 355 | version "3.0.4" 356 | resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" 357 | integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== 358 | dependencies: 359 | brace-expansion "^1.1.7" 360 | 361 | mri@^1.1.0: 362 | version "1.1.4" 363 | resolved "https://registry.yarnpkg.com/mri/-/mri-1.1.4.tgz#7cb1dd1b9b40905f1fac053abe25b6720f44744a" 364 | integrity sha512-6y7IjGPm8AzlvoUrwAaw1tLnUBudaS3752vcd8JtrpGGQn+rXIe63LFVHm/YMwtqAuh+LJPCFdlLYPWM1nYn6w== 365 | 366 | multimatch@^3.0.0: 367 | version "3.0.0" 368 | resolved "https://registry.yarnpkg.com/multimatch/-/multimatch-3.0.0.tgz#0e2534cc6bc238d9ab67e1b9cd5fcd85a6dbf70b" 369 | integrity sha512-22foS/gqQfANZ3o+W7ST2x25ueHDVNWl/b9OlGcLpy/iKxjCpvcNCM51YCenUi7Mt/jAjjqv8JwZRs8YP5sRjA== 370 | dependencies: 371 | array-differ "^2.0.3" 372 | array-union "^1.0.2" 373 | arrify "^1.0.1" 374 | minimatch "^3.0.4" 375 | 376 | nice-try@^1.0.4: 377 | version "1.0.5" 378 | resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" 379 | integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== 380 | 381 | normalize-package-data@^2.5.0: 382 | version "2.5.0" 383 | resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" 384 | integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== 385 | dependencies: 386 | hosted-git-info "^2.1.4" 387 | resolve "^1.10.0" 388 | semver "2 || 3 || 4 || 5" 389 | validate-npm-package-license "^3.0.1" 390 | 391 | npm-run-path@^2.0.0: 392 | version "2.0.2" 393 | resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" 394 | integrity sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8= 395 | dependencies: 396 | path-key "^2.0.0" 397 | 398 | once@^1.3.1, once@^1.4.0: 399 | version "1.4.0" 400 | resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" 401 | integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= 402 | dependencies: 403 | wrappy "1" 404 | 405 | opencollective-postinstall@^2.0.2: 406 | version "2.0.2" 407 | resolved "https://registry.yarnpkg.com/opencollective-postinstall/-/opencollective-postinstall-2.0.2.tgz#5657f1bede69b6e33a45939b061eb53d3c6c3a89" 408 | integrity sha512-pVOEP16TrAO2/fjej1IdOyupJY8KDUM1CvsaScRbw6oddvpQoOfGk4ywha0HKKVAD6RkW4x6Q+tNBwhf3Bgpuw== 409 | 410 | p-finally@^1.0.0: 411 | version "1.0.0" 412 | resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" 413 | integrity sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4= 414 | 415 | p-limit@^1.1.0: 416 | version "1.3.0" 417 | resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" 418 | integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== 419 | dependencies: 420 | p-try "^1.0.0" 421 | 422 | p-limit@^2.2.0: 423 | version "2.2.0" 424 | resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.2.0.tgz#417c9941e6027a9abcba5092dd2904e255b5fbc2" 425 | integrity sha512-pZbTJpoUsCzV48Mc9Nh51VbwO0X9cuPFE8gYwx9BTCt9SF8/b7Zljd2fVgOxhIF/HDTKgpVzs+GPhyKfjLLFRQ== 426 | dependencies: 427 | p-try "^2.0.0" 428 | 429 | p-locate@^2.0.0: 430 | version "2.0.0" 431 | resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" 432 | integrity sha1-IKAQOyIqcMj9OcwuWAaA893l7EM= 433 | dependencies: 434 | p-limit "^1.1.0" 435 | 436 | p-locate@^4.1.0: 437 | version "4.1.0" 438 | resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" 439 | integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== 440 | dependencies: 441 | p-limit "^2.2.0" 442 | 443 | p-try@^1.0.0: 444 | version "1.0.0" 445 | resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" 446 | integrity sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M= 447 | 448 | p-try@^2.0.0: 449 | version "2.2.0" 450 | resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" 451 | integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== 452 | 453 | parse-json@^4.0.0: 454 | version "4.0.0" 455 | resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" 456 | integrity sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA= 457 | dependencies: 458 | error-ex "^1.3.1" 459 | json-parse-better-errors "^1.0.1" 460 | 461 | parse-json@^5.0.0: 462 | version "5.0.0" 463 | resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.0.0.tgz#73e5114c986d143efa3712d4ea24db9a4266f60f" 464 | integrity sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw== 465 | dependencies: 466 | "@babel/code-frame" "^7.0.0" 467 | error-ex "^1.3.1" 468 | json-parse-better-errors "^1.0.1" 469 | lines-and-columns "^1.1.6" 470 | 471 | path-exists@^3.0.0: 472 | version "3.0.0" 473 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" 474 | integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= 475 | 476 | path-exists@^4.0.0: 477 | version "4.0.0" 478 | resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" 479 | integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== 480 | 481 | path-key@^2.0.0, path-key@^2.0.1: 482 | version "2.0.1" 483 | resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" 484 | integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A= 485 | 486 | path-parse@^1.0.6: 487 | version "1.0.6" 488 | resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" 489 | integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw== 490 | 491 | pkg-dir@^4.2.0: 492 | version "4.2.0" 493 | resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" 494 | integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== 495 | dependencies: 496 | find-up "^4.0.0" 497 | 498 | please-upgrade-node@^3.1.1: 499 | version "3.1.1" 500 | resolved "https://registry.yarnpkg.com/please-upgrade-node/-/please-upgrade-node-3.1.1.tgz#ed320051dfcc5024fae696712c8288993595e8ac" 501 | integrity sha512-KY1uHnQ2NlQHqIJQpnh/i54rKkuxCEBx+voJIS/Mvb+L2iYd2NMotwduhKTMjfC1uKoX3VXOxLjIYG66dfJTVQ== 502 | dependencies: 503 | semver-compare "^1.0.0" 504 | 505 | prettier@^1.18.2: 506 | version "1.18.2" 507 | resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea" 508 | integrity sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw== 509 | 510 | pretty-quick@^1.11.1: 511 | version "1.11.1" 512 | resolved "https://registry.yarnpkg.com/pretty-quick/-/pretty-quick-1.11.1.tgz#462ffa2b93d24c05b7a0c3a001e08601a0c55ee4" 513 | integrity sha512-kSXCkcETfak7EQXz6WOkCeCqpbC4GIzrN/vaneTGMP/fAtD8NerA9bPhCUqHAks1geo7biZNl5uEMPceeneLuA== 514 | dependencies: 515 | chalk "^2.3.0" 516 | execa "^0.8.0" 517 | find-up "^2.1.0" 518 | ignore "^3.3.7" 519 | mri "^1.1.0" 520 | multimatch "^3.0.0" 521 | 522 | pseudomap@^1.0.2: 523 | version "1.0.2" 524 | resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3" 525 | integrity sha1-8FKijacOYYkX7wqKw0wa5aaChrM= 526 | 527 | pump@^3.0.0: 528 | version "3.0.0" 529 | resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64" 530 | integrity sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww== 531 | dependencies: 532 | end-of-stream "^1.1.0" 533 | once "^1.3.1" 534 | 535 | read-pkg@^5.1.1: 536 | version "5.2.0" 537 | resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-5.2.0.tgz#7bf295438ca5a33e56cd30e053b34ee7250c93cc" 538 | integrity sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg== 539 | dependencies: 540 | "@types/normalize-package-data" "^2.4.0" 541 | normalize-package-data "^2.5.0" 542 | parse-json "^5.0.0" 543 | type-fest "^0.6.0" 544 | 545 | resolve-from@^3.0.0: 546 | version "3.0.0" 547 | resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" 548 | integrity sha1-six699nWiBvItuZTM17rywoYh0g= 549 | 550 | resolve@^1.10.0: 551 | version "1.11.1" 552 | resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.11.1.tgz#ea10d8110376982fef578df8fc30b9ac30a07a3e" 553 | integrity sha512-vIpgF6wfuJOZI7KKKSP+HmiKggadPQAdsp5HiC1mvqnfp0gF1vdwgBWZIdrVft9pgqoMFQN+R7BSWZiBxx+BBw== 554 | dependencies: 555 | path-parse "^1.0.6" 556 | 557 | run-node@^1.0.0: 558 | version "1.0.0" 559 | resolved "https://registry.yarnpkg.com/run-node/-/run-node-1.0.0.tgz#46b50b946a2aa2d4947ae1d886e9856fd9cabe5e" 560 | integrity sha512-kc120TBlQ3mih1LSzdAJXo4xn/GWS2ec0l3S+syHDXP9uRr0JAT8Qd3mdMuyjqCzeZktgP3try92cEgf9Nks8A== 561 | 562 | semver-compare@^1.0.0: 563 | version "1.0.0" 564 | resolved "https://registry.yarnpkg.com/semver-compare/-/semver-compare-1.0.0.tgz#0dee216a1c941ab37e9efb1788f6afc5ff5537fc" 565 | integrity sha1-De4hahyUGrN+nvsXiPavxf9VN/w= 566 | 567 | "semver@2 || 3 || 4 || 5", semver@^5.5.0: 568 | version "5.7.0" 569 | resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.0.tgz#790a7cf6fea5459bac96110b29b60412dc8ff96b" 570 | integrity sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA== 571 | 572 | shebang-command@^1.2.0: 573 | version "1.2.0" 574 | resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" 575 | integrity sha1-RKrGW2lbAzmJaMOfNj/uXer98eo= 576 | dependencies: 577 | shebang-regex "^1.0.0" 578 | 579 | shebang-regex@^1.0.0: 580 | version "1.0.0" 581 | resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" 582 | integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM= 583 | 584 | signal-exit@^3.0.0: 585 | version "3.0.2" 586 | resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" 587 | integrity sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0= 588 | 589 | slash@^3.0.0: 590 | version "3.0.0" 591 | resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" 592 | integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== 593 | 594 | spdx-correct@^3.0.0: 595 | version "3.1.0" 596 | resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.1.0.tgz#fb83e504445268f154b074e218c87c003cd31df4" 597 | integrity sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q== 598 | dependencies: 599 | spdx-expression-parse "^3.0.0" 600 | spdx-license-ids "^3.0.0" 601 | 602 | spdx-exceptions@^2.1.0: 603 | version "2.2.0" 604 | resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz#2ea450aee74f2a89bfb94519c07fcd6f41322977" 605 | integrity sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA== 606 | 607 | spdx-expression-parse@^3.0.0: 608 | version "3.0.0" 609 | resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz#99e119b7a5da00e05491c9fa338b7904823b41d0" 610 | integrity sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg== 611 | dependencies: 612 | spdx-exceptions "^2.1.0" 613 | spdx-license-ids "^3.0.0" 614 | 615 | spdx-license-ids@^3.0.0: 616 | version "3.0.5" 617 | resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.5.tgz#3694b5804567a458d3c8045842a6358632f62654" 618 | integrity sha512-J+FWzZoynJEXGphVIS+XEh3kFSjZX/1i9gFBaWQcB+/tmpe2qUsSBABpcxqxnAxFdiUFEgAX1bjYGQvIZmoz9Q== 619 | 620 | sprintf-js@~1.0.2: 621 | version "1.0.3" 622 | resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" 623 | integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= 624 | 625 | strip-eof@^1.0.0: 626 | version "1.0.0" 627 | resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" 628 | integrity sha1-u0P/VZim6wXYm1n80SnJgzE2Br8= 629 | 630 | supports-color@^5.3.0: 631 | version "5.5.0" 632 | resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" 633 | integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== 634 | dependencies: 635 | has-flag "^3.0.0" 636 | 637 | type-fest@^0.6.0: 638 | version "0.6.0" 639 | resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.6.0.tgz#8d2a2370d3df886eb5c90ada1c5bf6188acf838b" 640 | integrity sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg== 641 | 642 | validate-npm-package-license@^3.0.1: 643 | version "3.0.4" 644 | resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" 645 | integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew== 646 | dependencies: 647 | spdx-correct "^3.0.0" 648 | spdx-expression-parse "^3.0.0" 649 | 650 | which@^1.2.9: 651 | version "1.3.1" 652 | resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" 653 | integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== 654 | dependencies: 655 | isexe "^2.0.0" 656 | 657 | wrappy@1: 658 | version "1.0.2" 659 | resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" 660 | integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= 661 | 662 | yallist@^2.1.2: 663 | version "2.1.2" 664 | resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52" 665 | integrity sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI= 666 | --------------------------------------------------------------------------------