├── .gitattributes ├── .gitignore ├── .npmignore ├── Demo ├── .buckconfig ├── .flowconfig ├── .gitattributes ├── .gitignore ├── .watchmanconfig ├── App.js ├── SelectableText.js ├── __tests__ │ └── App.js ├── android │ ├── app │ │ ├── BUCK │ │ ├── build.gradle │ │ ├── build_defs.bzl │ │ ├── proguard-rules.pro │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ └── com │ │ │ │ └── demo │ │ │ │ ├── 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 │ ├── keystores │ │ ├── BUCK │ │ └── debug.keystore.properties │ └── settings.gradle ├── app.json ├── babel.config.js ├── demo_android.gif ├── demo_ios.gif ├── index.js ├── ios │ ├── Demo-tvOS │ │ └── Info.plist │ ├── Demo-tvOSTests │ │ └── Info.plist │ ├── Demo.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── Demo-tvOS.xcscheme │ │ │ └── Demo.xcscheme │ ├── Demo │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Base.lproj │ │ │ └── LaunchScreen.xib │ │ ├── Images.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ └── Contents.json │ │ ├── Info.plist │ │ └── main.m │ └── DemoTests │ │ ├── DemoTests.m │ │ └── Info.plist ├── metro.config.js ├── package.json ├── patches │ └── react-native+0.59.0.patch └── yarn.lock ├── LICENSE ├── README.md ├── android ├── build.gradle ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat └── src │ └── main │ ├── AndroidManifest.xml │ └── java │ └── com │ └── astrocoders │ └── selectabletext │ ├── RNSelectableTextManager.java │ └── RNSelectableTextPackage.java ├── index.d.ts ├── index.js ├── ios ├── RNSelectableText.podspec ├── RNSelectableText.xcodeproj │ └── project.pbxproj ├── RNSelectableText.xcworkspace │ └── contents.xcworkspacedata ├── RNSelectableTextManager.h ├── RNSelectableTextManager.m ├── RNSelectableTextView.h └── RNSelectableTextView.m ├── package.json ├── react-native-selectable-text.podspec └── yarn.lock /.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # node.js 6 | # 7 | node_modules/ 8 | npm-debug.log 9 | yarn-error.log 10 | 11 | # Xcode 12 | # 13 | build/ 14 | *.pbxuser 15 | !default.pbxuser 16 | *.mode1v3 17 | !default.mode1v3 18 | *.mode2v3 19 | !default.mode2v3 20 | *.perspectivev3 21 | !default.perspectivev3 22 | xcuserdata 23 | *.xccheckout 24 | *.moved-aside 25 | DerivedData 26 | *.hmap 27 | *.ipa 28 | *.xcuserstate 29 | project.xcworkspace 30 | 31 | # Android/IntelliJ 32 | # 33 | build/ 34 | .idea 35 | .gradle 36 | local.properties 37 | *.iml 38 | 39 | # VSCode 40 | # 41 | .vscode 42 | 43 | # BUCK 44 | buck-out/ 45 | \.buckd/ 46 | *.keystore 47 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | Demo/android 2 | Demo/ios 3 | Demo/node_modules 4 | -------------------------------------------------------------------------------- /Demo/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /Demo/.flowconfig: -------------------------------------------------------------------------------- 1 | [ignore] 2 | ; We fork some components by platform 3 | .*/*[.]android.js 4 | 5 | ; Ignore "BUCK" generated dirs 6 | /\.buckd/ 7 | 8 | ; Ignore unexpected extra "@providesModule" 9 | .*/node_modules/.*/node_modules/fbjs/.* 10 | 11 | ; Ignore duplicate module providers 12 | ; For RN Apps installed via npm, "Libraries" folder is inside 13 | ; "node_modules/react-native" but in the source repo it is in the root 14 | .*/Libraries/react-native/React.js 15 | 16 | ; Ignore polyfills 17 | .*/Libraries/polyfills/.* 18 | 19 | ; Ignore metro 20 | .*/node_modules/metro/.* 21 | 22 | [include] 23 | 24 | [libs] 25 | node_modules/react-native/Libraries/react-native/react-native-interface.js 26 | node_modules/react-native/flow/ 27 | node_modules/react-native/flow-github/ 28 | 29 | [options] 30 | emoji=true 31 | 32 | esproposal.optional_chaining=enable 33 | esproposal.nullish_coalescing=enable 34 | 35 | module.system=haste 36 | module.system.haste.use_name_reducers=true 37 | # get basename 38 | module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1' 39 | # strip .js or .js.flow suffix 40 | module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1' 41 | # strip .ios suffix 42 | module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1' 43 | module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1' 44 | module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1' 45 | module.system.haste.paths.blacklist=.*/__tests__/.* 46 | module.system.haste.paths.blacklist=.*/__mocks__/.* 47 | module.system.haste.paths.blacklist=/node_modules/react-native/Libraries/Animated/src/polyfills/.* 48 | module.system.haste.paths.whitelist=/node_modules/react-native/Libraries/.* 49 | 50 | munge_underscores=true 51 | 52 | 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' 53 | 54 | module.file_ext=.js 55 | module.file_ext=.jsx 56 | module.file_ext=.json 57 | module.file_ext=.native.js 58 | 59 | suppress_type=$FlowIssue 60 | suppress_type=$FlowFixMe 61 | suppress_type=$FlowFixMeProps 62 | suppress_type=$FlowFixMeState 63 | 64 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\) 65 | suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+ 66 | suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy 67 | suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError 68 | 69 | [version] 70 | ^0.86.0 71 | -------------------------------------------------------------------------------- /Demo/.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /Demo/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | *.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | -------------------------------------------------------------------------------- /Demo/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /Demo/App.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Sample React Native App 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | * @flow 7 | * @lint-ignore-every XPLATJSCOPYRIGHT1 8 | */ 9 | 10 | import React, { Component } from "react"; 11 | import { Platform, StyleSheet, View } from "react-native"; 12 | import { SelectableText } from "./SelectableText.js"; 13 | 14 | const instructions = Platform.select({ 15 | ios: "Press Cmd+R to reload,\n" + "Cmd+D or shake for dev menu", 16 | android: 17 | "Double tap R on your keyboard to reload,\n" + 18 | "Shake or press menu button for dev menu" 19 | }); 20 | 21 | type Props = {}; 22 | export default class App extends Component { 23 | render() { 24 | return ( 25 | 26 | 33 | 39 | Go Beyond 40 | 41 | 48 | 55 | 56 | ); 57 | } 58 | } 59 | 60 | const styles = StyleSheet.create({ 61 | container: { 62 | flex: 1, 63 | justifyContent: "center", 64 | alignItems: "center", 65 | backgroundColor: "#F5FCFF", 66 | padding: 10 67 | }, 68 | welcome: { 69 | fontSize: 20, 70 | textAlign: "center", 71 | margin: 10, 72 | color: "#FF0000" 73 | }, 74 | instructions: { 75 | textAlign: "center", 76 | color: "#333333", 77 | marginBottom: 5, 78 | color: "#0000FF" 79 | } 80 | }); 81 | -------------------------------------------------------------------------------- /Demo/SelectableText.js: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import { Text, requireNativeComponent, Platform } from 'react-native' 3 | import { v4 } from 'uuid' 4 | import memoize from 'fast-memoize' 5 | 6 | const RNSelectableText = requireNativeComponent('RNSelectableText') 7 | 8 | /** 9 | * numbers: array({start: int, end: int, id: string}) 10 | */ 11 | const combineHighlights = memoize(numbers => { 12 | return numbers 13 | .sort((a, b) => a.start - b.start || a.end - b.end) 14 | .reduce(function(combined, next) { 15 | if (!combined.length || combined[combined.length - 1].end < next.start) combined.push(next) 16 | else { 17 | var prev = combined.pop() 18 | combined.push({ 19 | start: prev.start, 20 | end: Math.max(prev.end, next.end), 21 | id: next.id, 22 | }) 23 | } 24 | return combined 25 | }, []) 26 | }) 27 | 28 | /** 29 | * value: string 30 | * highlights: array({start: int, end: int, id: any}) 31 | */ 32 | const mapHighlightsRanges = (value, highlights) => { 33 | const combinedHighlights = combineHighlights(highlights) 34 | 35 | if (combinedHighlights.length === 0) return [{ isHighlight: false, text: value }] 36 | 37 | const data = [{ isHighlight: false, text: value.slice(0, combinedHighlights[0].start) }] 38 | 39 | combinedHighlights.forEach(({ start, end }, idx) => { 40 | data.push({ 41 | isHighlight: true, 42 | text: value.slice(start, end), 43 | }) 44 | 45 | if (combinedHighlights[idx + 1]) { 46 | data.push({ 47 | isHighlight: false, 48 | text: value.slice(end, combinedHighlights[idx + 1].start), 49 | }) 50 | } 51 | }) 52 | 53 | data.push({ 54 | isHighlight: false, 55 | text: value.slice(combinedHighlights[combinedHighlights.length - 1].end, value.length), 56 | }) 57 | 58 | return data.filter(x => x.text) 59 | } 60 | 61 | /** 62 | * Props 63 | * ...TextProps 64 | * onSelection: ({ content: string, eventType: string, selectionStart: int, selectionEnd: int }) => void 65 | * children: ReactNode 66 | * highlights: array({ id, start, end }) 67 | * highlightColor: string 68 | * onHighlightPress: string => void 69 | * textValueProp: string 70 | * TextComponent: ReactNode 71 | * textComponentProps: object 72 | */ 73 | export const SelectableText = ({ 74 | onSelection, onHighlightPress, textValueProp, value, TextComponent, 75 | textComponentProps, ...props 76 | }) => { 77 | const usesTextComponent = !TextComponent; 78 | TextComponent = TextComponent || Text; 79 | textValueProp = textValueProp || 'children'; // default to `children` which will render `value` as a child of `TextComponent` 80 | const onSelectionNative = ({ 81 | nativeEvent: { content, eventType, selectionStart, selectionEnd }, 82 | }) => { 83 | onSelection && onSelection({ content, eventType, selectionStart, selectionEnd }) 84 | } 85 | 86 | const onHighlightPressNative = onHighlightPress 87 | ? Platform.OS === 'ios' 88 | ? ({ nativeEvent: { clickedRangeStart, clickedRangeEnd } }) => { 89 | if (!props.highlights || props.highlights.length === 0) return 90 | 91 | const mergedHighlights = combineHighlights(props.highlights) 92 | 93 | const hightlightInRange = mergedHighlights.find( 94 | ({ start, end }) => clickedRangeStart >= start - 1 && clickedRangeEnd <= end + 1, 95 | ) 96 | 97 | if (hightlightInRange) { 98 | onHighlightPress(hightlightInRange.id) 99 | } 100 | } 101 | : onHighlightPress 102 | : () => {} 103 | 104 | // highlights feature is only supported if `TextComponent == Text` 105 | let textValue = value; 106 | if (usesTextComponent) { 107 | textValue = ( 108 | props.highlights && props.highlights.length > 0 109 | ? mapHighlightsRanges(value, props.highlights).map(({ id, isHighlight, text }) => ( 110 | { 121 | if (isHighlight) { 122 | onHighlightPress && onHighlightPress(id) 123 | } 124 | }} 125 | > 126 | {text} 127 | 128 | )) 129 | : [value] 130 | ); 131 | if (props.appendToChildren) { 132 | textValue.push(props.appendToChildren); 133 | } 134 | } 135 | return ( 136 | 142 | 146 | 147 | ) 148 | } 149 | -------------------------------------------------------------------------------- /Demo/__tests__/App.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | * @lint-ignore-every XPLATJSCOPYRIGHT1 4 | */ 5 | 6 | import 'react-native'; 7 | import React from 'react'; 8 | import App from '../App'; 9 | 10 | // Note: test renderer must be required after react-native. 11 | import renderer from 'react-test-renderer'; 12 | 13 | it('renders correctly', () => { 14 | renderer.create(); 15 | }); 16 | -------------------------------------------------------------------------------- /Demo/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.demo", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.demo", 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 | -------------------------------------------------------------------------------- /Demo/android/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: "com.android.application" 2 | 3 | import com.android.build.OutputFile 4 | 5 | /** 6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets 7 | * and bundleReleaseJsAndAssets). 8 | * These basically call `react-native bundle` with the correct arguments during the Android build 9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the 10 | * bundle directly from the development server. Below you can see all the possible configurations 11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the 12 | * `apply from: "../../node_modules/react-native/react.gradle"` line. 13 | * 14 | * project.ext.react = [ 15 | * // the name of the generated asset file containing your JS bundle 16 | * bundleAssetName: "index.android.bundle", 17 | * 18 | * // the entry file for bundle generation 19 | * entryFile: "index.android.js", 20 | * 21 | * // whether to bundle JS and assets in debug mode 22 | * bundleInDebug: false, 23 | * 24 | * // whether to bundle JS and assets in release mode 25 | * bundleInRelease: true, 26 | * 27 | * // whether to bundle JS and assets in another build variant (if configured). 28 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants 29 | * // The configuration property can be in the following formats 30 | * // 'bundleIn${productFlavor}${buildType}' 31 | * // 'bundleIn${buildType}' 32 | * // bundleInFreeDebug: true, 33 | * // bundleInPaidRelease: true, 34 | * // bundleInBeta: true, 35 | * 36 | * // whether to disable dev mode in custom build variants (by default only disabled in release) 37 | * // for example: to disable dev mode in the staging build type (if configured) 38 | * devDisabledInStaging: true, 39 | * // The configuration property can be in the following formats 40 | * // 'devDisabledIn${productFlavor}${buildType}' 41 | * // 'devDisabledIn${buildType}' 42 | * 43 | * // the root of your project, i.e. where "package.json" lives 44 | * root: "../../", 45 | * 46 | * // where to put the JS bundle asset in debug mode 47 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug", 48 | * 49 | * // where to put the JS bundle asset in release mode 50 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release", 51 | * 52 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 53 | * // require('./image.png')), in debug mode 54 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug", 55 | * 56 | * // where to put drawable resources / React Native assets, e.g. the ones you use via 57 | * // require('./image.png')), in release mode 58 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release", 59 | * 60 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means 61 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to 62 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle 63 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/ 64 | * // for example, you might want to remove it from here. 65 | * inputExcludes: ["android/**", "ios/**"], 66 | * 67 | * // override which node gets called and with what additional arguments 68 | * nodeExecutableAndArgs: ["node"], 69 | * 70 | * // supply additional arguments to the packager 71 | * extraPackagerArgs: [] 72 | * ] 73 | */ 74 | 75 | project.ext.react = [ 76 | entryFile: "index.js" 77 | ] 78 | 79 | apply from: "../../node_modules/react-native/react.gradle" 80 | 81 | /** 82 | * Set this to true to create two separate APKs instead of one: 83 | * - An APK that only works on ARM devices 84 | * - An APK that only works on x86 devices 85 | * The advantage is the size of the APK is reduced by about 4MB. 86 | * Upload all the APKs to the Play Store and people will download 87 | * the correct one based on the CPU architecture of their device. 88 | */ 89 | def enableSeparateBuildPerCPUArchitecture = false 90 | 91 | /** 92 | * Run Proguard to shrink the Java bytecode in release builds. 93 | */ 94 | def enableProguardInReleaseBuilds = false 95 | 96 | android { 97 | compileSdkVersion rootProject.ext.compileSdkVersion 98 | buildToolsVersion rootProject.ext.buildToolsVersion 99 | 100 | defaultConfig { 101 | applicationId "com.demo" 102 | minSdkVersion rootProject.ext.minSdkVersion 103 | targetSdkVersion rootProject.ext.targetSdkVersion 104 | versionCode 1 105 | versionName "1.0" 106 | } 107 | splits { 108 | abi { 109 | reset() 110 | enable enableSeparateBuildPerCPUArchitecture 111 | universalApk false // If true, also generate a universal APK 112 | include "armeabi-v7a", "x86", "arm64-v8a" 113 | } 114 | } 115 | buildTypes { 116 | release { 117 | minifyEnabled enableProguardInReleaseBuilds 118 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro" 119 | } 120 | } 121 | // applicationVariants are e.g. debug, release 122 | applicationVariants.all { variant -> 123 | variant.outputs.each { output -> 124 | // For each separate APK per architecture, set a unique version code as described here: 125 | // http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits 126 | def versionCodes = ["armeabi-v7a":1, "x86":2, "arm64-v8a": 3] 127 | def abi = output.getFilter(OutputFile.ABI) 128 | if (abi != null) { // null for the universal-debug, universal-release variants 129 | output.versionCodeOverride = 130 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode 131 | } 132 | } 133 | } 134 | } 135 | 136 | dependencies { 137 | implementation project(':react-native-selectable-text') 138 | 139 | implementation fileTree(dir: "libs", include: ["*.jar"]) 140 | implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" 141 | implementation "com.facebook.react:react-native:+" // From node_modules 142 | } 143 | 144 | // Run this once to be able to run the application with BUCK 145 | // puts all compile dependencies into folder libs for BUCK to use 146 | task copyDownloadableDepsToLibs(type: Copy) { 147 | from configurations.compile 148 | into 'libs' 149 | } 150 | -------------------------------------------------------------------------------- /Demo/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 | -------------------------------------------------------------------------------- /Demo/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /Demo/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 14 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Demo/android/app/src/main/java/com/demo/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.demo; 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 "Demo"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Demo/android/app/src/main/java/com/demo/MainApplication.java: -------------------------------------------------------------------------------- 1 | package com.demo; 2 | 3 | import android.app.Application; 4 | 5 | import com.facebook.react.ReactApplication; 6 | import com.facebook.react.ReactNativeHost; 7 | import com.facebook.react.ReactPackage; 8 | import com.facebook.react.shell.MainReactPackage; 9 | import com.facebook.soloader.SoLoader; 10 | import com.astrocoders.selectabletext.RNSelectableTextPackage; 11 | 12 | import java.util.Arrays; 13 | import java.util.List; 14 | 15 | public class MainApplication extends Application implements ReactApplication { 16 | 17 | private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { 18 | @Override 19 | public boolean getUseDeveloperSupport() { 20 | return BuildConfig.DEBUG; 21 | } 22 | 23 | @Override 24 | protected List getPackages() { 25 | return Arrays.asList( 26 | new MainReactPackage(), 27 | new RNSelectableTextPackage() 28 | ); 29 | } 30 | 31 | @Override 32 | protected String getJSMainModuleName() { 33 | return "index"; 34 | } 35 | }; 36 | 37 | @Override 38 | public ReactNativeHost getReactNativeHost() { 39 | return mReactNativeHost; 40 | } 41 | 42 | @Override 43 | public void onCreate() { 44 | super.onCreate(); 45 | SoLoader.init(this, /* native exopackage */ false); 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Demo/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Astrocoders/react-native-selectable-text/7ab5e75a2b0f8e02bf21964932dee76dca6b27da/Demo/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /Demo/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Astrocoders/react-native-selectable-text/7ab5e75a2b0f8e02bf21964932dee76dca6b27da/Demo/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Demo/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Astrocoders/react-native-selectable-text/7ab5e75a2b0f8e02bf21964932dee76dca6b27da/Demo/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /Demo/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Astrocoders/react-native-selectable-text/7ab5e75a2b0f8e02bf21964932dee76dca6b27da/Demo/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Demo/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Astrocoders/react-native-selectable-text/7ab5e75a2b0f8e02bf21964932dee76dca6b27da/Demo/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Demo/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Astrocoders/react-native-selectable-text/7ab5e75a2b0f8e02bf21964932dee76dca6b27da/Demo/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Demo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Astrocoders/react-native-selectable-text/7ab5e75a2b0f8e02bf21964932dee76dca6b27da/Demo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Demo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Astrocoders/react-native-selectable-text/7ab5e75a2b0f8e02bf21964932dee76dca6b27da/Demo/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Demo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Astrocoders/react-native-selectable-text/7ab5e75a2b0f8e02bf21964932dee76dca6b27da/Demo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Demo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Astrocoders/react-native-selectable-text/7ab5e75a2b0f8e02bf21964932dee76dca6b27da/Demo/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Demo/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Demo 3 | 4 | -------------------------------------------------------------------------------- /Demo/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Demo/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.2" 6 | minSdkVersion = 16 7 | compileSdkVersion = 28 8 | targetSdkVersion = 27 9 | supportLibVersion = "28.0.0" 10 | } 11 | repositories { 12 | google() 13 | jcenter() 14 | } 15 | dependencies { 16 | classpath 'com.android.tools.build:gradle:3.3.0' 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 | google() 27 | jcenter() 28 | maven { 29 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 30 | url "$rootDir/../node_modules/react-native/android" 31 | } 32 | } 33 | } 34 | 35 | 36 | task wrapper(type: Wrapper) { 37 | gradleVersion = '4.7' 38 | distributionUrl = distributionUrl.replace("bin", "all") 39 | } 40 | -------------------------------------------------------------------------------- /Demo/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 | -------------------------------------------------------------------------------- /Demo/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Astrocoders/react-native-selectable-text/7ab5e75a2b0f8e02bf21964932dee76dca6b27da/Demo/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /Demo/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip 6 | -------------------------------------------------------------------------------- /Demo/android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Attempt to set APP_HOME 10 | # Resolve links: $0 may be a link 11 | PRG="$0" 12 | # Need this for relative symlinks. 13 | while [ -h "$PRG" ] ; do 14 | ls=`ls -ld "$PRG"` 15 | link=`expr "$ls" : '.*-> \(.*\)$'` 16 | if expr "$link" : '/.*' > /dev/null; then 17 | PRG="$link" 18 | else 19 | PRG=`dirname "$PRG"`"/$link" 20 | fi 21 | done 22 | SAVED="`pwd`" 23 | cd "`dirname \"$PRG\"`/" >/dev/null 24 | APP_HOME="`pwd -P`" 25 | cd "$SAVED" >/dev/null 26 | 27 | APP_NAME="Gradle" 28 | APP_BASE_NAME=`basename "$0"` 29 | 30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 31 | DEFAULT_JVM_OPTS="" 32 | 33 | # Use the maximum available, or set MAX_FD != -1 to use that value. 34 | MAX_FD="maximum" 35 | 36 | warn () { 37 | echo "$*" 38 | } 39 | 40 | die () { 41 | echo 42 | echo "$*" 43 | echo 44 | exit 1 45 | } 46 | 47 | # OS specific support (must be 'true' or 'false'). 48 | cygwin=false 49 | msys=false 50 | darwin=false 51 | nonstop=false 52 | case "`uname`" in 53 | CYGWIN* ) 54 | cygwin=true 55 | ;; 56 | Darwin* ) 57 | darwin=true 58 | ;; 59 | MINGW* ) 60 | msys=true 61 | ;; 62 | NONSTOP* ) 63 | nonstop=true 64 | ;; 65 | esac 66 | 67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 68 | 69 | # Determine the Java command to use to start the JVM. 70 | if [ -n "$JAVA_HOME" ] ; then 71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 72 | # IBM's JDK on AIX uses strange locations for the executables 73 | JAVACMD="$JAVA_HOME/jre/sh/java" 74 | else 75 | JAVACMD="$JAVA_HOME/bin/java" 76 | fi 77 | if [ ! -x "$JAVACMD" ] ; then 78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 79 | 80 | Please set the JAVA_HOME variable in your environment to match the 81 | location of your Java installation." 82 | fi 83 | else 84 | JAVACMD="java" 85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 86 | 87 | Please set the JAVA_HOME variable in your environment to match the 88 | location of your Java installation." 89 | fi 90 | 91 | # Increase the maximum file descriptors if we can. 92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 93 | MAX_FD_LIMIT=`ulimit -H -n` 94 | if [ $? -eq 0 ] ; then 95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 96 | MAX_FD="$MAX_FD_LIMIT" 97 | fi 98 | ulimit -n $MAX_FD 99 | if [ $? -ne 0 ] ; then 100 | warn "Could not set maximum file descriptor limit: $MAX_FD" 101 | fi 102 | else 103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 104 | fi 105 | fi 106 | 107 | # For Darwin, add options to specify how the application appears in the dock 108 | if $darwin; then 109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 110 | fi 111 | 112 | # For Cygwin, switch paths to Windows format before running java 113 | if $cygwin ; then 114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 116 | JAVACMD=`cygpath --unix "$JAVACMD"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Escape application args 158 | save () { 159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 160 | echo " " 161 | } 162 | APP_ARGS=$(save "$@") 163 | 164 | # Collect all arguments for the java command, following the shell quoting and substitution rules 165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 166 | 167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong 168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then 169 | cd "$(dirname "$0")" 170 | fi 171 | 172 | exec "$JAVACMD" "$@" 173 | -------------------------------------------------------------------------------- /Demo/android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS= 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /Demo/android/keystores/BUCK: -------------------------------------------------------------------------------- 1 | keystore( 2 | name = "debug", 3 | properties = "debug.keystore.properties", 4 | store = "debug.keystore", 5 | visibility = [ 6 | "PUBLIC", 7 | ], 8 | ) 9 | -------------------------------------------------------------------------------- /Demo/android/keystores/debug.keystore.properties: -------------------------------------------------------------------------------- 1 | key.store=debug.keystore 2 | key.alias=androiddebugkey 3 | key.store.password=android 4 | key.alias.password=android 5 | -------------------------------------------------------------------------------- /Demo/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'Demo' 2 | 3 | include ':app' 4 | include ':react-native-selectable-text' 5 | 6 | project(':react-native-selectable-text').projectDir = new File(rootProject.projectDir, '../../android') 7 | -------------------------------------------------------------------------------- /Demo/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Demo", 3 | "displayName": "Demo" 4 | } -------------------------------------------------------------------------------- /Demo/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ["module:metro-react-native-babel-preset"] 3 | } 4 | -------------------------------------------------------------------------------- /Demo/demo_android.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Astrocoders/react-native-selectable-text/7ab5e75a2b0f8e02bf21964932dee76dca6b27da/Demo/demo_android.gif -------------------------------------------------------------------------------- /Demo/demo_ios.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Astrocoders/react-native-selectable-text/7ab5e75a2b0f8e02bf21964932dee76dca6b27da/Demo/demo_ios.gif -------------------------------------------------------------------------------- /Demo/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | * @lint-ignore-every XPLATJSCOPYRIGHT1 4 | */ 5 | 6 | import {AppRegistry} from 'react-native'; 7 | import App from './App'; 8 | import {name as appName} from './app.json'; 9 | 10 | AppRegistry.registerComponent(appName, () => App); 11 | -------------------------------------------------------------------------------- /Demo/ios/Demo-tvOS/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UIViewControllerBasedStatusBarAppearance 38 | 39 | NSLocationWhenInUseUsageDescription 40 | 41 | NSAppTransportSecurity 42 | 43 | 44 | NSExceptionDomains 45 | 46 | localhost 47 | 48 | NSExceptionAllowsInsecureHTTPLoads 49 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /Demo/ios/Demo-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 | -------------------------------------------------------------------------------- /Demo/ios/Demo.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; 11 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; 12 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; 13 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; 14 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; 15 | 00E356F31AD99517003FC87E /* DemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* DemoTests.m */; }; 16 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 17 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; }; 18 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; }; 19 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */; }; 20 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 21 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; 22 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 23 | 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 24 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 25 | 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 26 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; 27 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 28 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 29 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 30 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */; }; 31 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */; }; 32 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */; }; 33 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */; }; 34 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; }; 35 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; }; 36 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D16E6891FA4F8E400B85C8A /* libReact.a */; }; 37 | 2DCD954D1E0B4F2C00145EB5 /* DemoTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* DemoTests.m */; }; 38 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; }; 39 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; 40 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; }; 41 | B30B3B0D2238354C001CD650 /* libRNSelectableText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = B30B3B0C22383531001CD650 /* libRNSelectableText.a */; }; 42 | ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED297162215061F000B7C4FE /* JavaScriptCore.framework */; }; 43 | ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED2971642150620600B7C4FE /* JavaScriptCore.framework */; }; 44 | /* End PBXBuildFile section */ 45 | 46 | /* Begin PBXContainerItemProxy section */ 47 | 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { 48 | isa = PBXContainerItemProxy; 49 | containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 50 | proxyType = 2; 51 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 52 | remoteInfo = RCTActionSheet; 53 | }; 54 | 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { 55 | isa = PBXContainerItemProxy; 56 | containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 57 | proxyType = 2; 58 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 59 | remoteInfo = RCTGeolocation; 60 | }; 61 | 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { 62 | isa = PBXContainerItemProxy; 63 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 64 | proxyType = 2; 65 | remoteGlobalIDString = 58B5115D1A9E6B3D00147676; 66 | remoteInfo = RCTImage; 67 | }; 68 | 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { 69 | isa = PBXContainerItemProxy; 70 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 71 | proxyType = 2; 72 | remoteGlobalIDString = 58B511DB1A9E6C8500147676; 73 | remoteInfo = RCTNetwork; 74 | }; 75 | 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { 76 | isa = PBXContainerItemProxy; 77 | containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 78 | proxyType = 2; 79 | remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; 80 | remoteInfo = RCTVibration; 81 | }; 82 | 00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = { 83 | isa = PBXContainerItemProxy; 84 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 85 | proxyType = 1; 86 | remoteGlobalIDString = 13B07F861A680F5B00A75B9A; 87 | remoteInfo = Demo; 88 | }; 89 | 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */ = { 90 | isa = PBXContainerItemProxy; 91 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 92 | proxyType = 2; 93 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 94 | remoteInfo = RCTSettings; 95 | }; 96 | 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */ = { 97 | isa = PBXContainerItemProxy; 98 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 99 | proxyType = 2; 100 | remoteGlobalIDString = 3C86DF461ADF2C930047B81A; 101 | remoteInfo = RCTWebSocket; 102 | }; 103 | 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { 104 | isa = PBXContainerItemProxy; 105 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 106 | proxyType = 2; 107 | remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; 108 | remoteInfo = React; 109 | }; 110 | 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */ = { 111 | isa = PBXContainerItemProxy; 112 | containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */; 113 | proxyType = 1; 114 | remoteGlobalIDString = 2D02E47A1E0B4A5D006451C7; 115 | remoteInfo = "Demo-tvOS"; 116 | }; 117 | 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 118 | isa = PBXContainerItemProxy; 119 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 120 | proxyType = 2; 121 | remoteGlobalIDString = ADD01A681E09402E00F6D226; 122 | remoteInfo = "RCTBlob-tvOS"; 123 | }; 124 | 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 125 | isa = PBXContainerItemProxy; 126 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 127 | proxyType = 2; 128 | remoteGlobalIDString = 3DBE0D001F3B181A0099AA32; 129 | remoteInfo = fishhook; 130 | }; 131 | 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */ = { 132 | isa = PBXContainerItemProxy; 133 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 134 | proxyType = 2; 135 | remoteGlobalIDString = 3DBE0D0D1F3B181C0099AA32; 136 | remoteInfo = "fishhook-tvOS"; 137 | }; 138 | 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */ = { 139 | isa = PBXContainerItemProxy; 140 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 141 | proxyType = 2; 142 | remoteGlobalIDString = EBF21BDC1FC498900052F4D5; 143 | remoteInfo = jsinspector; 144 | }; 145 | 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */ = { 146 | isa = PBXContainerItemProxy; 147 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 148 | proxyType = 2; 149 | remoteGlobalIDString = EBF21BFA1FC4989A0052F4D5; 150 | remoteInfo = "jsinspector-tvOS"; 151 | }; 152 | 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */ = { 153 | isa = PBXContainerItemProxy; 154 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 155 | proxyType = 2; 156 | remoteGlobalIDString = 139D7ECE1E25DB7D00323FB7; 157 | remoteInfo = "third-party"; 158 | }; 159 | 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */ = { 160 | isa = PBXContainerItemProxy; 161 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 162 | proxyType = 2; 163 | remoteGlobalIDString = 3D383D3C1EBD27B6005632C8; 164 | remoteInfo = "third-party-tvOS"; 165 | }; 166 | 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */ = { 167 | isa = PBXContainerItemProxy; 168 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 169 | proxyType = 2; 170 | remoteGlobalIDString = 139D7E881E25C6D100323FB7; 171 | remoteInfo = "double-conversion"; 172 | }; 173 | 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */ = { 174 | isa = PBXContainerItemProxy; 175 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 176 | proxyType = 2; 177 | remoteGlobalIDString = 3D383D621EBD27B9005632C8; 178 | remoteInfo = "double-conversion-tvOS"; 179 | }; 180 | 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */ = { 181 | isa = PBXContainerItemProxy; 182 | containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 183 | proxyType = 2; 184 | remoteGlobalIDString = 2D2A283A1D9B042B00D4039D; 185 | remoteInfo = "RCTImage-tvOS"; 186 | }; 187 | 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */ = { 188 | isa = PBXContainerItemProxy; 189 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 190 | proxyType = 2; 191 | remoteGlobalIDString = 2D2A28471D9B043800D4039D; 192 | remoteInfo = "RCTLinking-tvOS"; 193 | }; 194 | 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 195 | isa = PBXContainerItemProxy; 196 | containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 197 | proxyType = 2; 198 | remoteGlobalIDString = 2D2A28541D9B044C00D4039D; 199 | remoteInfo = "RCTNetwork-tvOS"; 200 | }; 201 | 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 202 | isa = PBXContainerItemProxy; 203 | containerPortal = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 204 | proxyType = 2; 205 | remoteGlobalIDString = 2D2A28611D9B046600D4039D; 206 | remoteInfo = "RCTSettings-tvOS"; 207 | }; 208 | 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */ = { 209 | isa = PBXContainerItemProxy; 210 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 211 | proxyType = 2; 212 | remoteGlobalIDString = 2D2A287B1D9B048500D4039D; 213 | remoteInfo = "RCTText-tvOS"; 214 | }; 215 | 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */ = { 216 | isa = PBXContainerItemProxy; 217 | containerPortal = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 218 | proxyType = 2; 219 | remoteGlobalIDString = 2D2A28881D9B049200D4039D; 220 | remoteInfo = "RCTWebSocket-tvOS"; 221 | }; 222 | 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */ = { 223 | isa = PBXContainerItemProxy; 224 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 225 | proxyType = 2; 226 | remoteGlobalIDString = 2D2A28131D9B038B00D4039D; 227 | remoteInfo = "React-tvOS"; 228 | }; 229 | 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */ = { 230 | isa = PBXContainerItemProxy; 231 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 232 | proxyType = 2; 233 | remoteGlobalIDString = 3D3C059A1DE3340900C268FA; 234 | remoteInfo = yoga; 235 | }; 236 | 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */ = { 237 | isa = PBXContainerItemProxy; 238 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 239 | proxyType = 2; 240 | remoteGlobalIDString = 3D3C06751DE3340C00C268FA; 241 | remoteInfo = "yoga-tvOS"; 242 | }; 243 | 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */ = { 244 | isa = PBXContainerItemProxy; 245 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 246 | proxyType = 2; 247 | remoteGlobalIDString = 3D3CD9251DE5FBEC00167DC4; 248 | remoteInfo = cxxreact; 249 | }; 250 | 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */ = { 251 | isa = PBXContainerItemProxy; 252 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 253 | proxyType = 2; 254 | remoteGlobalIDString = 3D3CD9321DE5FBEE00167DC4; 255 | remoteInfo = "cxxreact-tvOS"; 256 | }; 257 | 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 258 | isa = PBXContainerItemProxy; 259 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 260 | proxyType = 2; 261 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 262 | remoteInfo = RCTAnimation; 263 | }; 264 | 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = { 265 | isa = PBXContainerItemProxy; 266 | containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 267 | proxyType = 2; 268 | remoteGlobalIDString = 2D2A28201D9B03D100D4039D; 269 | remoteInfo = "RCTAnimation-tvOS"; 270 | }; 271 | 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */ = { 272 | isa = PBXContainerItemProxy; 273 | containerPortal = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 274 | proxyType = 2; 275 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 276 | remoteInfo = RCTLinking; 277 | }; 278 | 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { 279 | isa = PBXContainerItemProxy; 280 | containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 281 | proxyType = 2; 282 | remoteGlobalIDString = 58B5119B1A9E6C1200147676; 283 | remoteInfo = RCTText; 284 | }; 285 | ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */ = { 286 | isa = PBXContainerItemProxy; 287 | containerPortal = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 288 | proxyType = 2; 289 | remoteGlobalIDString = 358F4ED71D1E81A9004DF814; 290 | remoteInfo = RCTBlob; 291 | }; 292 | B30B3B0222383531001CD650 /* PBXContainerItemProxy */ = { 293 | isa = PBXContainerItemProxy; 294 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 295 | proxyType = 2; 296 | remoteGlobalIDString = EDEBC6D6214B3E7000DD5AC8; 297 | remoteInfo = jsi; 298 | }; 299 | B30B3B0422383531001CD650 /* PBXContainerItemProxy */ = { 300 | isa = PBXContainerItemProxy; 301 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 302 | proxyType = 2; 303 | remoteGlobalIDString = EDEBC73B214B45A300DD5AC8; 304 | remoteInfo = jsiexecutor; 305 | }; 306 | B30B3B0622383531001CD650 /* PBXContainerItemProxy */ = { 307 | isa = PBXContainerItemProxy; 308 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 309 | proxyType = 2; 310 | remoteGlobalIDString = ED296FB6214C9A0900B7C4FE; 311 | remoteInfo = "jsi-tvOS"; 312 | }; 313 | B30B3B0822383531001CD650 /* PBXContainerItemProxy */ = { 314 | isa = PBXContainerItemProxy; 315 | containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; 316 | proxyType = 2; 317 | remoteGlobalIDString = ED296FEE214C9CF800B7C4FE; 318 | remoteInfo = "jsiexecutor-tvOS"; 319 | }; 320 | B30B3B0B22383531001CD650 /* PBXContainerItemProxy */ = { 321 | isa = PBXContainerItemProxy; 322 | containerPortal = B30B3ADA22383531001CD650 /* RNSelectableText.xcodeproj */; 323 | proxyType = 2; 324 | remoteGlobalIDString = 134814201AA4EA6300B7C361; 325 | remoteInfo = RNSelectableText; 326 | }; 327 | /* End PBXContainerItemProxy section */ 328 | 329 | /* Begin PBXFileReference section */ 330 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = ""; }; 331 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = "../node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj"; sourceTree = ""; }; 332 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = "../node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj"; sourceTree = ""; }; 333 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = "../node_modules/react-native/Libraries/Image/RCTImage.xcodeproj"; sourceTree = ""; }; 334 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = "../node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj"; sourceTree = ""; }; 335 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = ""; }; 336 | 00E356EE1AD99517003FC87E /* DemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = DemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 337 | 00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 338 | 00E356F21AD99517003FC87E /* DemoTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DemoTests.m; sourceTree = ""; }; 339 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = ""; }; 340 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = ""; }; 341 | 13B07F961A680F5B00A75B9A /* Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Demo.app; sourceTree = BUILT_PRODUCTS_DIR; }; 342 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = Demo/AppDelegate.h; sourceTree = ""; }; 343 | 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = Demo/AppDelegate.m; sourceTree = ""; }; 344 | 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 345 | 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = Demo/Images.xcassets; sourceTree = ""; }; 346 | 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = Demo/Info.plist; sourceTree = ""; }; 347 | 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = Demo/main.m; sourceTree = ""; }; 348 | 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = "../node_modules/react-native/React/React.xcodeproj"; sourceTree = ""; }; 349 | 2D02E47B1E0B4A5D006451C7 /* Demo-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Demo-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 350 | 2D02E4901E0B4A5D006451C7 /* Demo-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "Demo-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 351 | 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; }; 352 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 353 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 354 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; 355 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; }; 356 | B30B3ADA22383531001CD650 /* RNSelectableText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RNSelectableText.xcodeproj; path = ../../ios/RNSelectableText.xcodeproj; sourceTree = ""; }; 357 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 358 | 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; }; 359 | /* End PBXFileReference section */ 360 | 361 | /* Begin PBXFrameworksBuildPhase section */ 362 | 00E356EB1AD99517003FC87E /* Frameworks */ = { 363 | isa = PBXFrameworksBuildPhase; 364 | buildActionMask = 2147483647; 365 | files = ( 366 | 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */, 367 | ); 368 | runOnlyForDeploymentPostprocessing = 0; 369 | }; 370 | 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { 371 | isa = PBXFrameworksBuildPhase; 372 | buildActionMask = 2147483647; 373 | files = ( 374 | ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */, 375 | ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */, 376 | 11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */, 377 | 146834051AC3E58100842450 /* libReact.a in Frameworks */, 378 | 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, 379 | 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, 380 | 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, 381 | 133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */, 382 | 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, 383 | 139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */, 384 | 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 385 | 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 386 | 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, 387 | B30B3B0D2238354C001CD650 /* libRNSelectableText.a in Frameworks */, 388 | ); 389 | runOnlyForDeploymentPostprocessing = 0; 390 | }; 391 | 2D02E4781E0B4A5D006451C7 /* Frameworks */ = { 392 | isa = PBXFrameworksBuildPhase; 393 | buildActionMask = 2147483647; 394 | files = ( 395 | ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */, 396 | 2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */, 397 | 2D02E4C21E0B4AEC006451C7 /* libRCTAnimation.a in Frameworks */, 398 | 2D02E4C31E0B4AEC006451C7 /* libRCTImage-tvOS.a in Frameworks */, 399 | 2D02E4C41E0B4AEC006451C7 /* libRCTLinking-tvOS.a in Frameworks */, 400 | 2D02E4C51E0B4AEC006451C7 /* libRCTNetwork-tvOS.a in Frameworks */, 401 | 2D02E4C61E0B4AEC006451C7 /* libRCTSettings-tvOS.a in Frameworks */, 402 | 2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */, 403 | 2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */, 404 | ); 405 | runOnlyForDeploymentPostprocessing = 0; 406 | }; 407 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */ = { 408 | isa = PBXFrameworksBuildPhase; 409 | buildActionMask = 2147483647; 410 | files = ( 411 | 2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */, 412 | ); 413 | runOnlyForDeploymentPostprocessing = 0; 414 | }; 415 | /* End PBXFrameworksBuildPhase section */ 416 | 417 | /* Begin PBXGroup section */ 418 | 00C302A81ABCB8CE00DB3ED1 /* Products */ = { 419 | isa = PBXGroup; 420 | children = ( 421 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, 422 | ); 423 | name = Products; 424 | sourceTree = ""; 425 | }; 426 | 00C302B61ABCB90400DB3ED1 /* Products */ = { 427 | isa = PBXGroup; 428 | children = ( 429 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, 430 | ); 431 | name = Products; 432 | sourceTree = ""; 433 | }; 434 | 00C302BC1ABCB91800DB3ED1 /* Products */ = { 435 | isa = PBXGroup; 436 | children = ( 437 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, 438 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */, 439 | ); 440 | name = Products; 441 | sourceTree = ""; 442 | }; 443 | 00C302D41ABCB9D200DB3ED1 /* Products */ = { 444 | isa = PBXGroup; 445 | children = ( 446 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, 447 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */, 448 | ); 449 | name = Products; 450 | sourceTree = ""; 451 | }; 452 | 00C302E01ABCB9EE00DB3ED1 /* Products */ = { 453 | isa = PBXGroup; 454 | children = ( 455 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, 456 | ); 457 | name = Products; 458 | sourceTree = ""; 459 | }; 460 | 00E356EF1AD99517003FC87E /* DemoTests */ = { 461 | isa = PBXGroup; 462 | children = ( 463 | 00E356F21AD99517003FC87E /* DemoTests.m */, 464 | 00E356F01AD99517003FC87E /* Supporting Files */, 465 | ); 466 | path = DemoTests; 467 | sourceTree = ""; 468 | }; 469 | 00E356F01AD99517003FC87E /* Supporting Files */ = { 470 | isa = PBXGroup; 471 | children = ( 472 | 00E356F11AD99517003FC87E /* Info.plist */, 473 | ); 474 | name = "Supporting Files"; 475 | sourceTree = ""; 476 | }; 477 | 139105B71AF99BAD00B5F7CC /* Products */ = { 478 | isa = PBXGroup; 479 | children = ( 480 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */, 481 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */, 482 | ); 483 | name = Products; 484 | sourceTree = ""; 485 | }; 486 | 139FDEE71B06529A00C62182 /* Products */ = { 487 | isa = PBXGroup; 488 | children = ( 489 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */, 490 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */, 491 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */, 492 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */, 493 | ); 494 | name = Products; 495 | sourceTree = ""; 496 | }; 497 | 13B07FAE1A68108700A75B9A /* Demo */ = { 498 | isa = PBXGroup; 499 | children = ( 500 | 008F07F21AC5B25A0029DE68 /* main.jsbundle */, 501 | 13B07FAF1A68108700A75B9A /* AppDelegate.h */, 502 | 13B07FB01A68108700A75B9A /* AppDelegate.m */, 503 | 13B07FB51A68108700A75B9A /* Images.xcassets */, 504 | 13B07FB61A68108700A75B9A /* Info.plist */, 505 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, 506 | 13B07FB71A68108700A75B9A /* main.m */, 507 | ); 508 | name = Demo; 509 | sourceTree = ""; 510 | }; 511 | 146834001AC3E56700842450 /* Products */ = { 512 | isa = PBXGroup; 513 | children = ( 514 | 146834041AC3E56700842450 /* libReact.a */, 515 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */, 516 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */, 517 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */, 518 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */, 519 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */, 520 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */, 521 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */, 522 | 2DF0FFE32056DD460020B375 /* libthird-party.a */, 523 | 2DF0FFE52056DD460020B375 /* libthird-party.a */, 524 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */, 525 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */, 526 | B30B3B0322383531001CD650 /* libjsi.a */, 527 | B30B3B0522383531001CD650 /* libjsiexecutor.a */, 528 | B30B3B0722383531001CD650 /* libjsi-tvOS.a */, 529 | B30B3B0922383531001CD650 /* libjsiexecutor-tvOS.a */, 530 | ); 531 | name = Products; 532 | sourceTree = ""; 533 | }; 534 | 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { 535 | isa = PBXGroup; 536 | children = ( 537 | ED297162215061F000B7C4FE /* JavaScriptCore.framework */, 538 | ED2971642150620600B7C4FE /* JavaScriptCore.framework */, 539 | 2D16E6891FA4F8E400B85C8A /* libReact.a */, 540 | ); 541 | name = Frameworks; 542 | sourceTree = ""; 543 | }; 544 | 5E91572E1DD0AC6500FF2AA8 /* Products */ = { 545 | isa = PBXGroup; 546 | children = ( 547 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */, 548 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */, 549 | ); 550 | name = Products; 551 | sourceTree = ""; 552 | }; 553 | 78C398B11ACF4ADC00677621 /* Products */ = { 554 | isa = PBXGroup; 555 | children = ( 556 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */, 557 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */, 558 | ); 559 | name = Products; 560 | sourceTree = ""; 561 | }; 562 | 832341AE1AAA6A7D00B99B32 /* Libraries */ = { 563 | isa = PBXGroup; 564 | children = ( 565 | B30B3ADA22383531001CD650 /* RNSelectableText.xcodeproj */, 566 | 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */, 567 | 146833FF1AC3E56700842450 /* React.xcodeproj */, 568 | 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, 569 | ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */, 570 | 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, 571 | 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, 572 | 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */, 573 | 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, 574 | 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */, 575 | 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, 576 | 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 577 | 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, 578 | ); 579 | name = Libraries; 580 | sourceTree = ""; 581 | }; 582 | 832341B11AAA6A8300B99B32 /* Products */ = { 583 | isa = PBXGroup; 584 | children = ( 585 | 832341B51AAA6A8300B99B32 /* libRCTText.a */, 586 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */, 587 | ); 588 | name = Products; 589 | sourceTree = ""; 590 | }; 591 | 83CBB9F61A601CBA00E9B192 = { 592 | isa = PBXGroup; 593 | children = ( 594 | 13B07FAE1A68108700A75B9A /* Demo */, 595 | 832341AE1AAA6A7D00B99B32 /* Libraries */, 596 | 00E356EF1AD99517003FC87E /* DemoTests */, 597 | 83CBBA001A601CBA00E9B192 /* Products */, 598 | 2D16E6871FA4F8E400B85C8A /* Frameworks */, 599 | ); 600 | indentWidth = 2; 601 | sourceTree = ""; 602 | tabWidth = 2; 603 | usesTabs = 0; 604 | }; 605 | 83CBBA001A601CBA00E9B192 /* Products */ = { 606 | isa = PBXGroup; 607 | children = ( 608 | 13B07F961A680F5B00A75B9A /* Demo.app */, 609 | 00E356EE1AD99517003FC87E /* DemoTests.xctest */, 610 | 2D02E47B1E0B4A5D006451C7 /* Demo-tvOS.app */, 611 | 2D02E4901E0B4A5D006451C7 /* Demo-tvOSTests.xctest */, 612 | ); 613 | name = Products; 614 | sourceTree = ""; 615 | }; 616 | ADBDB9201DFEBF0600ED6528 /* Products */ = { 617 | isa = PBXGroup; 618 | children = ( 619 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */, 620 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */, 621 | ); 622 | name = Products; 623 | sourceTree = ""; 624 | }; 625 | B30B3ADB22383531001CD650 /* Products */ = { 626 | isa = PBXGroup; 627 | children = ( 628 | B30B3B0C22383531001CD650 /* libRNSelectableText.a */, 629 | ); 630 | name = Products; 631 | sourceTree = ""; 632 | }; 633 | /* End PBXGroup section */ 634 | 635 | /* Begin PBXNativeTarget section */ 636 | 00E356ED1AD99517003FC87E /* DemoTests */ = { 637 | isa = PBXNativeTarget; 638 | buildConfigurationList = 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "DemoTests" */; 639 | buildPhases = ( 640 | 00E356EA1AD99517003FC87E /* Sources */, 641 | 00E356EB1AD99517003FC87E /* Frameworks */, 642 | 00E356EC1AD99517003FC87E /* Resources */, 643 | ); 644 | buildRules = ( 645 | ); 646 | dependencies = ( 647 | 00E356F51AD99517003FC87E /* PBXTargetDependency */, 648 | ); 649 | name = DemoTests; 650 | productName = DemoTests; 651 | productReference = 00E356EE1AD99517003FC87E /* DemoTests.xctest */; 652 | productType = "com.apple.product-type.bundle.unit-test"; 653 | }; 654 | 13B07F861A680F5B00A75B9A /* Demo */ = { 655 | isa = PBXNativeTarget; 656 | buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Demo" */; 657 | buildPhases = ( 658 | 13B07F871A680F5B00A75B9A /* Sources */, 659 | 13B07F8C1A680F5B00A75B9A /* Frameworks */, 660 | 13B07F8E1A680F5B00A75B9A /* Resources */, 661 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, 662 | ); 663 | buildRules = ( 664 | ); 665 | dependencies = ( 666 | ); 667 | name = Demo; 668 | productName = "Hello World"; 669 | productReference = 13B07F961A680F5B00A75B9A /* Demo.app */; 670 | productType = "com.apple.product-type.application"; 671 | }; 672 | 2D02E47A1E0B4A5D006451C7 /* Demo-tvOS */ = { 673 | isa = PBXNativeTarget; 674 | buildConfigurationList = 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Demo-tvOS" */; 675 | buildPhases = ( 676 | 2D02E4771E0B4A5D006451C7 /* Sources */, 677 | 2D02E4781E0B4A5D006451C7 /* Frameworks */, 678 | 2D02E4791E0B4A5D006451C7 /* Resources */, 679 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */, 680 | ); 681 | buildRules = ( 682 | ); 683 | dependencies = ( 684 | ); 685 | name = "Demo-tvOS"; 686 | productName = "Demo-tvOS"; 687 | productReference = 2D02E47B1E0B4A5D006451C7 /* Demo-tvOS.app */; 688 | productType = "com.apple.product-type.application"; 689 | }; 690 | 2D02E48F1E0B4A5D006451C7 /* Demo-tvOSTests */ = { 691 | isa = PBXNativeTarget; 692 | buildConfigurationList = 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Demo-tvOSTests" */; 693 | buildPhases = ( 694 | 2D02E48C1E0B4A5D006451C7 /* Sources */, 695 | 2D02E48D1E0B4A5D006451C7 /* Frameworks */, 696 | 2D02E48E1E0B4A5D006451C7 /* Resources */, 697 | ); 698 | buildRules = ( 699 | ); 700 | dependencies = ( 701 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */, 702 | ); 703 | name = "Demo-tvOSTests"; 704 | productName = "Demo-tvOSTests"; 705 | productReference = 2D02E4901E0B4A5D006451C7 /* Demo-tvOSTests.xctest */; 706 | productType = "com.apple.product-type.bundle.unit-test"; 707 | }; 708 | /* End PBXNativeTarget section */ 709 | 710 | /* Begin PBXProject section */ 711 | 83CBB9F71A601CBA00E9B192 /* Project object */ = { 712 | isa = PBXProject; 713 | attributes = { 714 | LastUpgradeCheck = 0940; 715 | ORGANIZATIONNAME = Facebook; 716 | TargetAttributes = { 717 | 00E356ED1AD99517003FC87E = { 718 | CreatedOnToolsVersion = 6.2; 719 | TestTargetID = 13B07F861A680F5B00A75B9A; 720 | }; 721 | 2D02E47A1E0B4A5D006451C7 = { 722 | CreatedOnToolsVersion = 8.2.1; 723 | ProvisioningStyle = Automatic; 724 | }; 725 | 2D02E48F1E0B4A5D006451C7 = { 726 | CreatedOnToolsVersion = 8.2.1; 727 | ProvisioningStyle = Automatic; 728 | TestTargetID = 2D02E47A1E0B4A5D006451C7; 729 | }; 730 | }; 731 | }; 732 | buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Demo" */; 733 | compatibilityVersion = "Xcode 3.2"; 734 | developmentRegion = English; 735 | hasScannedForEncodings = 0; 736 | knownRegions = ( 737 | en, 738 | Base, 739 | ); 740 | mainGroup = 83CBB9F61A601CBA00E9B192; 741 | productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; 742 | projectDirPath = ""; 743 | projectReferences = ( 744 | { 745 | ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; 746 | ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; 747 | }, 748 | { 749 | ProductGroup = 5E91572E1DD0AC6500FF2AA8 /* Products */; 750 | ProjectRef = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */; 751 | }, 752 | { 753 | ProductGroup = ADBDB9201DFEBF0600ED6528 /* Products */; 754 | ProjectRef = ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */; 755 | }, 756 | { 757 | ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; 758 | ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; 759 | }, 760 | { 761 | ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; 762 | ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; 763 | }, 764 | { 765 | ProductGroup = 78C398B11ACF4ADC00677621 /* Products */; 766 | ProjectRef = 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */; 767 | }, 768 | { 769 | ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; 770 | ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; 771 | }, 772 | { 773 | ProductGroup = 139105B71AF99BAD00B5F7CC /* Products */; 774 | ProjectRef = 139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */; 775 | }, 776 | { 777 | ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; 778 | ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; 779 | }, 780 | { 781 | ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; 782 | ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; 783 | }, 784 | { 785 | ProductGroup = 139FDEE71B06529A00C62182 /* Products */; 786 | ProjectRef = 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */; 787 | }, 788 | { 789 | ProductGroup = 146834001AC3E56700842450 /* Products */; 790 | ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; 791 | }, 792 | { 793 | ProductGroup = B30B3ADB22383531001CD650 /* Products */; 794 | ProjectRef = B30B3ADA22383531001CD650 /* RNSelectableText.xcodeproj */; 795 | }, 796 | ); 797 | projectRoot = ""; 798 | targets = ( 799 | 13B07F861A680F5B00A75B9A /* Demo */, 800 | 00E356ED1AD99517003FC87E /* DemoTests */, 801 | 2D02E47A1E0B4A5D006451C7 /* Demo-tvOS */, 802 | 2D02E48F1E0B4A5D006451C7 /* Demo-tvOSTests */, 803 | ); 804 | }; 805 | /* End PBXProject section */ 806 | 807 | /* Begin PBXReferenceProxy section */ 808 | 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { 809 | isa = PBXReferenceProxy; 810 | fileType = archive.ar; 811 | path = libRCTActionSheet.a; 812 | remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; 813 | sourceTree = BUILT_PRODUCTS_DIR; 814 | }; 815 | 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { 816 | isa = PBXReferenceProxy; 817 | fileType = archive.ar; 818 | path = libRCTGeolocation.a; 819 | remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; 820 | sourceTree = BUILT_PRODUCTS_DIR; 821 | }; 822 | 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { 823 | isa = PBXReferenceProxy; 824 | fileType = archive.ar; 825 | path = libRCTImage.a; 826 | remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; 827 | sourceTree = BUILT_PRODUCTS_DIR; 828 | }; 829 | 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { 830 | isa = PBXReferenceProxy; 831 | fileType = archive.ar; 832 | path = libRCTNetwork.a; 833 | remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; 834 | sourceTree = BUILT_PRODUCTS_DIR; 835 | }; 836 | 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { 837 | isa = PBXReferenceProxy; 838 | fileType = archive.ar; 839 | path = libRCTVibration.a; 840 | remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; 841 | sourceTree = BUILT_PRODUCTS_DIR; 842 | }; 843 | 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */ = { 844 | isa = PBXReferenceProxy; 845 | fileType = archive.ar; 846 | path = libRCTSettings.a; 847 | remoteRef = 139105C01AF99BAD00B5F7CC /* PBXContainerItemProxy */; 848 | sourceTree = BUILT_PRODUCTS_DIR; 849 | }; 850 | 139FDEF41B06529B00C62182 /* libRCTWebSocket.a */ = { 851 | isa = PBXReferenceProxy; 852 | fileType = archive.ar; 853 | path = libRCTWebSocket.a; 854 | remoteRef = 139FDEF31B06529B00C62182 /* PBXContainerItemProxy */; 855 | sourceTree = BUILT_PRODUCTS_DIR; 856 | }; 857 | 146834041AC3E56700842450 /* libReact.a */ = { 858 | isa = PBXReferenceProxy; 859 | fileType = archive.ar; 860 | path = libReact.a; 861 | remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; 862 | sourceTree = BUILT_PRODUCTS_DIR; 863 | }; 864 | 2D16E6721FA4F8DC00B85C8A /* libRCTBlob-tvOS.a */ = { 865 | isa = PBXReferenceProxy; 866 | fileType = archive.ar; 867 | path = "libRCTBlob-tvOS.a"; 868 | remoteRef = 2D16E6711FA4F8DC00B85C8A /* PBXContainerItemProxy */; 869 | sourceTree = BUILT_PRODUCTS_DIR; 870 | }; 871 | 2D16E6841FA4F8DC00B85C8A /* libfishhook.a */ = { 872 | isa = PBXReferenceProxy; 873 | fileType = archive.ar; 874 | path = libfishhook.a; 875 | remoteRef = 2D16E6831FA4F8DC00B85C8A /* PBXContainerItemProxy */; 876 | sourceTree = BUILT_PRODUCTS_DIR; 877 | }; 878 | 2D16E6861FA4F8DC00B85C8A /* libfishhook-tvOS.a */ = { 879 | isa = PBXReferenceProxy; 880 | fileType = archive.ar; 881 | path = "libfishhook-tvOS.a"; 882 | remoteRef = 2D16E6851FA4F8DC00B85C8A /* PBXContainerItemProxy */; 883 | sourceTree = BUILT_PRODUCTS_DIR; 884 | }; 885 | 2DF0FFDF2056DD460020B375 /* libjsinspector.a */ = { 886 | isa = PBXReferenceProxy; 887 | fileType = archive.ar; 888 | path = libjsinspector.a; 889 | remoteRef = 2DF0FFDE2056DD460020B375 /* PBXContainerItemProxy */; 890 | sourceTree = BUILT_PRODUCTS_DIR; 891 | }; 892 | 2DF0FFE12056DD460020B375 /* libjsinspector-tvOS.a */ = { 893 | isa = PBXReferenceProxy; 894 | fileType = archive.ar; 895 | path = "libjsinspector-tvOS.a"; 896 | remoteRef = 2DF0FFE02056DD460020B375 /* PBXContainerItemProxy */; 897 | sourceTree = BUILT_PRODUCTS_DIR; 898 | }; 899 | 2DF0FFE32056DD460020B375 /* libthird-party.a */ = { 900 | isa = PBXReferenceProxy; 901 | fileType = archive.ar; 902 | path = "libthird-party.a"; 903 | remoteRef = 2DF0FFE22056DD460020B375 /* PBXContainerItemProxy */; 904 | sourceTree = BUILT_PRODUCTS_DIR; 905 | }; 906 | 2DF0FFE52056DD460020B375 /* libthird-party.a */ = { 907 | isa = PBXReferenceProxy; 908 | fileType = archive.ar; 909 | path = "libthird-party.a"; 910 | remoteRef = 2DF0FFE42056DD460020B375 /* PBXContainerItemProxy */; 911 | sourceTree = BUILT_PRODUCTS_DIR; 912 | }; 913 | 2DF0FFE72056DD460020B375 /* libdouble-conversion.a */ = { 914 | isa = PBXReferenceProxy; 915 | fileType = archive.ar; 916 | path = "libdouble-conversion.a"; 917 | remoteRef = 2DF0FFE62056DD460020B375 /* PBXContainerItemProxy */; 918 | sourceTree = BUILT_PRODUCTS_DIR; 919 | }; 920 | 2DF0FFE92056DD460020B375 /* libdouble-conversion.a */ = { 921 | isa = PBXReferenceProxy; 922 | fileType = archive.ar; 923 | path = "libdouble-conversion.a"; 924 | remoteRef = 2DF0FFE82056DD460020B375 /* PBXContainerItemProxy */; 925 | sourceTree = BUILT_PRODUCTS_DIR; 926 | }; 927 | 3DAD3E841DF850E9000B6D8A /* libRCTImage-tvOS.a */ = { 928 | isa = PBXReferenceProxy; 929 | fileType = archive.ar; 930 | path = "libRCTImage-tvOS.a"; 931 | remoteRef = 3DAD3E831DF850E9000B6D8A /* PBXContainerItemProxy */; 932 | sourceTree = BUILT_PRODUCTS_DIR; 933 | }; 934 | 3DAD3E881DF850E9000B6D8A /* libRCTLinking-tvOS.a */ = { 935 | isa = PBXReferenceProxy; 936 | fileType = archive.ar; 937 | path = "libRCTLinking-tvOS.a"; 938 | remoteRef = 3DAD3E871DF850E9000B6D8A /* PBXContainerItemProxy */; 939 | sourceTree = BUILT_PRODUCTS_DIR; 940 | }; 941 | 3DAD3E8C1DF850E9000B6D8A /* libRCTNetwork-tvOS.a */ = { 942 | isa = PBXReferenceProxy; 943 | fileType = archive.ar; 944 | path = "libRCTNetwork-tvOS.a"; 945 | remoteRef = 3DAD3E8B1DF850E9000B6D8A /* PBXContainerItemProxy */; 946 | sourceTree = BUILT_PRODUCTS_DIR; 947 | }; 948 | 3DAD3E901DF850E9000B6D8A /* libRCTSettings-tvOS.a */ = { 949 | isa = PBXReferenceProxy; 950 | fileType = archive.ar; 951 | path = "libRCTSettings-tvOS.a"; 952 | remoteRef = 3DAD3E8F1DF850E9000B6D8A /* PBXContainerItemProxy */; 953 | sourceTree = BUILT_PRODUCTS_DIR; 954 | }; 955 | 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */ = { 956 | isa = PBXReferenceProxy; 957 | fileType = archive.ar; 958 | path = "libRCTText-tvOS.a"; 959 | remoteRef = 3DAD3E931DF850E9000B6D8A /* PBXContainerItemProxy */; 960 | sourceTree = BUILT_PRODUCTS_DIR; 961 | }; 962 | 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */ = { 963 | isa = PBXReferenceProxy; 964 | fileType = archive.ar; 965 | path = "libRCTWebSocket-tvOS.a"; 966 | remoteRef = 3DAD3E981DF850E9000B6D8A /* PBXContainerItemProxy */; 967 | sourceTree = BUILT_PRODUCTS_DIR; 968 | }; 969 | 3DAD3EA31DF850E9000B6D8A /* libReact.a */ = { 970 | isa = PBXReferenceProxy; 971 | fileType = archive.ar; 972 | path = libReact.a; 973 | remoteRef = 3DAD3EA21DF850E9000B6D8A /* PBXContainerItemProxy */; 974 | sourceTree = BUILT_PRODUCTS_DIR; 975 | }; 976 | 3DAD3EA51DF850E9000B6D8A /* libyoga.a */ = { 977 | isa = PBXReferenceProxy; 978 | fileType = archive.ar; 979 | path = libyoga.a; 980 | remoteRef = 3DAD3EA41DF850E9000B6D8A /* PBXContainerItemProxy */; 981 | sourceTree = BUILT_PRODUCTS_DIR; 982 | }; 983 | 3DAD3EA71DF850E9000B6D8A /* libyoga.a */ = { 984 | isa = PBXReferenceProxy; 985 | fileType = archive.ar; 986 | path = libyoga.a; 987 | remoteRef = 3DAD3EA61DF850E9000B6D8A /* PBXContainerItemProxy */; 988 | sourceTree = BUILT_PRODUCTS_DIR; 989 | }; 990 | 3DAD3EA91DF850E9000B6D8A /* libcxxreact.a */ = { 991 | isa = PBXReferenceProxy; 992 | fileType = archive.ar; 993 | path = libcxxreact.a; 994 | remoteRef = 3DAD3EA81DF850E9000B6D8A /* PBXContainerItemProxy */; 995 | sourceTree = BUILT_PRODUCTS_DIR; 996 | }; 997 | 3DAD3EAB1DF850E9000B6D8A /* libcxxreact.a */ = { 998 | isa = PBXReferenceProxy; 999 | fileType = archive.ar; 1000 | path = libcxxreact.a; 1001 | remoteRef = 3DAD3EAA1DF850E9000B6D8A /* PBXContainerItemProxy */; 1002 | sourceTree = BUILT_PRODUCTS_DIR; 1003 | }; 1004 | 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 1005 | isa = PBXReferenceProxy; 1006 | fileType = archive.ar; 1007 | path = libRCTAnimation.a; 1008 | remoteRef = 5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 1009 | sourceTree = BUILT_PRODUCTS_DIR; 1010 | }; 1011 | 5E9157351DD0AC6500FF2AA8 /* libRCTAnimation.a */ = { 1012 | isa = PBXReferenceProxy; 1013 | fileType = archive.ar; 1014 | path = libRCTAnimation.a; 1015 | remoteRef = 5E9157341DD0AC6500FF2AA8 /* PBXContainerItemProxy */; 1016 | sourceTree = BUILT_PRODUCTS_DIR; 1017 | }; 1018 | 78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = { 1019 | isa = PBXReferenceProxy; 1020 | fileType = archive.ar; 1021 | path = libRCTLinking.a; 1022 | remoteRef = 78C398B81ACF4ADC00677621 /* PBXContainerItemProxy */; 1023 | sourceTree = BUILT_PRODUCTS_DIR; 1024 | }; 1025 | 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { 1026 | isa = PBXReferenceProxy; 1027 | fileType = archive.ar; 1028 | path = libRCTText.a; 1029 | remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; 1030 | sourceTree = BUILT_PRODUCTS_DIR; 1031 | }; 1032 | ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */ = { 1033 | isa = PBXReferenceProxy; 1034 | fileType = archive.ar; 1035 | path = libRCTBlob.a; 1036 | remoteRef = ADBDB9261DFEBF0700ED6528 /* PBXContainerItemProxy */; 1037 | sourceTree = BUILT_PRODUCTS_DIR; 1038 | }; 1039 | B30B3B0322383531001CD650 /* libjsi.a */ = { 1040 | isa = PBXReferenceProxy; 1041 | fileType = archive.ar; 1042 | path = libjsi.a; 1043 | remoteRef = B30B3B0222383531001CD650 /* PBXContainerItemProxy */; 1044 | sourceTree = BUILT_PRODUCTS_DIR; 1045 | }; 1046 | B30B3B0522383531001CD650 /* libjsiexecutor.a */ = { 1047 | isa = PBXReferenceProxy; 1048 | fileType = archive.ar; 1049 | path = libjsiexecutor.a; 1050 | remoteRef = B30B3B0422383531001CD650 /* PBXContainerItemProxy */; 1051 | sourceTree = BUILT_PRODUCTS_DIR; 1052 | }; 1053 | B30B3B0722383531001CD650 /* libjsi-tvOS.a */ = { 1054 | isa = PBXReferenceProxy; 1055 | fileType = archive.ar; 1056 | path = "libjsi-tvOS.a"; 1057 | remoteRef = B30B3B0622383531001CD650 /* PBXContainerItemProxy */; 1058 | sourceTree = BUILT_PRODUCTS_DIR; 1059 | }; 1060 | B30B3B0922383531001CD650 /* libjsiexecutor-tvOS.a */ = { 1061 | isa = PBXReferenceProxy; 1062 | fileType = archive.ar; 1063 | path = "libjsiexecutor-tvOS.a"; 1064 | remoteRef = B30B3B0822383531001CD650 /* PBXContainerItemProxy */; 1065 | sourceTree = BUILT_PRODUCTS_DIR; 1066 | }; 1067 | B30B3B0C22383531001CD650 /* libRNSelectableText.a */ = { 1068 | isa = PBXReferenceProxy; 1069 | fileType = archive.ar; 1070 | path = libRNSelectableText.a; 1071 | remoteRef = B30B3B0B22383531001CD650 /* PBXContainerItemProxy */; 1072 | sourceTree = BUILT_PRODUCTS_DIR; 1073 | }; 1074 | /* End PBXReferenceProxy section */ 1075 | 1076 | /* Begin PBXResourcesBuildPhase section */ 1077 | 00E356EC1AD99517003FC87E /* Resources */ = { 1078 | isa = PBXResourcesBuildPhase; 1079 | buildActionMask = 2147483647; 1080 | files = ( 1081 | ); 1082 | runOnlyForDeploymentPostprocessing = 0; 1083 | }; 1084 | 13B07F8E1A680F5B00A75B9A /* Resources */ = { 1085 | isa = PBXResourcesBuildPhase; 1086 | buildActionMask = 2147483647; 1087 | files = ( 1088 | 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 1089 | 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, 1090 | ); 1091 | runOnlyForDeploymentPostprocessing = 0; 1092 | }; 1093 | 2D02E4791E0B4A5D006451C7 /* Resources */ = { 1094 | isa = PBXResourcesBuildPhase; 1095 | buildActionMask = 2147483647; 1096 | files = ( 1097 | 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */, 1098 | ); 1099 | runOnlyForDeploymentPostprocessing = 0; 1100 | }; 1101 | 2D02E48E1E0B4A5D006451C7 /* Resources */ = { 1102 | isa = PBXResourcesBuildPhase; 1103 | buildActionMask = 2147483647; 1104 | files = ( 1105 | ); 1106 | runOnlyForDeploymentPostprocessing = 0; 1107 | }; 1108 | /* End PBXResourcesBuildPhase section */ 1109 | 1110 | /* Begin PBXShellScriptBuildPhase section */ 1111 | 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = { 1112 | isa = PBXShellScriptBuildPhase; 1113 | buildActionMask = 2147483647; 1114 | files = ( 1115 | ); 1116 | inputPaths = ( 1117 | ); 1118 | name = "Bundle React Native code and images"; 1119 | outputPaths = ( 1120 | ); 1121 | runOnlyForDeploymentPostprocessing = 0; 1122 | shellPath = /bin/sh; 1123 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1124 | }; 1125 | 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { 1126 | isa = PBXShellScriptBuildPhase; 1127 | buildActionMask = 2147483647; 1128 | files = ( 1129 | ); 1130 | inputPaths = ( 1131 | ); 1132 | name = "Bundle React Native Code And Images"; 1133 | outputPaths = ( 1134 | ); 1135 | runOnlyForDeploymentPostprocessing = 0; 1136 | shellPath = /bin/sh; 1137 | shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; 1138 | }; 1139 | /* End PBXShellScriptBuildPhase section */ 1140 | 1141 | /* Begin PBXSourcesBuildPhase section */ 1142 | 00E356EA1AD99517003FC87E /* Sources */ = { 1143 | isa = PBXSourcesBuildPhase; 1144 | buildActionMask = 2147483647; 1145 | files = ( 1146 | 00E356F31AD99517003FC87E /* DemoTests.m in Sources */, 1147 | ); 1148 | runOnlyForDeploymentPostprocessing = 0; 1149 | }; 1150 | 13B07F871A680F5B00A75B9A /* Sources */ = { 1151 | isa = PBXSourcesBuildPhase; 1152 | buildActionMask = 2147483647; 1153 | files = ( 1154 | 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, 1155 | 13B07FC11A68108700A75B9A /* main.m in Sources */, 1156 | ); 1157 | runOnlyForDeploymentPostprocessing = 0; 1158 | }; 1159 | 2D02E4771E0B4A5D006451C7 /* Sources */ = { 1160 | isa = PBXSourcesBuildPhase; 1161 | buildActionMask = 2147483647; 1162 | files = ( 1163 | 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */, 1164 | 2D02E4BC1E0B4A80006451C7 /* AppDelegate.m in Sources */, 1165 | ); 1166 | runOnlyForDeploymentPostprocessing = 0; 1167 | }; 1168 | 2D02E48C1E0B4A5D006451C7 /* Sources */ = { 1169 | isa = PBXSourcesBuildPhase; 1170 | buildActionMask = 2147483647; 1171 | files = ( 1172 | 2DCD954D1E0B4F2C00145EB5 /* DemoTests.m in Sources */, 1173 | ); 1174 | runOnlyForDeploymentPostprocessing = 0; 1175 | }; 1176 | /* End PBXSourcesBuildPhase section */ 1177 | 1178 | /* Begin PBXTargetDependency section */ 1179 | 00E356F51AD99517003FC87E /* PBXTargetDependency */ = { 1180 | isa = PBXTargetDependency; 1181 | target = 13B07F861A680F5B00A75B9A /* Demo */; 1182 | targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */; 1183 | }; 1184 | 2D02E4921E0B4A5D006451C7 /* PBXTargetDependency */ = { 1185 | isa = PBXTargetDependency; 1186 | target = 2D02E47A1E0B4A5D006451C7 /* Demo-tvOS */; 1187 | targetProxy = 2D02E4911E0B4A5D006451C7 /* PBXContainerItemProxy */; 1188 | }; 1189 | /* End PBXTargetDependency section */ 1190 | 1191 | /* Begin PBXVariantGroup section */ 1192 | 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { 1193 | isa = PBXVariantGroup; 1194 | children = ( 1195 | 13B07FB21A68108700A75B9A /* Base */, 1196 | ); 1197 | name = LaunchScreen.xib; 1198 | path = Demo; 1199 | sourceTree = ""; 1200 | }; 1201 | /* End PBXVariantGroup section */ 1202 | 1203 | /* Begin XCBuildConfiguration section */ 1204 | 00E356F61AD99517003FC87E /* Debug */ = { 1205 | isa = XCBuildConfiguration; 1206 | buildSettings = { 1207 | BUNDLE_LOADER = "$(TEST_HOST)"; 1208 | GCC_PREPROCESSOR_DEFINITIONS = ( 1209 | "DEBUG=1", 1210 | "$(inherited)", 1211 | ); 1212 | INFOPLIST_FILE = DemoTests/Info.plist; 1213 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1214 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1215 | OTHER_LDFLAGS = ( 1216 | "-ObjC", 1217 | "-lc++", 1218 | ); 1219 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1220 | PRODUCT_NAME = "$(TARGET_NAME)"; 1221 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Demo.app/Demo"; 1222 | }; 1223 | name = Debug; 1224 | }; 1225 | 00E356F71AD99517003FC87E /* Release */ = { 1226 | isa = XCBuildConfiguration; 1227 | buildSettings = { 1228 | BUNDLE_LOADER = "$(TEST_HOST)"; 1229 | COPY_PHASE_STRIP = NO; 1230 | INFOPLIST_FILE = DemoTests/Info.plist; 1231 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1232 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1233 | OTHER_LDFLAGS = ( 1234 | "-ObjC", 1235 | "-lc++", 1236 | ); 1237 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1238 | PRODUCT_NAME = "$(TARGET_NAME)"; 1239 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Demo.app/Demo"; 1240 | }; 1241 | name = Release; 1242 | }; 1243 | 13B07F941A680F5B00A75B9A /* Debug */ = { 1244 | isa = XCBuildConfiguration; 1245 | buildSettings = { 1246 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1247 | CURRENT_PROJECT_VERSION = 1; 1248 | DEAD_CODE_STRIPPING = NO; 1249 | INFOPLIST_FILE = Demo/Info.plist; 1250 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1251 | OTHER_LDFLAGS = ( 1252 | "$(inherited)", 1253 | "-ObjC", 1254 | "-lc++", 1255 | ); 1256 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1257 | PRODUCT_NAME = Demo; 1258 | VERSIONING_SYSTEM = "apple-generic"; 1259 | }; 1260 | name = Debug; 1261 | }; 1262 | 13B07F951A680F5B00A75B9A /* Release */ = { 1263 | isa = XCBuildConfiguration; 1264 | buildSettings = { 1265 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 1266 | CURRENT_PROJECT_VERSION = 1; 1267 | INFOPLIST_FILE = Demo/Info.plist; 1268 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1269 | OTHER_LDFLAGS = ( 1270 | "$(inherited)", 1271 | "-ObjC", 1272 | "-lc++", 1273 | ); 1274 | PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)"; 1275 | PRODUCT_NAME = Demo; 1276 | VERSIONING_SYSTEM = "apple-generic"; 1277 | }; 1278 | name = Release; 1279 | }; 1280 | 2D02E4971E0B4A5E006451C7 /* Debug */ = { 1281 | isa = XCBuildConfiguration; 1282 | buildSettings = { 1283 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1284 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1285 | CLANG_ANALYZER_NONNULL = YES; 1286 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1287 | CLANG_WARN_INFINITE_RECURSION = YES; 1288 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1289 | DEBUG_INFORMATION_FORMAT = dwarf; 1290 | ENABLE_TESTABILITY = YES; 1291 | GCC_NO_COMMON_BLOCKS = YES; 1292 | INFOPLIST_FILE = "Demo-tvOS/Info.plist"; 1293 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1294 | OTHER_LDFLAGS = ( 1295 | "-ObjC", 1296 | "-lc++", 1297 | ); 1298 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Demo-tvOS"; 1299 | PRODUCT_NAME = "$(TARGET_NAME)"; 1300 | SDKROOT = appletvos; 1301 | TARGETED_DEVICE_FAMILY = 3; 1302 | TVOS_DEPLOYMENT_TARGET = 9.2; 1303 | }; 1304 | name = Debug; 1305 | }; 1306 | 2D02E4981E0B4A5E006451C7 /* Release */ = { 1307 | isa = XCBuildConfiguration; 1308 | buildSettings = { 1309 | ASSETCATALOG_COMPILER_APPICON_NAME = "App Icon & Top Shelf Image"; 1310 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 1311 | CLANG_ANALYZER_NONNULL = YES; 1312 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1313 | CLANG_WARN_INFINITE_RECURSION = YES; 1314 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1315 | COPY_PHASE_STRIP = NO; 1316 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1317 | GCC_NO_COMMON_BLOCKS = YES; 1318 | INFOPLIST_FILE = "Demo-tvOS/Info.plist"; 1319 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 1320 | OTHER_LDFLAGS = ( 1321 | "-ObjC", 1322 | "-lc++", 1323 | ); 1324 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Demo-tvOS"; 1325 | PRODUCT_NAME = "$(TARGET_NAME)"; 1326 | SDKROOT = appletvos; 1327 | TARGETED_DEVICE_FAMILY = 3; 1328 | TVOS_DEPLOYMENT_TARGET = 9.2; 1329 | }; 1330 | name = Release; 1331 | }; 1332 | 2D02E4991E0B4A5E006451C7 /* Debug */ = { 1333 | isa = XCBuildConfiguration; 1334 | buildSettings = { 1335 | BUNDLE_LOADER = "$(TEST_HOST)"; 1336 | CLANG_ANALYZER_NONNULL = YES; 1337 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1338 | CLANG_WARN_INFINITE_RECURSION = YES; 1339 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1340 | DEBUG_INFORMATION_FORMAT = dwarf; 1341 | ENABLE_TESTABILITY = YES; 1342 | GCC_NO_COMMON_BLOCKS = YES; 1343 | INFOPLIST_FILE = "Demo-tvOSTests/Info.plist"; 1344 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1345 | OTHER_LDFLAGS = ( 1346 | "-ObjC", 1347 | "-lc++", 1348 | ); 1349 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Demo-tvOSTests"; 1350 | PRODUCT_NAME = "$(TARGET_NAME)"; 1351 | SDKROOT = appletvos; 1352 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Demo-tvOS.app/Demo-tvOS"; 1353 | TVOS_DEPLOYMENT_TARGET = 10.1; 1354 | }; 1355 | name = Debug; 1356 | }; 1357 | 2D02E49A1E0B4A5E006451C7 /* Release */ = { 1358 | isa = XCBuildConfiguration; 1359 | buildSettings = { 1360 | BUNDLE_LOADER = "$(TEST_HOST)"; 1361 | CLANG_ANALYZER_NONNULL = YES; 1362 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 1363 | CLANG_WARN_INFINITE_RECURSION = YES; 1364 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1365 | COPY_PHASE_STRIP = NO; 1366 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 1367 | GCC_NO_COMMON_BLOCKS = YES; 1368 | INFOPLIST_FILE = "Demo-tvOSTests/Info.plist"; 1369 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 1370 | OTHER_LDFLAGS = ( 1371 | "-ObjC", 1372 | "-lc++", 1373 | ); 1374 | PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.Demo-tvOSTests"; 1375 | PRODUCT_NAME = "$(TARGET_NAME)"; 1376 | SDKROOT = appletvos; 1377 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Demo-tvOS.app/Demo-tvOS"; 1378 | TVOS_DEPLOYMENT_TARGET = 10.1; 1379 | }; 1380 | name = Release; 1381 | }; 1382 | 83CBBA201A601CBA00E9B192 /* Debug */ = { 1383 | isa = XCBuildConfiguration; 1384 | buildSettings = { 1385 | ALWAYS_SEARCH_USER_PATHS = NO; 1386 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1387 | CLANG_CXX_LIBRARY = "libc++"; 1388 | CLANG_ENABLE_MODULES = YES; 1389 | CLANG_ENABLE_OBJC_ARC = YES; 1390 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 1391 | CLANG_WARN_BOOL_CONVERSION = YES; 1392 | CLANG_WARN_COMMA = YES; 1393 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1394 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 1395 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1396 | CLANG_WARN_EMPTY_BODY = YES; 1397 | CLANG_WARN_ENUM_CONVERSION = YES; 1398 | CLANG_WARN_INFINITE_RECURSION = YES; 1399 | CLANG_WARN_INT_CONVERSION = YES; 1400 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 1401 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 1402 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 1403 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1404 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 1405 | CLANG_WARN_STRICT_PROTOTYPES = YES; 1406 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1407 | CLANG_WARN_UNREACHABLE_CODE = YES; 1408 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1409 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1410 | COPY_PHASE_STRIP = NO; 1411 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1412 | ENABLE_TESTABILITY = YES; 1413 | GCC_C_LANGUAGE_STANDARD = gnu99; 1414 | GCC_DYNAMIC_NO_PIC = NO; 1415 | GCC_NO_COMMON_BLOCKS = YES; 1416 | GCC_OPTIMIZATION_LEVEL = 0; 1417 | GCC_PREPROCESSOR_DEFINITIONS = ( 1418 | "DEBUG=1", 1419 | "$(inherited)", 1420 | ); 1421 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 1422 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1423 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1424 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1425 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1426 | GCC_WARN_UNUSED_FUNCTION = YES; 1427 | GCC_WARN_UNUSED_VARIABLE = YES; 1428 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1429 | MTL_ENABLE_DEBUG_INFO = YES; 1430 | ONLY_ACTIVE_ARCH = YES; 1431 | SDKROOT = iphoneos; 1432 | }; 1433 | name = Debug; 1434 | }; 1435 | 83CBBA211A601CBA00E9B192 /* Release */ = { 1436 | isa = XCBuildConfiguration; 1437 | buildSettings = { 1438 | ALWAYS_SEARCH_USER_PATHS = NO; 1439 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 1440 | CLANG_CXX_LIBRARY = "libc++"; 1441 | CLANG_ENABLE_MODULES = YES; 1442 | CLANG_ENABLE_OBJC_ARC = YES; 1443 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 1444 | CLANG_WARN_BOOL_CONVERSION = YES; 1445 | CLANG_WARN_COMMA = YES; 1446 | CLANG_WARN_CONSTANT_CONVERSION = YES; 1447 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 1448 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 1449 | CLANG_WARN_EMPTY_BODY = YES; 1450 | CLANG_WARN_ENUM_CONVERSION = YES; 1451 | CLANG_WARN_INFINITE_RECURSION = YES; 1452 | CLANG_WARN_INT_CONVERSION = YES; 1453 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 1454 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 1455 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 1456 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 1457 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 1458 | CLANG_WARN_STRICT_PROTOTYPES = YES; 1459 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 1460 | CLANG_WARN_UNREACHABLE_CODE = YES; 1461 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 1462 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 1463 | COPY_PHASE_STRIP = YES; 1464 | ENABLE_NS_ASSERTIONS = NO; 1465 | ENABLE_STRICT_OBJC_MSGSEND = YES; 1466 | GCC_C_LANGUAGE_STANDARD = gnu99; 1467 | GCC_NO_COMMON_BLOCKS = YES; 1468 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 1469 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 1470 | GCC_WARN_UNDECLARED_SELECTOR = YES; 1471 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 1472 | GCC_WARN_UNUSED_FUNCTION = YES; 1473 | GCC_WARN_UNUSED_VARIABLE = YES; 1474 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 1475 | MTL_ENABLE_DEBUG_INFO = NO; 1476 | SDKROOT = iphoneos; 1477 | VALIDATE_PRODUCT = YES; 1478 | }; 1479 | name = Release; 1480 | }; 1481 | /* End XCBuildConfiguration section */ 1482 | 1483 | /* Begin XCConfigurationList section */ 1484 | 00E357021AD99517003FC87E /* Build configuration list for PBXNativeTarget "DemoTests" */ = { 1485 | isa = XCConfigurationList; 1486 | buildConfigurations = ( 1487 | 00E356F61AD99517003FC87E /* Debug */, 1488 | 00E356F71AD99517003FC87E /* Release */, 1489 | ); 1490 | defaultConfigurationIsVisible = 0; 1491 | defaultConfigurationName = Release; 1492 | }; 1493 | 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "Demo" */ = { 1494 | isa = XCConfigurationList; 1495 | buildConfigurations = ( 1496 | 13B07F941A680F5B00A75B9A /* Debug */, 1497 | 13B07F951A680F5B00A75B9A /* Release */, 1498 | ); 1499 | defaultConfigurationIsVisible = 0; 1500 | defaultConfigurationName = Release; 1501 | }; 1502 | 2D02E4BA1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Demo-tvOS" */ = { 1503 | isa = XCConfigurationList; 1504 | buildConfigurations = ( 1505 | 2D02E4971E0B4A5E006451C7 /* Debug */, 1506 | 2D02E4981E0B4A5E006451C7 /* Release */, 1507 | ); 1508 | defaultConfigurationIsVisible = 0; 1509 | defaultConfigurationName = Release; 1510 | }; 1511 | 2D02E4BB1E0B4A5E006451C7 /* Build configuration list for PBXNativeTarget "Demo-tvOSTests" */ = { 1512 | isa = XCConfigurationList; 1513 | buildConfigurations = ( 1514 | 2D02E4991E0B4A5E006451C7 /* Debug */, 1515 | 2D02E49A1E0B4A5E006451C7 /* Release */, 1516 | ); 1517 | defaultConfigurationIsVisible = 0; 1518 | defaultConfigurationName = Release; 1519 | }; 1520 | 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "Demo" */ = { 1521 | isa = XCConfigurationList; 1522 | buildConfigurations = ( 1523 | 83CBBA201A601CBA00E9B192 /* Debug */, 1524 | 83CBBA211A601CBA00E9B192 /* Release */, 1525 | ); 1526 | defaultConfigurationIsVisible = 0; 1527 | defaultConfigurationName = Release; 1528 | }; 1529 | /* End XCConfigurationList section */ 1530 | }; 1531 | rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; 1532 | } 1533 | -------------------------------------------------------------------------------- /Demo/ios/Demo.xcodeproj/xcshareddata/xcschemes/Demo-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 | -------------------------------------------------------------------------------- /Demo/ios/Demo.xcodeproj/xcshareddata/xcschemes/Demo.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 | -------------------------------------------------------------------------------- /Demo/ios/Demo/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 | 10 | @interface AppDelegate : UIResponder 11 | 12 | @property (nonatomic, strong) UIWindow *window; 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /Demo/ios/Demo/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 | 13 | @implementation AppDelegate 14 | 15 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 16 | { 17 | NSURL *jsCodeLocation; 18 | 19 | jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil]; 20 | 21 | RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation 22 | moduleName:@"Demo" 23 | initialProperties:nil 24 | launchOptions:launchOptions]; 25 | rootView.backgroundColor = [UIColor blackColor]; 26 | 27 | self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 28 | UIViewController *rootViewController = [UIViewController new]; 29 | rootViewController.view = rootView; 30 | self.window.rootViewController = rootViewController; 31 | [self.window makeKeyAndVisible]; 32 | return YES; 33 | } 34 | 35 | @end 36 | -------------------------------------------------------------------------------- /Demo/ios/Demo/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 | -------------------------------------------------------------------------------- /Demo/ios/Demo/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 | } -------------------------------------------------------------------------------- /Demo/ios/Demo/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /Demo/ios/Demo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | Demo 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 | NSLocationWhenInUseUsageDescription 28 | 29 | UILaunchStoryboardName 30 | LaunchScreen 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UIViewControllerBasedStatusBarAppearance 42 | 43 | NSLocationWhenInUseUsageDescription 44 | 45 | NSAppTransportSecurity 46 | 47 | 48 | NSAllowsArbitraryLoads 49 | 50 | NSExceptionDomains 51 | 52 | localhost 53 | 54 | NSExceptionAllowsInsecureHTTPLoads 55 | 56 | 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /Demo/ios/Demo/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 | -------------------------------------------------------------------------------- /Demo/ios/DemoTests/DemoTests.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 DemoTests : XCTestCase 18 | 19 | @end 20 | 21 | @implementation DemoTests 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 | -------------------------------------------------------------------------------- /Demo/ios/DemoTests/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 | -------------------------------------------------------------------------------- /Demo/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 | }; -------------------------------------------------------------------------------- /Demo/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Demo", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "node node_modules/react-native/local-cli/cli.js start", 7 | "postinstall": "patch-package", 8 | "test": "jest" 9 | }, 10 | "dependencies": { 11 | "react": "16.6.3", 12 | "react-native": "^0.59.0" 13 | }, 14 | "devDependencies": { 15 | "babel-core": "^7.0.0-bridge.0", 16 | "babel-jest": "24.4.0", 17 | "jest": "24.4.0", 18 | "metro-react-native-babel-preset": "0.53.0", 19 | "patch-package": "^6.0.5", 20 | "react-test-renderer": "16.6.3" 21 | }, 22 | "jest": { 23 | "preset": "react-native" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Demo/patches/react-native+0.59.0.patch: -------------------------------------------------------------------------------- 1 | diff --git a/node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js b/node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js 2 | index 8afedd6..c69cc92 100644 3 | --- a/node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js 4 | +++ b/node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js 5 | @@ -4083,6 +4083,7 @@ function getChildHostContext(parentHostContext, type, rootContainerInstance) { 6 | type === "RCTMultilineTextInputView" || // iOS 7 | type === "RCTSinglelineTextInputView" || // iOS 8 | type === "RCTText" || 9 | + type === "RNSelectableText" || 10 | type === "RCTVirtualText"; 11 | 12 | if (prevIsInAParentText !== isInAParentText) { 13 | diff --git a/node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-prod.js b/node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-prod.js 14 | index ef16155..73cd962 100644 15 | --- a/node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-prod.js 16 | +++ b/node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-prod.js 17 | @@ -3057,6 +3057,7 @@ function pushHostContext(fiber) { 18 | "RCTMultilineTextInputView" === nextContext || 19 | "RCTSinglelineTextInputView" === nextContext || 20 | "RCTText" === nextContext || 21 | + "RNSelectableText" === nextContext || 22 | "RCTVirtualText" === nextContext; 23 | nextContext = 24 | context.isInAParentText !== nextContext 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Astrocoders 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # react-native-selectable-text 3 | 4 | ## Demo 5 | 6 | ### Android 7 | 8 | 9 | 10 | ### iOS 11 | 12 | 13 | 14 | ## Usage 15 | 16 | ```javascript 17 | import { SelectableText } from "@astrocoders/react-native-selectable-text"; 18 | 19 | // Use normally, it is a drop-in replacement for react-native/Text 20 | {}} 30 | value="I crave star damage" 31 | />; 32 | ``` 33 | 34 | ## Getting started 35 | 36 | `$ npm install @astrocoders/react-native-selectable-text --save` 37 | 38 | ### Mostly automatic installation 39 | 40 | `$ react-native link @astrocoders/react-native-selectable-text` 41 | 42 | ### Manual installation 43 | 44 | #### iOS - Binary Linking (Alternative 1) 45 | 46 | 1. In XCode, in the project navigator, right click `Libraries` ➜ `Add Files to [your project's name]` 47 | 2. Go to `node_modules` ➜ `@astrocoders/react-native-selectable-text` and add `RNSelectableText.xcodeproj` 48 | 3. In XCode, in the project navigator, select your project. Add `libRNSelectableText.a` to your project's `Build Phases` ➜ `Link Binary With Libraries` 49 | 4. Run your project (`Cmd+R`)< 50 | 51 | #### iOS - Pods (Alternative 2) 52 | 53 | 1. Add `pod 'RNSelectableText', :path => '../node_modules/@astrocoders/react-native-selectable-text/ios/RNSelectableText.podspec'` to your projects podfile 54 | 2. run `pod install` 55 | 56 | #### Android 57 | 58 | 1. Open up `android/app/src/main/java/[...]/MainActivity.java` 59 | 60 | - Add `import com.astrocoders.selectabletext.RNSelectableTextPackage;` to the imports at the top of the file 61 | - Add `new RNSelectableTextPackage()` to the list returned by the `getPackages()` method 62 | 63 | 2. Append the following lines to `android/settings.gradle`: 64 | ``` 65 | include ':react-native-selectable-text' 66 | project(':react-native-selectable-text').projectDir = new File(rootProject.projectDir, '../node_modules/@astrocoders/react-native-selectable-text/android') 67 | ``` 68 | 3. Insert the following lines inside the dependencies block in `android/app/build.gradle`: 69 | ``` 70 | compile project(':react-native-selectable-text') 71 | ``` 72 | 73 | ## Props 74 | | name | description | type | default | 75 | |--|--|--|--| 76 | | **value** | text content | string | "" | 77 | | **onSelection** | Called when the user taps in a item of the selection menu | ({ eventType: string, content: string, selectionStart: int, selectionEnd: int }) => void | () => {} | 78 | | **menuItems** | context menu items | array(string) | [] | 79 | | **style** | additional styles to be applied to text | Object | null | 80 | | **highlights** | array of text ranges that should be highlighted with an optional id | array({ id: string, start: int, end: int }) | [] | 81 | | **highlightColor** | highlight color |string | null | 82 | | **onHighlightPress** | called when the user taps the highlight |(id: string) => void | () => {} | 83 | | **appendToChildren** | element to be added in the last line of text | ReactNode | null | 84 | | **TextComponent** | Text component used to render `value` | ReactNode | | 85 | | **textValueProp** | text value prop for TextComponent. Should be used when passing TextComponent. Defaults to 'children' which works for | string | 'children' | 86 | | **textComponentProps** | additional props to pass to TextComponent | object | null | 87 | 88 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | buildscript { 3 | repositories { 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:1.3.1' 9 | } 10 | } 11 | 12 | apply plugin: 'com.android.library' 13 | 14 | android { 15 | compileSdkVersion 23 16 | buildToolsVersion "23.0.1" 17 | 18 | defaultConfig { 19 | minSdkVersion 16 20 | targetSdkVersion 22 21 | versionCode 1 22 | versionName "1.0" 23 | } 24 | lintOptions { 25 | abortOnError false 26 | } 27 | } 28 | 29 | repositories { 30 | mavenCentral() 31 | } 32 | 33 | dependencies { 34 | compile 'com.facebook.react:react-native:+' 35 | } 36 | -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Astrocoders/react-native-selectable-text/7ab5e75a2b0f8e02bf21964932dee76dca6b27da/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Tue Mar 19 23:39:12 BRT 2019 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip 7 | -------------------------------------------------------------------------------- /android/gradlew: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | ############################################################################## 4 | ## 5 | ## Gradle start up script for UN*X 6 | ## 7 | ############################################################################## 8 | 9 | # Attempt to set APP_HOME 10 | # Resolve links: $0 may be a link 11 | PRG="$0" 12 | # Need this for relative symlinks. 13 | while [ -h "$PRG" ] ; do 14 | ls=`ls -ld "$PRG"` 15 | link=`expr "$ls" : '.*-> \(.*\)$'` 16 | if expr "$link" : '/.*' > /dev/null; then 17 | PRG="$link" 18 | else 19 | PRG=`dirname "$PRG"`"/$link" 20 | fi 21 | done 22 | SAVED="`pwd`" 23 | cd "`dirname \"$PRG\"`/" >/dev/null 24 | APP_HOME="`pwd -P`" 25 | cd "$SAVED" >/dev/null 26 | 27 | APP_NAME="Gradle" 28 | APP_BASE_NAME=`basename "$0"` 29 | 30 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 31 | DEFAULT_JVM_OPTS="" 32 | 33 | # Use the maximum available, or set MAX_FD != -1 to use that value. 34 | MAX_FD="maximum" 35 | 36 | warn () { 37 | echo "$*" 38 | } 39 | 40 | die () { 41 | echo 42 | echo "$*" 43 | echo 44 | exit 1 45 | } 46 | 47 | # OS specific support (must be 'true' or 'false'). 48 | cygwin=false 49 | msys=false 50 | darwin=false 51 | nonstop=false 52 | case "`uname`" in 53 | CYGWIN* ) 54 | cygwin=true 55 | ;; 56 | Darwin* ) 57 | darwin=true 58 | ;; 59 | MINGW* ) 60 | msys=true 61 | ;; 62 | NONSTOP* ) 63 | nonstop=true 64 | ;; 65 | esac 66 | 67 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar 68 | 69 | # Determine the Java command to use to start the JVM. 70 | if [ -n "$JAVA_HOME" ] ; then 71 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then 72 | # IBM's JDK on AIX uses strange locations for the executables 73 | JAVACMD="$JAVA_HOME/jre/sh/java" 74 | else 75 | JAVACMD="$JAVA_HOME/bin/java" 76 | fi 77 | if [ ! -x "$JAVACMD" ] ; then 78 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME 79 | 80 | Please set the JAVA_HOME variable in your environment to match the 81 | location of your Java installation." 82 | fi 83 | else 84 | JAVACMD="java" 85 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 86 | 87 | Please set the JAVA_HOME variable in your environment to match the 88 | location of your Java installation." 89 | fi 90 | 91 | # Increase the maximum file descriptors if we can. 92 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then 93 | MAX_FD_LIMIT=`ulimit -H -n` 94 | if [ $? -eq 0 ] ; then 95 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then 96 | MAX_FD="$MAX_FD_LIMIT" 97 | fi 98 | ulimit -n $MAX_FD 99 | if [ $? -ne 0 ] ; then 100 | warn "Could not set maximum file descriptor limit: $MAX_FD" 101 | fi 102 | else 103 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" 104 | fi 105 | fi 106 | 107 | # For Darwin, add options to specify how the application appears in the dock 108 | if $darwin; then 109 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" 110 | fi 111 | 112 | # For Cygwin, switch paths to Windows format before running java 113 | if $cygwin ; then 114 | APP_HOME=`cygpath --path --mixed "$APP_HOME"` 115 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` 116 | JAVACMD=`cygpath --unix "$JAVACMD"` 117 | 118 | # We build the pattern for arguments to be converted via cygpath 119 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` 120 | SEP="" 121 | for dir in $ROOTDIRSRAW ; do 122 | ROOTDIRS="$ROOTDIRS$SEP$dir" 123 | SEP="|" 124 | done 125 | OURCYGPATTERN="(^($ROOTDIRS))" 126 | # Add a user-defined pattern to the cygpath arguments 127 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then 128 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" 129 | fi 130 | # Now convert the arguments - kludge to limit ourselves to /bin/sh 131 | i=0 132 | for arg in "$@" ; do 133 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` 134 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option 135 | 136 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition 137 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` 138 | else 139 | eval `echo args$i`="\"$arg\"" 140 | fi 141 | i=$((i+1)) 142 | done 143 | case $i in 144 | (0) set -- ;; 145 | (1) set -- "$args0" ;; 146 | (2) set -- "$args0" "$args1" ;; 147 | (3) set -- "$args0" "$args1" "$args2" ;; 148 | (4) set -- "$args0" "$args1" "$args2" "$args3" ;; 149 | (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; 150 | (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; 151 | (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; 152 | (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; 153 | (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; 154 | esac 155 | fi 156 | 157 | # Escape application args 158 | save () { 159 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done 160 | echo " " 161 | } 162 | APP_ARGS=$(save "$@") 163 | 164 | # Collect all arguments for the java command, following the shell quoting and substitution rules 165 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" 166 | 167 | # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong 168 | if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then 169 | cd "$(dirname "$0")" 170 | fi 171 | 172 | exec "$JAVACMD" "$@" 173 | -------------------------------------------------------------------------------- /android/gradlew.bat: -------------------------------------------------------------------------------- 1 | @if "%DEBUG%" == "" @echo off 2 | @rem ########################################################################## 3 | @rem 4 | @rem Gradle startup script for Windows 5 | @rem 6 | @rem ########################################################################## 7 | 8 | @rem Set local scope for the variables with windows NT shell 9 | if "%OS%"=="Windows_NT" setlocal 10 | 11 | set DIRNAME=%~dp0 12 | if "%DIRNAME%" == "" set DIRNAME=. 13 | set APP_BASE_NAME=%~n0 14 | set APP_HOME=%DIRNAME% 15 | 16 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. 17 | set DEFAULT_JVM_OPTS= 18 | 19 | @rem Find java.exe 20 | if defined JAVA_HOME goto findJavaFromJavaHome 21 | 22 | set JAVA_EXE=java.exe 23 | %JAVA_EXE% -version >NUL 2>&1 24 | if "%ERRORLEVEL%" == "0" goto init 25 | 26 | echo. 27 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 28 | echo. 29 | echo Please set the JAVA_HOME variable in your environment to match the 30 | echo location of your Java installation. 31 | 32 | goto fail 33 | 34 | :findJavaFromJavaHome 35 | set JAVA_HOME=%JAVA_HOME:"=% 36 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe 37 | 38 | if exist "%JAVA_EXE%" goto init 39 | 40 | echo. 41 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 42 | echo. 43 | echo Please set the JAVA_HOME variable in your environment to match the 44 | echo location of your Java installation. 45 | 46 | goto fail 47 | 48 | :init 49 | @rem Get command-line arguments, handling Windows variants 50 | 51 | if not "%OS%" == "Windows_NT" goto win9xME_args 52 | 53 | :win9xME_args 54 | @rem Slurp the command line arguments. 55 | set CMD_LINE_ARGS= 56 | set _SKIP=2 57 | 58 | :win9xME_args_slurp 59 | if "x%~1" == "x" goto execute 60 | 61 | set CMD_LINE_ARGS=%* 62 | 63 | :execute 64 | @rem Setup the command line 65 | 66 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar 67 | 68 | @rem Execute Gradle 69 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% 70 | 71 | :end 72 | @rem End local scope for the variables with windows NT shell 73 | if "%ERRORLEVEL%"=="0" goto mainEnd 74 | 75 | :fail 76 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of 77 | rem the _cmd.exe /c_ return code! 78 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 79 | exit /b 1 80 | 81 | :mainEnd 82 | if "%OS%"=="Windows_NT" endlocal 83 | 84 | :omega 85 | -------------------------------------------------------------------------------- /android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /android/src/main/java/com/astrocoders/selectabletext/RNSelectableTextManager.java: -------------------------------------------------------------------------------- 1 | package com.astrocoders.selectabletext; 2 | 3 | import android.view.Menu; 4 | import android.view.MenuItem; 5 | import android.view.ActionMode; 6 | import android.view.ActionMode.Callback; 7 | 8 | import java.util.Map; 9 | 10 | import com.facebook.react.bridge.ReactContext; 11 | import com.facebook.react.bridge.ReadableArray; 12 | import com.facebook.react.uimanager.ThemedReactContext; 13 | import com.facebook.react.bridge.Arguments; 14 | import com.facebook.react.bridge.WritableMap; 15 | import com.facebook.react.common.MapBuilder; 16 | import com.facebook.react.uimanager.events.RCTEventEmitter; 17 | 18 | import com.facebook.react.uimanager.annotations.ReactProp; 19 | import com.facebook.react.views.text.ReactTextView; 20 | import com.facebook.react.views.text.ReactTextViewManager; 21 | 22 | import java.util.List; 23 | import java.util.ArrayList; 24 | 25 | 26 | public class RNSelectableTextManager extends ReactTextViewManager { 27 | public static final String REACT_CLASS = "RNSelectableText"; 28 | 29 | 30 | @Override 31 | public String getName() { 32 | return REACT_CLASS; 33 | } 34 | 35 | @Override 36 | public ReactTextView createViewInstance(ThemedReactContext context) { 37 | return new ReactTextView(context); 38 | } 39 | 40 | 41 | @ReactProp(name = "menuItems") 42 | public void setMenuItems(ReactTextView textView, ReadableArray items) { 43 | List result = new ArrayList(items.size()); 44 | for (int i = 0; i < items.size(); i++) { 45 | result.add(items.getString(i)); 46 | } 47 | 48 | registerSelectionListener(result.toArray(new String[items.size()]), textView); 49 | } 50 | 51 | public void registerSelectionListener(final String[] menuItems, final ReactTextView view) { 52 | view.setCustomSelectionActionModeCallback(new Callback() { 53 | @Override 54 | public boolean onPrepareActionMode(ActionMode mode, Menu menu) { 55 | // Called when action mode is first created. The menu supplied 56 | // will be used to generate action buttons for the action mode 57 | // Android Smart Linkify feature pushes extra options into the menu 58 | // and would override the generated menu items 59 | menu.clear(); 60 | for (int i = 0; i < menuItems.length; i++) { 61 | menu.add(0, i, 0, menuItems[i]); 62 | } 63 | return true; 64 | } 65 | 66 | @Override 67 | public boolean onCreateActionMode(ActionMode mode, Menu menu) { 68 | return true; 69 | } 70 | 71 | @Override 72 | public void onDestroyActionMode(ActionMode mode) { 73 | // Called when an action mode is about to be exited and 74 | } 75 | 76 | @Override 77 | public boolean onActionItemClicked(ActionMode mode, MenuItem item) { 78 | int selectionStart = view.getSelectionStart(); 79 | int selectionEnd = view.getSelectionEnd(); 80 | String selectedText = view.getText().toString().substring(selectionStart, selectionEnd); 81 | 82 | // Dispatch event 83 | onSelectNativeEvent(view, menuItems[item.getItemId()], selectedText, selectionStart, selectionEnd); 84 | 85 | mode.finish(); 86 | 87 | return true; 88 | } 89 | 90 | }); 91 | } 92 | 93 | public void onSelectNativeEvent(ReactTextView view, String eventType, String content, int selectionStart, int selectionEnd) { 94 | WritableMap event = Arguments.createMap(); 95 | event.putString("eventType", eventType); 96 | event.putString("content", content); 97 | event.putInt("selectionStart", selectionStart); 98 | event.putInt("selectionEnd", selectionEnd); 99 | 100 | // Dispatch 101 | ReactContext reactContext = (ReactContext) view.getContext(); 102 | reactContext.getJSModule(RCTEventEmitter.class).receiveEvent( 103 | view.getId(), 104 | "topSelection", 105 | event 106 | ); 107 | } 108 | 109 | @Override 110 | public Map getExportedCustomDirectEventTypeConstants() { 111 | return MapBuilder.builder() 112 | .put( 113 | "topSelection", 114 | MapBuilder.of( 115 | "registrationName","onSelection")) 116 | .build(); 117 | } 118 | } 119 | -------------------------------------------------------------------------------- /android/src/main/java/com/astrocoders/selectabletext/RNSelectableTextPackage.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | package com.astrocoders.selectabletext; 4 | 5 | import java.util.Arrays; 6 | import java.util.Collections; 7 | import java.util.List; 8 | 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.react.bridge.NativeModule; 11 | import com.facebook.react.bridge.ReactApplicationContext; 12 | import com.facebook.react.uimanager.ViewManager; 13 | public class RNSelectableTextPackage implements ReactPackage { 14 | @Override 15 | public List createNativeModules(ReactApplicationContext reactContext) { 16 | return Collections.emptyList(); 17 | } 18 | 19 | @Override 20 | public List createViewManagers(ReactApplicationContext reactContext) { 21 | return Arrays.asList( 22 | new RNSelectableTextManager() 23 | ); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- 1 | import React, { ReactNode } from "react"; 2 | import { StyleProp, TextStyle, TextProps } from "react-native"; 3 | 4 | export interface SelectableTextProps { 5 | value?: string; 6 | onSelection?: (args: { 7 | eventType: string; 8 | content: string; 9 | selectionStart: number; 10 | selectionEnd: number; 11 | }) => void; 12 | 13 | menuItems?: string[]; 14 | highlights?: Array<{ id: string; start: number; end: number }>; 15 | highlightColor?: string; 16 | style?: StyleProp; 17 | onHighlightPress?: (id: string) => void; 18 | appendToChildren?: ReactNode; 19 | TextComponent?: ReactNode; 20 | textValueProp?: string; 21 | textComponentProps?: TextProps; 22 | } 23 | 24 | export class SelectableText extends React.Component {} 25 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | export { SelectableText as SelectableText } from './Demo/SelectableText' 2 | -------------------------------------------------------------------------------- /ios/RNSelectableText.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = "RNSelectableText" 3 | s.version = "1.0.0" 4 | s.summary = "RNSelectableText" 5 | s.description = <<-DESC 6 | RNSelectableText 7 | DESC 8 | s.homepage = "https://github.com/Astrocoders/react-native-selectable-text" 9 | s.license = "MIT" 10 | # s.license = { :type => "MIT", :file => "FILE_LICENSE" } 11 | s.author = { "author" => "author@domain.cn" } 12 | s.platform = :ios, "7.0" 13 | s.source = { :git => "https://github.com/author/RNSelectableText.git", :tag => "master" } 14 | s.source_files = "RNSelectableText*.{h,m}" 15 | s.requires_arc = true 16 | 17 | 18 | s.dependency "React" 19 | #s.dependency "others" 20 | 21 | end 22 | -------------------------------------------------------------------------------- /ios/RNSelectableText.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | B30B3B0F22399B3D001CD650 /* RNSelectableTextView.m in Sources */ = {isa = PBXBuildFile; fileRef = B30B3B0E22399B3D001CD650 /* RNSelectableTextView.m */; }; 11 | B3E7B58A1CC2AC0600A0062D /* RNSelectableTextManager.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNSelectableTextManager.m */; }; 12 | /* End PBXBuildFile section */ 13 | 14 | /* Begin PBXCopyFilesBuildPhase section */ 15 | 58B511D91A9E6C8500147676 /* CopyFiles */ = { 16 | isa = PBXCopyFilesBuildPhase; 17 | buildActionMask = 2147483647; 18 | dstPath = "include/$(PRODUCT_NAME)"; 19 | dstSubfolderSpec = 16; 20 | files = ( 21 | ); 22 | runOnlyForDeploymentPostprocessing = 0; 23 | }; 24 | /* End PBXCopyFilesBuildPhase section */ 25 | 26 | /* Begin PBXFileReference section */ 27 | 134814201AA4EA6300B7C361 /* libRNSelectableText.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = libRNSelectableText.a; path = libRNSelectableTextView.a; sourceTree = BUILT_PRODUCTS_DIR; }; 28 | B30B3B0E22399B3D001CD650 /* RNSelectableTextView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNSelectableTextView.m; sourceTree = ""; }; 29 | B30B3B1022399B88001CD650 /* RNSelectableTextView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNSelectableTextView.h; sourceTree = ""; }; 30 | B3E7B5881CC2AC0600A0062D /* RNSelectableTextManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNSelectableTextManager.h; sourceTree = ""; }; 31 | B3E7B5891CC2AC0600A0062D /* RNSelectableTextManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNSelectableTextManager.m; sourceTree = ""; }; 32 | /* End PBXFileReference section */ 33 | 34 | /* Begin PBXFrameworksBuildPhase section */ 35 | 58B511D81A9E6C8500147676 /* Frameworks */ = { 36 | isa = PBXFrameworksBuildPhase; 37 | buildActionMask = 2147483647; 38 | files = ( 39 | ); 40 | runOnlyForDeploymentPostprocessing = 0; 41 | }; 42 | /* End PBXFrameworksBuildPhase section */ 43 | 44 | /* Begin PBXGroup section */ 45 | 134814211AA4EA7D00B7C361 /* Products */ = { 46 | isa = PBXGroup; 47 | children = ( 48 | 134814201AA4EA6300B7C361 /* libRNSelectableText.a */, 49 | ); 50 | name = Products; 51 | sourceTree = ""; 52 | }; 53 | 58B511D21A9E6C8500147676 = { 54 | isa = PBXGroup; 55 | children = ( 56 | B30B3B0E22399B3D001CD650 /* RNSelectableTextView.m */, 57 | B30B3B1022399B88001CD650 /* RNSelectableTextView.h */, 58 | B3E7B5881CC2AC0600A0062D /* RNSelectableTextManager.h */, 59 | B3E7B5891CC2AC0600A0062D /* RNSelectableTextManager.m */, 60 | 134814211AA4EA7D00B7C361 /* Products */, 61 | ); 62 | sourceTree = ""; 63 | }; 64 | /* End PBXGroup section */ 65 | 66 | /* Begin PBXNativeTarget section */ 67 | 58B511DA1A9E6C8500147676 /* RNSelectableTextView */ = { 68 | isa = PBXNativeTarget; 69 | buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNSelectableTextView" */; 70 | buildPhases = ( 71 | 58B511D71A9E6C8500147676 /* Sources */, 72 | 58B511D81A9E6C8500147676 /* Frameworks */, 73 | 58B511D91A9E6C8500147676 /* CopyFiles */, 74 | ); 75 | buildRules = ( 76 | ); 77 | dependencies = ( 78 | ); 79 | name = RNSelectableTextView; 80 | productName = RCTDataManager; 81 | productReference = 134814201AA4EA6300B7C361 /* libRNSelectableText.a */; 82 | productType = "com.apple.product-type.library.static"; 83 | }; 84 | /* End PBXNativeTarget section */ 85 | 86 | /* Begin PBXProject section */ 87 | 58B511D31A9E6C8500147676 /* Project object */ = { 88 | isa = PBXProject; 89 | attributes = { 90 | LastUpgradeCheck = 1010; 91 | ORGANIZATIONNAME = Facebook; 92 | TargetAttributes = { 93 | 58B511DA1A9E6C8500147676 = { 94 | CreatedOnToolsVersion = 6.1.1; 95 | LastSwiftMigration = 1010; 96 | }; 97 | }; 98 | }; 99 | buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNSelectableText" */; 100 | compatibilityVersion = "Xcode 3.2"; 101 | developmentRegion = English; 102 | hasScannedForEncodings = 0; 103 | knownRegions = ( 104 | English, 105 | en, 106 | ); 107 | mainGroup = 58B511D21A9E6C8500147676; 108 | productRefGroup = 58B511D21A9E6C8500147676; 109 | projectDirPath = ""; 110 | projectRoot = ""; 111 | targets = ( 112 | 58B511DA1A9E6C8500147676 /* RNSelectableTextView */, 113 | ); 114 | }; 115 | /* End PBXProject section */ 116 | 117 | /* Begin PBXSourcesBuildPhase section */ 118 | 58B511D71A9E6C8500147676 /* Sources */ = { 119 | isa = PBXSourcesBuildPhase; 120 | buildActionMask = 2147483647; 121 | files = ( 122 | B3E7B58A1CC2AC0600A0062D /* RNSelectableTextManager.m in Sources */, 123 | B30B3B0F22399B3D001CD650 /* RNSelectableTextView.m in Sources */, 124 | ); 125 | runOnlyForDeploymentPostprocessing = 0; 126 | }; 127 | /* End PBXSourcesBuildPhase section */ 128 | 129 | /* Begin XCBuildConfiguration section */ 130 | 58B511ED1A9E6C8500147676 /* Debug */ = { 131 | isa = XCBuildConfiguration; 132 | buildSettings = { 133 | ALWAYS_SEARCH_USER_PATHS = NO; 134 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 135 | CLANG_CXX_LIBRARY = "libc++"; 136 | CLANG_ENABLE_MODULES = YES; 137 | CLANG_ENABLE_OBJC_ARC = YES; 138 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 139 | CLANG_WARN_BOOL_CONVERSION = YES; 140 | CLANG_WARN_COMMA = YES; 141 | CLANG_WARN_CONSTANT_CONVERSION = YES; 142 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 143 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 144 | CLANG_WARN_EMPTY_BODY = YES; 145 | CLANG_WARN_ENUM_CONVERSION = YES; 146 | CLANG_WARN_INFINITE_RECURSION = YES; 147 | CLANG_WARN_INT_CONVERSION = YES; 148 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 149 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 150 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 151 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 152 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 153 | CLANG_WARN_STRICT_PROTOTYPES = YES; 154 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 155 | CLANG_WARN_UNREACHABLE_CODE = YES; 156 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 157 | COPY_PHASE_STRIP = NO; 158 | ENABLE_STRICT_OBJC_MSGSEND = YES; 159 | ENABLE_TESTABILITY = YES; 160 | GCC_C_LANGUAGE_STANDARD = gnu99; 161 | GCC_DYNAMIC_NO_PIC = NO; 162 | GCC_NO_COMMON_BLOCKS = YES; 163 | GCC_OPTIMIZATION_LEVEL = 0; 164 | GCC_PREPROCESSOR_DEFINITIONS = ( 165 | "DEBUG=1", 166 | "$(inherited)", 167 | ); 168 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 169 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 170 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 171 | GCC_WARN_UNDECLARED_SELECTOR = YES; 172 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 173 | GCC_WARN_UNUSED_FUNCTION = YES; 174 | GCC_WARN_UNUSED_VARIABLE = YES; 175 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 176 | MTL_ENABLE_DEBUG_INFO = YES; 177 | ONLY_ACTIVE_ARCH = YES; 178 | SDKROOT = iphoneos; 179 | }; 180 | name = Debug; 181 | }; 182 | 58B511EE1A9E6C8500147676 /* Release */ = { 183 | isa = XCBuildConfiguration; 184 | buildSettings = { 185 | ALWAYS_SEARCH_USER_PATHS = NO; 186 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 187 | CLANG_CXX_LIBRARY = "libc++"; 188 | CLANG_ENABLE_MODULES = YES; 189 | CLANG_ENABLE_OBJC_ARC = YES; 190 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 191 | CLANG_WARN_BOOL_CONVERSION = YES; 192 | CLANG_WARN_COMMA = YES; 193 | CLANG_WARN_CONSTANT_CONVERSION = YES; 194 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 195 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 196 | CLANG_WARN_EMPTY_BODY = YES; 197 | CLANG_WARN_ENUM_CONVERSION = YES; 198 | CLANG_WARN_INFINITE_RECURSION = YES; 199 | CLANG_WARN_INT_CONVERSION = YES; 200 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 201 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 202 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 203 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 204 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 205 | CLANG_WARN_STRICT_PROTOTYPES = YES; 206 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 207 | CLANG_WARN_UNREACHABLE_CODE = YES; 208 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 209 | COPY_PHASE_STRIP = YES; 210 | ENABLE_NS_ASSERTIONS = NO; 211 | ENABLE_STRICT_OBJC_MSGSEND = YES; 212 | GCC_C_LANGUAGE_STANDARD = gnu99; 213 | GCC_NO_COMMON_BLOCKS = YES; 214 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 215 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 216 | GCC_WARN_UNDECLARED_SELECTOR = YES; 217 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 218 | GCC_WARN_UNUSED_FUNCTION = YES; 219 | GCC_WARN_UNUSED_VARIABLE = YES; 220 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 221 | MTL_ENABLE_DEBUG_INFO = NO; 222 | SDKROOT = iphoneos; 223 | VALIDATE_PRODUCT = YES; 224 | }; 225 | name = Release; 226 | }; 227 | 58B511F01A9E6C8500147676 /* Debug */ = { 228 | isa = XCBuildConfiguration; 229 | buildSettings = { 230 | CLANG_ENABLE_MODULES = YES; 231 | HEADER_SEARCH_PATHS = ( 232 | "$(inherited)", 233 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 234 | "$(SRCROOT)/../../../React/**", 235 | "$(SRCROOT)/../../react-native/React/**", 236 | ); 237 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 238 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 239 | OTHER_LDFLAGS = "-ObjC"; 240 | PRODUCT_NAME = RNSelectableTextView; 241 | SKIP_INSTALL = YES; 242 | SWIFT_OBJC_BRIDGING_HEADER = "RNSelectableTextView-Bridging-Header.h"; 243 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 244 | SWIFT_VERSION = 4.2; 245 | }; 246 | name = Debug; 247 | }; 248 | 58B511F11A9E6C8500147676 /* Release */ = { 249 | isa = XCBuildConfiguration; 250 | buildSettings = { 251 | CLANG_ENABLE_MODULES = YES; 252 | HEADER_SEARCH_PATHS = ( 253 | "$(inherited)", 254 | /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, 255 | "$(SRCROOT)/../../../React/**", 256 | "$(SRCROOT)/../../react-native/React/**", 257 | ); 258 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 259 | LIBRARY_SEARCH_PATHS = "$(inherited)"; 260 | OTHER_LDFLAGS = "-ObjC"; 261 | PRODUCT_NAME = RNSelectableTextView; 262 | SKIP_INSTALL = YES; 263 | SWIFT_OBJC_BRIDGING_HEADER = "RNSelectableTextView-Bridging-Header.h"; 264 | SWIFT_VERSION = 4.2; 265 | }; 266 | name = Release; 267 | }; 268 | /* End XCBuildConfiguration section */ 269 | 270 | /* Begin XCConfigurationList section */ 271 | 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "RNSelectableText" */ = { 272 | isa = XCConfigurationList; 273 | buildConfigurations = ( 274 | 58B511ED1A9E6C8500147676 /* Debug */, 275 | 58B511EE1A9E6C8500147676 /* Release */, 276 | ); 277 | defaultConfigurationIsVisible = 0; 278 | defaultConfigurationName = Release; 279 | }; 280 | 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNSelectableTextView" */ = { 281 | isa = XCConfigurationList; 282 | buildConfigurations = ( 283 | 58B511F01A9E6C8500147676 /* Debug */, 284 | 58B511F11A9E6C8500147676 /* Release */, 285 | ); 286 | defaultConfigurationIsVisible = 0; 287 | defaultConfigurationName = Release; 288 | }; 289 | /* End XCConfigurationList section */ 290 | }; 291 | rootObject = 58B511D31A9E6C8500147676 /* Project object */; 292 | } 293 | -------------------------------------------------------------------------------- /ios/RNSelectableText.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | 3 | 5 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/RNSelectableTextManager.h: -------------------------------------------------------------------------------- 1 | #if __has_include() 2 | #import 3 | #else 4 | #import "RCTBaseTextInputViewManager.h" 5 | #endif 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface RNSelectableTextManager : RCTBaseTextInputViewManager 10 | 11 | @property (nonnull, nonatomic, copy) NSString *value; 12 | @property (nonatomic, copy) RCTDirectEventBlock onSelection; 13 | @property (nullable, nonatomic, copy) NSArray *menuItems; 14 | @property (nonatomic, copy) RCTDirectEventBlock onHighlightPress; 15 | 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /ios/RNSelectableTextManager.m: -------------------------------------------------------------------------------- 1 | #import "RNSelectableTextView.h" 2 | #import "RNSelectableTextManager.h" 3 | 4 | @implementation RNSelectableTextManager 5 | 6 | RCT_EXPORT_MODULE() 7 | 8 | - (UIView *)view 9 | { 10 | RNSelectableTextView *selectable = [[RNSelectableTextView alloc] initWithBridge:self.bridge]; 11 | return selectable; 12 | } 13 | 14 | RCT_EXPORT_VIEW_PROPERTY(onSelection, RCTDirectEventBlock) 15 | RCT_EXPORT_VIEW_PROPERTY(menuItems, NSArray); 16 | RCT_EXPORT_VIEW_PROPERTY(value, NSString); 17 | RCT_EXPORT_VIEW_PROPERTY(onHighlightPress, RCTDirectEventBlock) 18 | 19 | #pragma mark - Multiline (aka TextView) specific properties 20 | 21 | #if !TARGET_OS_TV 22 | RCT_REMAP_VIEW_PROPERTY(dataDetectorTypes, backedTextInputView.dataDetectorTypes, UIDataDetectorTypes) 23 | #endif 24 | 25 | @end 26 | -------------------------------------------------------------------------------- /ios/RNSelectableTextView.h: -------------------------------------------------------------------------------- 1 | #if __has_include() 2 | #import 3 | #else 4 | #import "RCTBaseTextInputView.h" 5 | #endif 6 | 7 | NS_ASSUME_NONNULL_BEGIN 8 | 9 | @interface RNSelectableTextView : RCTBaseTextInputView 10 | 11 | @property (nonnull, nonatomic, copy) NSString *value; 12 | @property (nonatomic, copy) RCTDirectEventBlock onSelection; 13 | @property (nullable, nonatomic, copy) NSArray *menuItems; 14 | @property (nonatomic, copy) RCTDirectEventBlock onHighlightPress; 15 | 16 | @end 17 | 18 | NS_ASSUME_NONNULL_END 19 | -------------------------------------------------------------------------------- /ios/RNSelectableTextView.m: -------------------------------------------------------------------------------- 1 | #if __has_include() 2 | #import 3 | #else 4 | #import "RCTTextSelection.h" 5 | #endif 6 | 7 | #if __has_include() 8 | #import 9 | #else 10 | #import "RCTUITextView.h" 11 | #endif 12 | 13 | #import "RNSelectableTextView.h" 14 | 15 | #if __has_include() 16 | #import 17 | #else 18 | #import "RCTTextAttributes.h" 19 | #endif 20 | 21 | #import 22 | 23 | @implementation RNSelectableTextView 24 | { 25 | RCTUITextView *_backedTextInputView; 26 | } 27 | 28 | NSString *const CUSTOM_SELECTOR = @"_CUSTOM_SELECTOR_"; 29 | 30 | UITextPosition *selectionStart; 31 | UITextPosition* beginning; 32 | 33 | - (instancetype)initWithBridge:(RCTBridge *)bridge 34 | { 35 | if (self = [super initWithBridge:bridge]) { 36 | // `blurOnSubmit` defaults to `false` for by design. 37 | self.blurOnSubmit = NO; 38 | 39 | _backedTextInputView = [[RCTUITextView alloc] initWithFrame:self.bounds]; 40 | _backedTextInputView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; 41 | _backedTextInputView.backgroundColor = [UIColor clearColor]; 42 | _backedTextInputView.textColor = [UIColor blackColor]; 43 | // This line actually removes 5pt (default value) left and right padding in UITextView. 44 | _backedTextInputView.textContainer.lineFragmentPadding = 0; 45 | #if !TARGET_OS_TV 46 | _backedTextInputView.scrollsToTop = NO; 47 | #endif 48 | _backedTextInputView.scrollEnabled = NO; 49 | _backedTextInputView.textInputDelegate = self; 50 | _backedTextInputView.editable = NO; 51 | _backedTextInputView.selectable = YES; 52 | _backedTextInputView.contextMenuHidden = YES; 53 | 54 | beginning = _backedTextInputView.beginningOfDocument; 55 | 56 | for (UIGestureRecognizer *gesture in [_backedTextInputView gestureRecognizers]) { 57 | if ( 58 | [gesture isKindOfClass:[UIPanGestureRecognizer class]] 59 | ) { 60 | [_backedTextInputView setExclusiveTouch:NO]; 61 | gesture.enabled = YES; 62 | } else { 63 | gesture.enabled = NO; 64 | } 65 | } 66 | 67 | [self addSubview:_backedTextInputView]; 68 | 69 | UILongPressGestureRecognizer *longPressGesture = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(handleLongPress:)]; 70 | 71 | 72 | UITapGestureRecognizer *tapGesture = [ [UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap:)]; 73 | tapGesture.numberOfTapsRequired = 2; 74 | 75 | UITapGestureRecognizer *singleTapGesture = [ [UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleSingleTap:)]; 76 | singleTapGesture.numberOfTapsRequired = 1; 77 | 78 | [_backedTextInputView addGestureRecognizer:longPressGesture]; 79 | [_backedTextInputView addGestureRecognizer:tapGesture]; 80 | [_backedTextInputView addGestureRecognizer:singleTapGesture]; 81 | 82 | [self setUserInteractionEnabled:YES]; 83 | } 84 | 85 | return self; 86 | } 87 | 88 | -(void) _handleGesture 89 | { 90 | if (!_backedTextInputView.isFirstResponder) { 91 | [_backedTextInputView becomeFirstResponder]; 92 | } 93 | 94 | UIMenuController *menuController = [UIMenuController sharedMenuController]; 95 | 96 | if (menuController.isMenuVisible) return; 97 | 98 | NSMutableArray *menuControllerItems = [NSMutableArray arrayWithCapacity:self.menuItems.count]; 99 | 100 | for(NSString *menuItemName in self.menuItems) { 101 | NSString *sel = [NSString stringWithFormat:@"%@%@", CUSTOM_SELECTOR, menuItemName]; 102 | UIMenuItem *item = [[UIMenuItem alloc] initWithTitle: menuItemName 103 | action: NSSelectorFromString(sel)]; 104 | 105 | [menuControllerItems addObject: item]; 106 | } 107 | 108 | menuController.menuItems = menuControllerItems; 109 | [menuController setTargetRect:self.bounds inView:self]; 110 | [menuController setMenuVisible:YES animated:YES]; 111 | } 112 | 113 | -(void) handleSingleTap: (UITapGestureRecognizer *) gesture 114 | { 115 | CGPoint pos = [gesture locationInView:_backedTextInputView]; 116 | pos.y += _backedTextInputView.contentOffset.y; 117 | 118 | UITextPosition *tapPos = [_backedTextInputView closestPositionToPoint:pos]; 119 | UITextRange *word = [_backedTextInputView.tokenizer rangeEnclosingPosition:tapPos withGranularity:(UITextGranularityWord) inDirection:UITextLayoutDirectionRight]; 120 | 121 | UITextPosition* beginning = _backedTextInputView.beginningOfDocument; 122 | 123 | UITextPosition *selectionStart = word.start; 124 | UITextPosition *selectionEnd = word.end; 125 | 126 | const NSInteger location = [_backedTextInputView offsetFromPosition:beginning toPosition:selectionStart]; 127 | const NSInteger endLocation = [_backedTextInputView offsetFromPosition:beginning toPosition:selectionEnd]; 128 | 129 | self.onHighlightPress(@{ 130 | @"clickedRangeStart": @(location), 131 | @"clickedRangeEnd": @(endLocation), 132 | }); 133 | } 134 | 135 | -(void) handleLongPress: (UILongPressGestureRecognizer *) gesture 136 | { 137 | 138 | CGPoint pos = [gesture locationInView:_backedTextInputView]; 139 | pos.y += _backedTextInputView.contentOffset.y; 140 | 141 | UITextPosition *tapPos = [_backedTextInputView closestPositionToPoint:pos]; 142 | UITextRange *word = [_backedTextInputView.tokenizer rangeEnclosingPosition:tapPos withGranularity:(UITextGranularityWord) inDirection:UITextLayoutDirectionRight]; 143 | 144 | 145 | switch ([gesture state]) { 146 | case UIGestureRecognizerStateBegan: 147 | selectionStart = word.start; 148 | break; 149 | case UIGestureRecognizerStateChanged: 150 | break; 151 | case UIGestureRecognizerStateEnded: 152 | selectionStart = nil; 153 | [self _handleGesture]; 154 | return; 155 | 156 | default: 157 | break; 158 | } 159 | 160 | UITextPosition *selectionEnd = word.end; 161 | 162 | const NSInteger location = [_backedTextInputView offsetFromPosition:beginning toPosition:selectionStart]; 163 | const NSInteger endLocation = [_backedTextInputView offsetFromPosition:beginning toPosition:selectionEnd]; 164 | 165 | if (location == 0 && endLocation == 0) return; 166 | 167 | [_backedTextInputView select:self]; 168 | [_backedTextInputView setSelectedRange:NSMakeRange(location, endLocation - location)]; 169 | 170 | } 171 | 172 | -(void) handleTap: (UITapGestureRecognizer *) gesture 173 | { 174 | [_backedTextInputView select:self]; 175 | [_backedTextInputView selectAll:self]; 176 | [self _handleGesture]; 177 | } 178 | 179 | - (void)setAttributedText:(NSAttributedString *)attributedText 180 | { 181 | if (self.value) { 182 | NSAttributedString *str = [[NSAttributedString alloc] initWithString:self.value attributes:self.textAttributes.effectiveTextAttributes]; 183 | 184 | [super setAttributedText:str]; 185 | } else { 186 | [super setAttributedText:attributedText]; 187 | } 188 | } 189 | 190 | - (id)backedTextInputView 191 | { 192 | return _backedTextInputView; 193 | } 194 | 195 | - (void)tappedMenuItem:(NSString *)eventType 196 | { 197 | RCTTextSelection *selection = self.selection; 198 | 199 | NSUInteger start = selection.start; 200 | NSUInteger end = selection.end - selection.start; 201 | 202 | self.onSelection(@{ 203 | @"content": [[self.attributedText string] substringWithRange:NSMakeRange(start, end)], 204 | @"eventType": eventType, 205 | @"selectionStart": @(start), 206 | @"selectionEnd": @(selection.end) 207 | }); 208 | 209 | [_backedTextInputView setSelectedTextRange:nil notifyDelegate:false]; 210 | } 211 | 212 | - (NSMethodSignature *)methodSignatureForSelector:(SEL)sel 213 | { 214 | if ([super methodSignatureForSelector:sel]) { 215 | return [super methodSignatureForSelector:sel]; 216 | } 217 | return [super methodSignatureForSelector:@selector(tappedMenuItem:)]; 218 | } 219 | 220 | - (void)forwardInvocation:(NSInvocation *)invocation 221 | { 222 | NSString *sel = NSStringFromSelector([invocation selector]); 223 | NSRange match = [sel rangeOfString:CUSTOM_SELECTOR]; 224 | if (match.location == 0) { 225 | [self tappedMenuItem:[sel substringFromIndex:17]]; 226 | } else { 227 | [super forwardInvocation:invocation]; 228 | } 229 | } 230 | 231 | - (BOOL)canBecomeFirstResponder 232 | { 233 | return YES; 234 | } 235 | 236 | - (BOOL)canPerformAction:(SEL)action withSender:(id)sender 237 | { 238 | if(selectionStart != nil) {return NO;} 239 | NSString *sel = NSStringFromSelector(action); 240 | NSRange match = [sel rangeOfString:CUSTOM_SELECTOR]; 241 | 242 | if (match.location == 0) { 243 | return YES; 244 | } 245 | return NO; 246 | } 247 | 248 | - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event 249 | { 250 | if (!_backedTextInputView.isFirstResponder) { 251 | [_backedTextInputView setSelectedTextRange:nil notifyDelegate:true]; 252 | } else { 253 | UIView *sub = nil; 254 | for (UIView *subview in self.subviews.reverseObjectEnumerator) { 255 | CGPoint subPoint = [subview convertPoint:point toView:self]; 256 | UIView *result = [subview hitTest:subPoint withEvent:event]; 257 | 258 | if (!result.isFirstResponder) { 259 | NSString *name = NSStringFromClass([result class]); 260 | 261 | if ([name isEqual:@"UITextRangeView"]) { 262 | sub = result; 263 | } 264 | } 265 | } 266 | 267 | if (sub == nil) { 268 | [_backedTextInputView setSelectedTextRange:nil notifyDelegate:true]; 269 | } 270 | } 271 | 272 | return [super hitTest:point withEvent:event]; 273 | } 274 | 275 | @end 276 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@astrocoders/react-native-selectable-text", 3 | "version": "1.5.1", 4 | "description": "React Native component used to provide the features of pass different context menu items and events", 5 | "main": "index.js", 6 | "types": "index.d.ts", 7 | "homepage": "https://github.com/Astrocoders/react-native-selectable-text", 8 | "scripts": { 9 | "test": "echo \"Error: no test specified\" && exit 1" 10 | }, 11 | "keywords": [ 12 | "react-native" 13 | ], 14 | "author": "Astrocoders ", 15 | "license": "MIT", 16 | "peerDependencies": { 17 | "react-native": "^0.41.2" 18 | }, 19 | "dependencies": { 20 | "fast-memoize": "^2.5.1", 21 | "uuid": "^3.3.2" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /react-native-selectable-text.podspec: -------------------------------------------------------------------------------- 1 | require 'json' 2 | 3 | package = JSON.parse(File.read(File.join(__dir__, 'package.json'))) 4 | 5 | Pod::Spec.new do |s| 6 | s.name = "react-native-selectable-text" 7 | s.version = package['version'] 8 | s.summary = package['description'] 9 | s.license = package['license'] 10 | 11 | s.authors = package['author'] 12 | s.homepage = package['homepage'] 13 | s.platform = :ios, "9.0" 14 | 15 | s.source = { :git => "https://github.com/Astrocoders/react-native-selectable-text.git", :tag => "#{s.version}" } 16 | s.source_files = "ios/**/*.{h,m}" 17 | 18 | s.dependency 'React' 19 | end 20 | -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- 1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. 2 | # yarn lockfile v1 3 | 4 | 5 | fast-memoize@^2.5.1: 6 | version "2.5.1" 7 | resolved "https://registry.yarnpkg.com/fast-memoize/-/fast-memoize-2.5.1.tgz#c3519241e80552ce395e1a32dcdde8d1fd680f5d" 8 | integrity sha512-xdmw296PCL01tMOXx9mdJSmWY29jQgxyuZdq0rEHMu+Tpe1eOEtCycoG6chzlcrWsNgpZP7oL8RiQr7+G6Bl6g== 9 | 10 | uuid@^3.3.2: 11 | version "3.3.2" 12 | resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.2.tgz#1b4af4955eb3077c501c23872fc6513811587131" 13 | integrity sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA== 14 | --------------------------------------------------------------------------------