From a30d467a57047139d63e8e493ab4c427f620a773 Mon Sep 17 00:00:00 2001 From: Felix Sammet Date: Fri, 8 Apr 2016 14:05:27 -0400 Subject: [PATCH 1/9] chore(IOS): remove ios project --- HtmlText.xcodeproj/project.pbxproj | 582 ------------------ .../contents.xcworkspacedata | 7 - .../xcshareddata/HtmlText.xccheckout | 41 -- .../UserInterfaceState.xcuserstate | Bin 10575 -> 0 bytes .../xcshareddata/xcschemes/HtmlText.xcscheme | 88 --- .../xcschemes/xcschememanagement.plist | 22 - iOS/AppDelegate.h | 16 - iOS/AppDelegate.m | 51 -- iOS/Base.lproj/LaunchScreen.xib | 42 -- .../AppIcon.appiconset/Contents.json | 38 -- iOS/Info.plist | 40 -- iOS/main.m | 18 - 12 files changed, 945 deletions(-) delete mode 100644 HtmlText.xcodeproj/project.pbxproj delete mode 100644 HtmlText.xcodeproj/project.xcworkspace/contents.xcworkspacedata delete mode 100644 HtmlText.xcodeproj/project.xcworkspace/xcshareddata/HtmlText.xccheckout delete mode 100644 HtmlText.xcodeproj/project.xcworkspace/xcuserdata/siuying.xcuserdatad/UserInterfaceState.xcuserstate delete mode 100644 HtmlText.xcodeproj/xcshareddata/xcschemes/HtmlText.xcscheme delete mode 100644 HtmlText.xcodeproj/xcuserdata/siuying.xcuserdatad/xcschemes/xcschememanagement.plist delete mode 100644 iOS/AppDelegate.h delete mode 100644 iOS/AppDelegate.m delete mode 100644 iOS/Base.lproj/LaunchScreen.xib delete mode 100644 iOS/Images.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 iOS/Info.plist delete mode 100644 iOS/main.m diff --git a/HtmlText.xcodeproj/project.pbxproj b/HtmlText.xcodeproj/project.pbxproj deleted file mode 100644 index 84fce2a..0000000 --- a/HtmlText.xcodeproj/project.pbxproj +++ /dev/null @@ -1,582 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 46; - objects = { - -/* Begin PBXBuildFile section */ - 00481BE81AC0C86700671115 /* libRCTWebSocketDebugger.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00481BE61AC0C7FA00671115 /* libRCTWebSocketDebugger.a */; }; - 00481BEA1AC0C89D00671115 /* libicucore.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 00481BE91AC0C89D00671115 /* libicucore.dylib */; }; - 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */; }; - 00C302E61ABCBA2D00DB3ED1 /* libRCTAdSupport.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302B41ABCB8E700DB3ED1 /* libRCTAdSupport.a */; }; - 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */; }; - 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; }; - 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; }; - 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; }; - 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB01A68108700A75B9A /* AppDelegate.m */; }; - 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; }; - 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; - 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; - 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; - 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; -/* End PBXBuildFile section */ - -/* Begin PBXContainerItemProxy section */ - 00481BE51AC0C7FA00671115 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 00481BDB1AC0C7FA00671115 /* RCTWebSocketDebugger.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; - remoteInfo = RCTWebSocketDebugger; - }; - 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 134814201AA4EA6300B7C361; - remoteInfo = RCTActionSheet; - }; - 00C302B31ABCB8E700DB3ED1 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 00C302AF1ABCB8E700DB3ED1 /* RCTAdSupport.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; - remoteInfo = RCTAdSupport; - }; - 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 134814201AA4EA6300B7C361; - remoteInfo = RCTGeolocation; - }; - 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 58B5115D1A9E6B3D00147676; - remoteInfo = RCTImage; - }; - 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 58B511DB1A9E6C8500147676; - remoteInfo = RCTNetwork; - }; - 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 832C81801AAF6DEF007FA2F7; - remoteInfo = RCTVibration; - }; - 146834031AC3E56700842450 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 83CBBA2E1A601D0E00E9B192; - remoteInfo = React; - }; - 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; - proxyType = 2; - remoteGlobalIDString = 58B5119B1A9E6C1200147676; - remoteInfo = RCTText; - }; -/* End PBXContainerItemProxy section */ - -/* Begin PBXFileReference section */ - 00481BDB1AC0C7FA00671115 /* RCTWebSocketDebugger.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocketDebugger.xcodeproj; path = node_modules/react-native/Libraries/RCTWebSocketDebugger/RCTWebSocketDebugger.xcodeproj; sourceTree = ""; }; - 00481BE91AC0C89D00671115 /* libicucore.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libicucore.dylib; path = usr/lib/libicucore.dylib; sourceTree = SDKROOT; }; - 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTActionSheet.xcodeproj; path = node_modules/react-native/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj; sourceTree = ""; }; - 00C302AF1ABCB8E700DB3ED1 /* RCTAdSupport.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAdSupport.xcodeproj; path = node_modules/react-native/Libraries/AdSupport/RCTAdSupport.xcodeproj; sourceTree = ""; }; - 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTGeolocation.xcodeproj; path = node_modules/react-native/Libraries/Geolocation/RCTGeolocation.xcodeproj; sourceTree = ""; }; - 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTImage.xcodeproj; path = node_modules/react-native/Libraries/Image/RCTImage.xcodeproj; sourceTree = ""; }; - 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTNetwork.xcodeproj; path = node_modules/react-native/Libraries/Network/RCTNetwork.xcodeproj; sourceTree = ""; }; - 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj; sourceTree = ""; }; - 13B07F961A680F5B00A75B9A /* HtmlText.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = HtmlText.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 13B07FAF1A68108700A75B9A /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = iOS/AppDelegate.h; sourceTree = ""; }; - 13B07FB01A68108700A75B9A /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = iOS/AppDelegate.m; sourceTree = ""; }; - 13B07FB21A68108700A75B9A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; - 13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = iOS/Images.xcassets; sourceTree = ""; }; - 13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = iOS/Info.plist; sourceTree = ""; }; - 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = iOS/main.m; sourceTree = ""; }; - 146833FF1AC3E56700842450 /* React.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = React.xcodeproj; path = node_modules/react-native/React/React.xcodeproj; sourceTree = ""; }; - 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = node_modules/react-native/Libraries/Text/RCTText.xcodeproj; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 13B07F8C1A680F5B00A75B9A /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 00481BEA1AC0C89D00671115 /* libicucore.dylib in Frameworks */, - 146834051AC3E58100842450 /* libReact.a in Frameworks */, - 00481BE81AC0C86700671115 /* libRCTWebSocketDebugger.a in Frameworks */, - 00C302E51ABCBA2D00DB3ED1 /* libRCTActionSheet.a in Frameworks */, - 00C302E61ABCBA2D00DB3ED1 /* libRCTAdSupport.a in Frameworks */, - 00C302E71ABCBA2D00DB3ED1 /* libRCTGeolocation.a in Frameworks */, - 00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */, - 00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */, - 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, - 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 00481BDC1AC0C7FA00671115 /* Products */ = { - isa = PBXGroup; - children = ( - 00481BE61AC0C7FA00671115 /* libRCTWebSocketDebugger.a */, - ); - name = Products; - sourceTree = ""; - }; - 00C302A81ABCB8CE00DB3ED1 /* Products */ = { - isa = PBXGroup; - children = ( - 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */, - ); - name = Products; - sourceTree = ""; - }; - 00C302B01ABCB8E700DB3ED1 /* Products */ = { - isa = PBXGroup; - children = ( - 00C302B41ABCB8E700DB3ED1 /* libRCTAdSupport.a */, - ); - name = Products; - sourceTree = ""; - }; - 00C302B61ABCB90400DB3ED1 /* Products */ = { - isa = PBXGroup; - children = ( - 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */, - ); - name = Products; - sourceTree = ""; - }; - 00C302BC1ABCB91800DB3ED1 /* Products */ = { - isa = PBXGroup; - children = ( - 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */, - ); - name = Products; - sourceTree = ""; - }; - 00C302D41ABCB9D200DB3ED1 /* Products */ = { - isa = PBXGroup; - children = ( - 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */, - ); - name = Products; - sourceTree = ""; - }; - 00C302E01ABCB9EE00DB3ED1 /* Products */ = { - isa = PBXGroup; - children = ( - 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */, - ); - name = Products; - sourceTree = ""; - }; - 13B07FAE1A68108700A75B9A /* HtmlText */ = { - isa = PBXGroup; - children = ( - 13B07FAF1A68108700A75B9A /* AppDelegate.h */, - 13B07FB01A68108700A75B9A /* AppDelegate.m */, - 13B07FB51A68108700A75B9A /* Images.xcassets */, - 13B07FB61A68108700A75B9A /* Info.plist */, - 13B07FB11A68108700A75B9A /* LaunchScreen.xib */, - 13B07FB71A68108700A75B9A /* main.m */, - ); - name = HtmlText; - sourceTree = ""; - }; - 146834001AC3E56700842450 /* Products */ = { - isa = PBXGroup; - children = ( - 146834041AC3E56700842450 /* libReact.a */, - ); - name = Products; - sourceTree = ""; - }; - 832341AE1AAA6A7D00B99B32 /* Libraries */ = { - isa = PBXGroup; - children = ( - 146833FF1AC3E56700842450 /* React.xcodeproj */, - 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */, - 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */, - 00C302AF1ABCB8E700DB3ED1 /* RCTAdSupport.xcodeproj */, - 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */, - 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */, - 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */, - 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, - 00481BDB1AC0C7FA00671115 /* RCTWebSocketDebugger.xcodeproj */, - 00481BE91AC0C89D00671115 /* libicucore.dylib */, - ); - name = Libraries; - sourceTree = ""; - }; - 832341B11AAA6A8300B99B32 /* Products */ = { - isa = PBXGroup; - children = ( - 832341B51AAA6A8300B99B32 /* libRCTText.a */, - ); - name = Products; - sourceTree = ""; - }; - 83CBB9F61A601CBA00E9B192 = { - isa = PBXGroup; - children = ( - 13B07FAE1A68108700A75B9A /* HtmlText */, - 832341AE1AAA6A7D00B99B32 /* Libraries */, - 83CBBA001A601CBA00E9B192 /* Products */, - ); - sourceTree = ""; - }; - 83CBBA001A601CBA00E9B192 /* Products */ = { - isa = PBXGroup; - children = ( - 13B07F961A680F5B00A75B9A /* HtmlText.app */, - ); - name = Products; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 13B07F861A680F5B00A75B9A /* HtmlText */ = { - isa = PBXNativeTarget; - buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "HtmlText" */; - buildPhases = ( - 13B07F871A680F5B00A75B9A /* Sources */, - 13B07F8C1A680F5B00A75B9A /* Frameworks */, - 13B07F8E1A680F5B00A75B9A /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = HtmlText; - productName = "Hello World"; - productReference = 13B07F961A680F5B00A75B9A /* HtmlText.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 83CBB9F71A601CBA00E9B192 /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 0610; - ORGANIZATIONNAME = Facebook; - }; - buildConfigurationList = 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "HtmlText" */; - compatibilityVersion = "Xcode 3.2"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 83CBB9F61A601CBA00E9B192; - productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; - projectDirPath = ""; - projectReferences = ( - { - ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; - ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; - }, - { - ProductGroup = 00C302B01ABCB8E700DB3ED1 /* Products */; - ProjectRef = 00C302AF1ABCB8E700DB3ED1 /* RCTAdSupport.xcodeproj */; - }, - { - ProductGroup = 00C302B61ABCB90400DB3ED1 /* Products */; - ProjectRef = 00C302B51ABCB90400DB3ED1 /* RCTGeolocation.xcodeproj */; - }, - { - ProductGroup = 00C302BC1ABCB91800DB3ED1 /* Products */; - ProjectRef = 00C302BB1ABCB91800DB3ED1 /* RCTImage.xcodeproj */; - }, - { - ProductGroup = 00C302D41ABCB9D200DB3ED1 /* Products */; - ProjectRef = 00C302D31ABCB9D200DB3ED1 /* RCTNetwork.xcodeproj */; - }, - { - ProductGroup = 832341B11AAA6A8300B99B32 /* Products */; - ProjectRef = 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */; - }, - { - ProductGroup = 00C302E01ABCB9EE00DB3ED1 /* Products */; - ProjectRef = 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */; - }, - { - ProductGroup = 00481BDC1AC0C7FA00671115 /* Products */; - ProjectRef = 00481BDB1AC0C7FA00671115 /* RCTWebSocketDebugger.xcodeproj */; - }, - { - ProductGroup = 146834001AC3E56700842450 /* Products */; - ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; - }, - ); - projectRoot = ""; - targets = ( - 13B07F861A680F5B00A75B9A /* HtmlText */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXReferenceProxy section */ - 00481BE61AC0C7FA00671115 /* libRCTWebSocketDebugger.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = libRCTWebSocketDebugger.a; - remoteRef = 00481BE51AC0C7FA00671115 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 00C302AC1ABCB8CE00DB3ED1 /* libRCTActionSheet.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = libRCTActionSheet.a; - remoteRef = 00C302AB1ABCB8CE00DB3ED1 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 00C302B41ABCB8E700DB3ED1 /* libRCTAdSupport.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = libRCTAdSupport.a; - remoteRef = 00C302B31ABCB8E700DB3ED1 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 00C302BA1ABCB90400DB3ED1 /* libRCTGeolocation.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = libRCTGeolocation.a; - remoteRef = 00C302B91ABCB90400DB3ED1 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = libRCTImage.a; - remoteRef = 00C302BF1ABCB91800DB3ED1 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = libRCTNetwork.a; - remoteRef = 00C302DB1ABCB9D200DB3ED1 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = libRCTVibration.a; - remoteRef = 00C302E31ABCB9EE00DB3ED1 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 146834041AC3E56700842450 /* libReact.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = libReact.a; - remoteRef = 146834031AC3E56700842450 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; - 832341B51AAA6A8300B99B32 /* libRCTText.a */ = { - isa = PBXReferenceProxy; - fileType = archive.ar; - path = libRCTText.a; - remoteRef = 832341B41AAA6A8300B99B32 /* PBXContainerItemProxy */; - sourceTree = BUILT_PRODUCTS_DIR; - }; -/* End PBXReferenceProxy section */ - -/* Begin PBXResourcesBuildPhase section */ - 13B07F8E1A680F5B00A75B9A /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, - 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 13B07F871A680F5B00A75B9A /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 13B07FBC1A68108700A75B9A /* AppDelegate.m in Sources */, - 13B07FC11A68108700A75B9A /* main.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 13B07FB11A68108700A75B9A /* LaunchScreen.xib */ = { - isa = PBXVariantGroup; - children = ( - 13B07FB21A68108700A75B9A /* Base */, - ); - name = LaunchScreen.xib; - path = iOS; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 13B07F941A680F5B00A75B9A /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - "$(SRCROOT)/node_modules/react-native/React/**", - ); - INFOPLIST_FILE = "$(SRCROOT)/iOS/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = HtmlText; - }; - name = Debug; - }; - 13B07F951A680F5B00A75B9A /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - "$(SRCROOT)/node_modules/react-native/React/**", - ); - INFOPLIST_FILE = "$(SRCROOT)/iOS/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - OTHER_LDFLAGS = "-ObjC"; - PRODUCT_NAME = HtmlText; - }; - name = Release; - }; - 83CBBA201A601CBA00E9B192 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - "$(SRCROOT)/node_modules/react-native/React/**", - ); - IPHONEOS_DEPLOYMENT_TARGET = 7.0; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - }; - name = Debug; - }; - 83CBBA211A601CBA00E9B192 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = YES; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, - "$(SRCROOT)/node_modules/react-native/React/**", - ); - IPHONEOS_DEPLOYMENT_TARGET = 7.0; - MTL_ENABLE_DEBUG_INFO = NO; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "HtmlText" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 13B07F941A680F5B00A75B9A /* Debug */, - 13B07F951A680F5B00A75B9A /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 83CBB9FA1A601CBA00E9B192 /* Build configuration list for PBXProject "HtmlText" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 83CBBA201A601CBA00E9B192 /* Debug */, - 83CBBA211A601CBA00E9B192 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - }; - rootObject = 83CBB9F71A601CBA00E9B192 /* Project object */; -} diff --git a/HtmlText.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/HtmlText.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 32ee26c..0000000 --- a/HtmlText.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/HtmlText.xcodeproj/project.xcworkspace/xcshareddata/HtmlText.xccheckout b/HtmlText.xcodeproj/project.xcworkspace/xcshareddata/HtmlText.xccheckout deleted file mode 100644 index 05956c6..0000000 --- a/HtmlText.xcodeproj/project.xcworkspace/xcshareddata/HtmlText.xccheckout +++ /dev/null @@ -1,41 +0,0 @@ - - - - - IDESourceControlProjectFavoriteDictionaryKey - - IDESourceControlProjectIdentifier - 4EA40225-03B9-4990-891F-0285646A2873 - IDESourceControlProjectName - HtmlText - IDESourceControlProjectOriginsDictionary - - 39B0080154FFACEE647E0D8139A0CE48049FF597 - git.ignition.hk:francis/HtmlText.git - - IDESourceControlProjectPath - HtmlText.xcodeproj - IDESourceControlProjectRelativeInstallPathDictionary - - 39B0080154FFACEE647E0D8139A0CE48049FF597 - ../.. - - IDESourceControlProjectURL - git.ignition.hk:francis/HtmlText.git - IDESourceControlProjectVersion - 111 - IDESourceControlProjectWCCIdentifier - 39B0080154FFACEE647E0D8139A0CE48049FF597 - IDESourceControlProjectWCConfigurations - - - IDESourceControlRepositoryExtensionIdentifierKey - public.vcs.git - IDESourceControlWCCIdentifierKey - 39B0080154FFACEE647E0D8139A0CE48049FF597 - IDESourceControlWCCName - HtmlText - - - - diff --git a/HtmlText.xcodeproj/project.xcworkspace/xcuserdata/siuying.xcuserdatad/UserInterfaceState.xcuserstate b/HtmlText.xcodeproj/project.xcworkspace/xcuserdata/siuying.xcuserdatad/UserInterfaceState.xcuserstate deleted file mode 100644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XbN(Dc%b)A%$CHA^+iH1}&B)U4KQ z(`?u5)a=&m)jX?tUbA2GrskODgyy8?9nE{1Q<@JnA8EeUTud+|q$d<7)FyZn7AHKI zuqvTFVRgdVg!Ktq6SgI6PuQ8TJ7I6a$%H?&Ds6x55N(OJLR+VurM+GIkoFnv4(%@O z9_>EubK38;7j;C(bP}CZC)XKu4qZ20x~`|Lx30e~M>kYASy!uT)h*F2)!nCCu6sJkG#h3cS`2p^?lG(| zJZ@++tTwDQtT${m>@e&y>@n;!95TFac++sq@V4Py!~2HQhEEOO8h$rYBWH{=DvfHR z#;7$~jcLYAW0tX>G22*REH;)J%Zww8BaJTObfeEW(-<%|8*eo(G%hmUXv(ukl&q^Tq?lSBwXZuNqGo&l!I`KCfsv8mKF+~hJ%H_bFHFs(9e zGCgJ5VtU&2jOmc+u<3~D4bxH6anmW&S<^YwXQnSqUzskLel`7W`qQj3$D0$(I&&wp z!<=gFV$LuRG7m8iHRqcrn5)f`%{6A1dAhmL>@&|a&o!?$Z!jM>pRzEE%#vXlWEo|- z(c-j>wT!b&uvA+nTWTyWOPytoWv*qumche>kZa&>nQ7uR;Sfvoo=0NU2MI}y2QHFdY^T<^#SWc)<>)> ztedS{t=p{Itvju|t$VG{TA#P>x4vXOVtvPY-ug$fA-PBL(B!IQU-E6qFDJj2d_4Jd z@|VfylYdD5DfyS=KW)Uu*`zkPZLqD%=CjSQ{lj*BKtk|74{DM z8v8o?2KyHK)AncVJM6pc`|StpN9^y}KenH>pR<2v|Hl5E{d@aQ_Fp=YPO?tgP8P>P z$707aN1J24W3ywQ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/HtmlText.xcodeproj/xcuserdata/siuying.xcuserdatad/xcschemes/xcschememanagement.plist b/HtmlText.xcodeproj/xcuserdata/siuying.xcuserdatad/xcschemes/xcschememanagement.plist deleted file mode 100644 index b7ba3f5..0000000 --- a/HtmlText.xcodeproj/xcuserdata/siuying.xcuserdatad/xcschemes/xcschememanagement.plist +++ /dev/null @@ -1,22 +0,0 @@ - - - - - SchemeUserState - - HtmlText.xcscheme_^#shared#^_ - - orderHint - 0 - - - SuppressBuildableAutocreation - - 13B07F861A680F5B00A75B9A - - primary - - - - - diff --git a/iOS/AppDelegate.h b/iOS/AppDelegate.h deleted file mode 100644 index a9654d5..0000000 --- a/iOS/AppDelegate.h +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Copyright (c) 2015-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - -#import - -@interface AppDelegate : UIResponder - -@property (nonatomic, strong) UIWindow *window; - -@end diff --git a/iOS/AppDelegate.m b/iOS/AppDelegate.m deleted file mode 100644 index 4da5b73..0000000 --- a/iOS/AppDelegate.m +++ /dev/null @@ -1,51 +0,0 @@ -/** - * Copyright (c) 2015-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - -#import "AppDelegate.h" - -#import "RCTRootView.h" - -@implementation AppDelegate - -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions -{ - NSURL *jsCodeLocation; - - // Loading JavaScript code - uncomment the one you want. - - // OPTION 1 - // Load from development server. Start the server from the repository root: - // - // $ npm start - // - // To run on device, change `localhost` to the IP address of your computer, and make sure your computer and - // iOS device are on the same Wi-Fi network. - jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle"]; - - // OPTION 2 - // Load from pre-bundled file on disk. To re-generate the static bundle, run - // - // $ curl http://localhost:8081/index.ios.bundle -o main.jsbundle - // - // and uncomment the next following line - // jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; - - RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation - moduleName:@"HtmlTextApp" - launchOptions:launchOptions]; - - self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; - UIViewController *rootViewController = [[UIViewController alloc] init]; - rootViewController.view = rootView; - self.window.rootViewController = rootViewController; - [self.window makeKeyAndVisible]; - return YES; -} - -@end diff --git a/iOS/Base.lproj/LaunchScreen.xib b/iOS/Base.lproj/LaunchScreen.xib deleted file mode 100644 index a71542b..0000000 --- a/iOS/Base.lproj/LaunchScreen.xib +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/iOS/Images.xcassets/AppIcon.appiconset/Contents.json b/iOS/Images.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 118c98f..0000000 --- a/iOS/Images.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/iOS/Info.plist b/iOS/Info.plist deleted file mode 100644 index c6d2494..0000000 --- a/iOS/Info.plist +++ /dev/null @@ -1,40 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UILaunchStoryboardName - LaunchScreen - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UIViewControllerBasedStatusBarAppearance - - - diff --git a/iOS/main.m b/iOS/main.m deleted file mode 100644 index 3d767fc..0000000 --- a/iOS/main.m +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Copyright (c) 2015-present, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */ - -#import - -#import "AppDelegate.h" - -int main(int argc, char * argv[]) { - @autoreleasepool { - return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); - } -} From 975a15b5ea94d3238f784f193fc3030dabb48604 Mon Sep 17 00:00:00 2001 From: Felix Sammet Date: Fri, 8 Apr 2016 14:07:05 -0400 Subject: [PATCH 2/9] chore(JS): remove react-native dependencies --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 90c12b8..55ee6d5 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,6 @@ }, "main": "lib/HtmlText.js", "dependencies": { - "parse5": "^1.4.1", - "react-native": "git://github.com/facebook/react-native.git" + "parse5": "^1.4.1" } } From 0a9e2fdb5b7806f292ad1a3ee9b753acd200d9bf Mon Sep 17 00:00:00 2001 From: Felix Sammet Date: Mon, 11 Apr 2016 14:28:21 -0400 Subject: [PATCH 3/9] fix(JS): fixed styling problem with header removed console.log --- lib/HtmlText.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/lib/HtmlText.js b/lib/HtmlText.js index 793b597..eb7cd11 100644 --- a/lib/HtmlText.js +++ b/lib/HtmlText.js @@ -136,7 +136,7 @@ function processNode(node, parentKey) { } else if (isBlockElement(childNode.nodeName)) { if (lastInlineNodes.length > 0) { - children.push({lastInlineNodes}) + children.push({lastInlineNodes}) lastInlineNodes = [] } children.push(child) @@ -144,11 +144,11 @@ function processNode(node, parentKey) { }) if (lastInlineNodes.length > 0) { - children.push(({lastInlineNodes})) + children.push(({lastInlineNodes})) } return ( - - {children} + + {children} ) } @@ -174,11 +174,10 @@ class HtmlText extends React.Component { fragment.childNodes.forEach((node, index) => { children.push(processNode(node, `${rootKey}_${index}`)) }) - - console.log(children) + return ( - {children} + {children} ) } From 1cb05e4d9776ea37919f652bfc83981163e727ed Mon Sep 17 00:00:00 2001 From: Anthony Ou Date: Fri, 27 May 2016 15:41:43 -0600 Subject: [PATCH 4/9] Fixed imports for latest RN version --- lib/HtmlText.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/lib/HtmlText.js b/lib/HtmlText.js index eb7cd11..e37fa65 100644 --- a/lib/HtmlText.js +++ b/lib/HtmlText.js @@ -1,17 +1,19 @@ -var parse5 = require('parse5'); -var React = require('react-native') -var { +import parse5 from 'parse5'; + +import { AppRegistry, StyleSheet, Text, View, -} = React +} from 'react-native'; + +import React from 'react'; -var BLOCK_ELEMENTS = ["blockquote", "div", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ol", "p", "pre", "ul", "li"] +const BLOCK_ELEMENTS = ["blockquote", "div", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ol", "p", "pre", "ul", "li"] -var INLINE_ELEMENTS = ["b", "i", "em", "strong", "a", "br", "q", "span", "sub", "sup"] +const INLINE_ELEMENTS = ["b", "i", "em", "strong", "a", "br", "q", "span", "sub", "sup"] -var DEFAULT_STYLES = StyleSheet.create({ +const DEFAULT_STYLES = StyleSheet.create({ a: { }, @@ -183,4 +185,4 @@ class HtmlText extends React.Component { } } -module.exports = HtmlText \ No newline at end of file +module.exports = HtmlText From 59583e1c3e0b7c25ad661301f3dbc9c3fd907406 Mon Sep 17 00:00:00 2001 From: Anthony Ou Date: Mon, 30 May 2016 18:08:29 -0600 Subject: [PATCH 5/9] Styling for text components --- index.ios.js | 10 ++++++---- lib/HtmlText.js | 32 +++++++++++++++++--------------- 2 files changed, 23 insertions(+), 19 deletions(-) diff --git a/index.ios.js b/index.ios.js index 0508b96..dc0053b 100644 --- a/index.ios.js +++ b/index.ios.js @@ -4,14 +4,16 @@ */ 'use strict'; -var React = require('react-native'); -var { +import React from 'react'; + +import { AppRegistry, StyleSheet, Text, View, -} = React; -var HtmlText = require('./lib/HtmlText') +} from 'react-native'; + +import HtmlText from './lib/HtmlText'; var HtmlTextApp = React.createClass({ render: function() { diff --git a/lib/HtmlText.js b/lib/HtmlText.js index e37fa65..ffce242 100644 --- a/lib/HtmlText.js +++ b/lib/HtmlText.js @@ -7,7 +7,7 @@ import { View, } from 'react-native'; -import React from 'react'; +import React, {Component} from 'react'; const BLOCK_ELEMENTS = ["blockquote", "div", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ol", "p", "pre", "ul", "li"] @@ -105,7 +105,7 @@ function styleForTag(tagName) { return style } -function processNode(node, parentKey) { +function processNode(node, parentKey, props) { var nodeName = node.nodeName if (isText(nodeName)) { @@ -118,12 +118,12 @@ function processNode(node, parentKey) { var children = [] node.childNodes.forEach((child, index) => { if (isInlineElement(child.nodeName) || isText(child.nodeName)) { - children.push(processNode(child, `${key}_${index}`)) + children.push(processNode(child, `${key}_${index}`, props)) } else { console.error(`Inline element ${nodeName} can only have inline children, ${child} is invalid!`) - } + } }) - return ({children}) + return ({children}) } if (isBlockElement(nodeName)) { @@ -132,13 +132,17 @@ function processNode(node, parentKey) { var lastInlineNodes = [] node.childNodes.forEach((childNode, index) => { - var child = processNode(childNode, `${key}_${index}`) + var child = processNode(childNode, `${key}_${index}`, props) if (isInlineElement(childNode.nodeName) || isText(childNode.nodeName)) { lastInlineNodes.push(child) } else if (isBlockElement(childNode.nodeName)) { if (lastInlineNodes.length > 0) { - children.push({lastInlineNodes}) + children.push( + {lastInlineNodes} + ) lastInlineNodes = [] } children.push(child) @@ -146,11 +150,11 @@ function processNode(node, parentKey) { }) if (lastInlineNodes.length > 0) { - children.push(({lastInlineNodes})) + children.push(({lastInlineNodes})) } return ( - {children} + {children} ) } @@ -159,7 +163,7 @@ function processNode(node, parentKey) { return null; } -class HtmlText extends React.Component { +export default class HtmlText extends Component { parse(html) { var parser = new parse5.Parser() var fragment = parser.parseFragment(html) @@ -174,15 +178,13 @@ class HtmlText extends React.Component { var children = [] fragment.childNodes.forEach((node, index) => { - children.push(processNode(node, `${rootKey}_${index}`)) + children.push(processNode(node, `${rootKey}_${index}`, this.props)) }) return ( - - {children} + + {children} ) } } - -module.exports = HtmlText From 16b4a16fbb7540df0a6b0c2fe27c81e5b989b079 Mon Sep 17 00:00:00 2001 From: Anthony Ou Date: Tue, 31 May 2016 11:24:54 -0600 Subject: [PATCH 6/9] Added underline tag --- lib/HtmlText.js | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/lib/HtmlText.js b/lib/HtmlText.js index ffce242..e1f0e05 100644 --- a/lib/HtmlText.js +++ b/lib/HtmlText.js @@ -11,7 +11,7 @@ import React, {Component} from 'react'; const BLOCK_ELEMENTS = ["blockquote", "div", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ol", "p", "pre", "ul", "li"] -const INLINE_ELEMENTS = ["b", "i", "em", "strong", "a", "br", "q", "span", "sub", "sup"] +const INLINE_ELEMENTS = ["b", "i", "em", "strong", "a", "br", "q", "span", "sub", "sup", "u"] const DEFAULT_STYLES = StyleSheet.create({ a: { @@ -83,6 +83,10 @@ const DEFAULT_STYLES = StyleSheet.create({ ul: { marginLeft: 24, }, + u:{ + textDecorationLine: 'underline', + textDecorationStyle: 'solid' + }, default: { } @@ -101,20 +105,20 @@ function isInlineElement(tagName) : Boolean { } function styleForTag(tagName) { - var style = DEFAULT_STYLES[tagName] ? DEFAULT_STYLES[tagName] : DEFAULT_STYLES["default"] + const style = DEFAULT_STYLES[tagName] ? DEFAULT_STYLES[tagName] : DEFAULT_STYLES["default"] return style } function processNode(node, parentKey, props) { - var nodeName = node.nodeName - + const nodeName = node.nodeName; + if (isText(nodeName)) { - var key = `${parentKey}_text` + const key = `${parentKey}_text` return ({node.value}) } if (isInlineElement(nodeName)) { - var key = `${parentKey}_${nodeName}` + const key = `${parentKey}_${nodeName}` var children = [] node.childNodes.forEach((child, index) => { if (isInlineElement(child.nodeName) || isText(child.nodeName)) { @@ -123,11 +127,17 @@ function processNode(node, parentKey, props) { console.error(`Inline element ${nodeName} can only have inline children, ${child} is invalid!`) } }) - return ({children}) + return ( + + {children} + + ) } if (isBlockElement(nodeName)) { - var key = `${parentKey}_${nodeName}` + const key = `${parentKey}_${nodeName}` var children = [] var lastInlineNodes = [] From 6e4ebc5b0b67efc3209f7ef2e12d8c1d07628c01 Mon Sep 17 00:00:00 2001 From: Anthony Ou Date: Tue, 31 May 2016 11:29:29 -0600 Subject: [PATCH 7/9] updated package.json --- package.json | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 55ee6d5..0db68ae 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,28 @@ { - "name": "react-native-htmltext", + "name": "react-native-html-text", "version": "0.0.1", "description": "Use HTML like markup to create stylized text in react-native.", - "private": true, + "private": false, "scripts": { "start": "react-native start" }, "main": "lib/HtmlText.js", "dependencies": { "parse5": "^1.4.1" - } + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Anthonyzou/react-native-htmltext.git" + }, + "keywords": [ + "react-native", + "react-component", + "android" + ], + "author": "Anthony Ou", + "license": "MIT", + "bugs": { + "url": "https://github.com/Anthonyzou/react-native-htmltext/issues" + }, + "homepage": "https://github.com/Anthonyzou/react-native-htmltext#readme" } From eaac1b272da484a653030e765b6e86daa7a09a41 Mon Sep 17 00:00:00 2001 From: Anthony Ou Date: Tue, 31 May 2016 11:52:54 -0600 Subject: [PATCH 8/9] Updated headers and styling for plain text --- lib/HtmlText.js | 8 +++++++- package.json | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/HtmlText.js b/lib/HtmlText.js index e1f0e05..13a0100 100644 --- a/lib/HtmlText.js +++ b/lib/HtmlText.js @@ -36,21 +36,27 @@ const DEFAULT_STYLES = StyleSheet.create({ fontStyle: 'italic' }, h1: { + fontSize:15, fontWeight: 'bold', }, h2: { + fontSize:14, fontWeight: 'bold', }, h3: { + fontSize:13, fontWeight: 'bold', }, h4: { + fontSize:12, fontWeight: 'bold', }, h5: { + fontSize:11, fontWeight: 'bold', }, h6: { + fontSize:10, fontWeight: 'bold', }, i: { @@ -114,7 +120,7 @@ function processNode(node, parentKey, props) { if (isText(nodeName)) { const key = `${parentKey}_text` - return ({node.value}) + return ({node.value}) } if (isInlineElement(nodeName)) { diff --git a/package.json b/package.json index 0db68ae..b62f7ce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "react-native-html-text", - "version": "0.0.1", + "name": "react-native-html-to-text", + "version": "0.0.2", "description": "Use HTML like markup to create stylized text in react-native.", "private": false, "scripts": { From 465cbd593b5b75aeb923bd81ef8625d4c2a7686c Mon Sep 17 00:00:00 2001 From: Anthony Ou Date: Tue, 31 May 2016 16:26:16 -0600 Subject: [PATCH 9/9] Added hyperlink support --- lib/HtmlText.js | 129 +++++++++++++---------------------------------- lib/constants.js | 93 ++++++++++++++++++++++++++++++++++ package.json | 2 +- 3 files changed, 130 insertions(+), 94 deletions(-) create mode 100644 lib/constants.js diff --git a/lib/HtmlText.js b/lib/HtmlText.js index 13a0100..00dec90 100644 --- a/lib/HtmlText.js +++ b/lib/HtmlText.js @@ -5,98 +5,20 @@ import { StyleSheet, Text, View, + Linking, } from 'react-native'; import React, {Component} from 'react'; -const BLOCK_ELEMENTS = ["blockquote", "div", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ol", "p", "pre", "ul", "li"] - -const INLINE_ELEMENTS = ["b", "i", "em", "strong", "a", "br", "q", "span", "sub", "sup", "u"] - -const DEFAULT_STYLES = StyleSheet.create({ - a: { - - }, - b: { - fontWeight: 'bold' - }, - blockquote: { - paddingLeft: 12, - borderLeftWidth: 4, - borderLeftColor: '#cccccc', - marginBottom: 12 - }, - br: { - - }, - div: { - - }, - em: { - fontStyle: 'italic' - }, - h1: { - fontSize:15, - fontWeight: 'bold', - }, - h2: { - fontSize:14, - fontWeight: 'bold', - }, - h3: { - fontSize:13, - fontWeight: 'bold', - }, - h4: { - fontSize:12, - fontWeight: 'bold', - }, - h5: { - fontSize:11, - fontWeight: 'bold', - }, - h6: { - fontSize:10, - fontWeight: 'bold', - }, - i: { - fontStyle: 'italic' - }, - p: { - marginBottom: 12, - }, - pre: { - - }, - strong: { - fontWeight: 'bold' - }, - q: { - - }, - span: { - - }, - sub: { - - }, - sup: { - - }, - ol:{ - marginLeft: 24, - }, - ul: { - marginLeft: 24, - }, - u:{ - textDecorationLine: 'underline', - textDecorationStyle: 'solid' - }, - default: { +import { + BLOCK_ELEMENTS, + INLINE_ELEMENTS, + DEFAULT_STYLES, +} from './constants'; - } -}); +function isHyperlink(tagName) : Boolean { + return tagName === 'a' +} function isText(tagName) : Boolean { return tagName === "#text" @@ -117,7 +39,28 @@ function styleForTag(tagName) { function processNode(node, parentKey, props) { const nodeName = node.nodeName; - + + if(isHyperlink(nodeName)){ + const key = `${parentKey}_text` + const href = node.attrs[0]; + return ( + { + Linking.canOpenURL(href.value) + .then(supported => { + if (!supported) { + console.warn('Can\'t handle url: ' + href.value); + } else { + return Linking.openURL(href.value); + } + }).catch(err => console.error('An error occurred', err)); + }}> + {href.value} + + ) + } + if (isText(nodeName)) { const key = `${parentKey}_text` return ({node.value}) @@ -134,8 +77,8 @@ function processNode(node, parentKey, props) { } }) return ( - {children} @@ -155,8 +98,8 @@ function processNode(node, parentKey, props) { } else if (isBlockElement(childNode.nodeName)) { if (lastInlineNodes.length > 0) { children.push( - {lastInlineNodes} ) lastInlineNodes = [] @@ -196,7 +139,7 @@ export default class HtmlText extends Component { fragment.childNodes.forEach((node, index) => { children.push(processNode(node, `${rootKey}_${index}`, this.props)) }) - + return ( {children} diff --git a/lib/constants.js b/lib/constants.js new file mode 100644 index 0000000..30ef905 --- /dev/null +++ b/lib/constants.js @@ -0,0 +1,93 @@ + +import { + StyleSheet, +} from 'react-native'; + +export const BLOCK_ELEMENTS = ["blockquote", "div", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "ol", "p", "pre", "ul", "li"] +export const INLINE_ELEMENTS = ["b", "i", "em", "strong", "a", "br", "q", "span", "sub", "sup", "u"] +export const DEFAULT_STYLES = StyleSheet.create({ + a: { + textDecorationLine: 'underline', + textDecorationStyle: 'solid', + color: "blue", + }, + b: { + fontWeight: 'bold' + }, + blockquote: { + paddingLeft: 12, + borderLeftWidth: 4, + borderLeftColor: '#cccccc', + marginBottom: 12 + }, + br: { + + }, + div: { + + }, + em: { + fontStyle: 'italic' + }, + h1: { + fontSize:15, + fontWeight: 'bold', + }, + h2: { + fontSize:14, + fontWeight: 'bold', + }, + h3: { + fontSize:13, + fontWeight: 'bold', + }, + h4: { + fontSize:12, + fontWeight: 'bold', + }, + h5: { + fontSize:11, + fontWeight: 'bold', + }, + h6: { + fontSize:10, + fontWeight: 'bold', + }, + i: { + fontStyle: 'italic' + }, + p: { + marginBottom: 12, + }, + pre: { + + }, + strong: { + fontWeight: 'bold' + }, + q: { + + }, + span: { + + }, + sub: { + + }, + sup: { + + }, + ol:{ + marginLeft: 24, + }, + ul: { + marginLeft: 24, + }, + u:{ + textDecorationLine: 'underline', + textDecorationStyle: 'solid' + }, + default: { + + } +}); diff --git a/package.json b/package.json index b62f7ce..f2e40fb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-html-to-text", - "version": "0.0.2", + "version": "0.0.3", "description": "Use HTML like markup to create stylized text in react-native.", "private": false, "scripts": {