From d5f5e961885583db4539d3bf4fc9b72bdf6fcf4f Mon Sep 17 00:00:00 2001 From: mattosdavi Date: Thu, 2 Jun 2022 13:49:31 -0300 Subject: [PATCH 1/5] feat(select): initial config to select component on ios platform DSY-855 --- .../project.pbxproj | 60 ++-- ...urareactnativecomponents-Bridging-Header.h | 1 + .../project.pbxproj | 274 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + ios/NaturaReactNativeComponents/Select.m | 17 ++ ios/NaturaReactNativeComponents/Select.swift | 42 +++ ios/Podfile | 2 + ios/Podfile.lock | 10 +- naturareactnativecomponents.podspec | 19 ++ package.json | 5 +- src/components/Select/Select.device.tsx | 5 + src/components/Select/Select.stories.tsx | 14 + src/components/Select/Select.tsx | 45 +++ src/components/Select/index.ts | 1 + src/components/index.ts | 1 + 16 files changed, 472 insertions(+), 39 deletions(-) create mode 100644 ios/NaturaReactNativeComponents/Naturareactnativecomponents-Bridging-Header.h create mode 100644 ios/NaturaReactNativeComponents/Naturareactnativecomponents.xcodeproj/project.pbxproj create mode 100644 ios/NaturaReactNativeComponents/Naturareactnativecomponents.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 ios/NaturaReactNativeComponents/Naturareactnativecomponents.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 ios/NaturaReactNativeComponents/Select.m create mode 100644 ios/NaturaReactNativeComponents/Select.swift create mode 100644 naturareactnativecomponents.podspec create mode 100644 src/components/Select/Select.device.tsx create mode 100644 src/components/Select/Select.stories.tsx create mode 100644 src/components/Select/Select.tsx create mode 100644 src/components/Select/index.ts diff --git a/ios/NaturaReactComponents.xcodeproj/project.pbxproj b/ios/NaturaReactComponents.xcodeproj/project.pbxproj index 5981ab8c..6d17bd56 100644 --- a/ios/NaturaReactComponents.xcodeproj/project.pbxproj +++ b/ios/NaturaReactComponents.xcodeproj/project.pbxproj @@ -8,7 +8,9 @@ /* Begin PBXBuildFile section */ 00E356F31AD99517003FC87E /* NaturaReactComponentsTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* NaturaReactComponentsTests.m */; }; + 0447599D4B6D4F278D46DF8D /* zapf_humanist601bt_roman.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 9BACA54AA5644FDEBE241F71 /* zapf_humanist601bt_roman.ttf */; }; 07F5EE2230844252BBD64B59 /* natds-icons.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 5ED5C123FCC0423FB744A60B /* natds-icons.ttf */; }; + 0DD4868F009944A684642F5B /* suisse_intl_regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 4C375907B2A64E87B642AD99 /* suisse_intl_regular.ttf */; }; 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 */; }; @@ -18,36 +20,34 @@ 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 2D02E4BF1E0B4AB3006451C7 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 2DCD954D1E0B4F2C00145EB5 /* NaturaReactComponentsTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* NaturaReactComponentsTests.m */; }; + 2FC2FF3112974D82B1D64425 /* helvetica_now_display_bd.ttf in Resources */ = {isa = PBXBuildFile; fileRef = EF62064B22FA4969A2C1CE51 /* helvetica_now_display_bd.ttf */; }; 33205FC1894D40F3AE5D3A03 /* Roboto-BoldItalic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = DFF9F16ED7B344AEB8BB33D7 /* Roboto-BoldItalic.ttf */; }; 3E4C0BE1B0F6460EB42E52C0 /* natds-icons.svg in Resources */ = {isa = PBXBuildFile; fileRef = 9542ADA36A9F4B55A7CC1360 /* natds-icons.svg */; }; 4265746FB35E41999DF75AAF /* Roboto-Black.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 96943E1C18F84E1DAE1BB400 /* Roboto-Black.ttf */; }; 4C499D82BE19485FACA30D77 /* Roboto-LightItalic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = B30D8BFCEE554A618192478F /* Roboto-LightItalic.ttf */; }; + 533539C314B947D58C32C05F /* druk_cy_bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 429186D6F1034537A56DE44C /* druk_cy_bold.ttf */; }; 5C96EAA6293349B6A4397C28 /* Roboto-Medium.ttf in Resources */ = {isa = PBXBuildFile; fileRef = C0A38195C340458CBD005485 /* Roboto-Medium.ttf */; }; 5D389829DB484069A3E1AE4B /* natds-icons.woff2 in Resources */ = {isa = PBXBuildFile; fileRef = 9C08C4BFD0F3490E95B4EEF7 /* natds-icons.woff2 */; }; + 5DA1720B088E4DC3BEC335AD /* montserrat_bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 1E99256B09334039A7F05F1C /* montserrat_bold.ttf */; }; 62D3E23A7FF3411A98FDB9F2 /* Roboto-MediumItalic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 9F6853E3AEB74490A6980355 /* Roboto-MediumItalic.ttf */; }; + 6B0035D98AB845C0B02EC90E /* montserrat_semi_bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 4C8F9C46681E49EA9692C1BB /* montserrat_semi_bold.ttf */; }; 73DC076346D740D3887341C1 /* Roboto-Bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 1326B5EB47CB4F22A63330D6 /* Roboto-Bold.ttf */; }; 7D4CCDAB995640A4A1449A6C /* Roboto-BlackItalic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = EE52BED68DDB4E798C637857 /* Roboto-BlackItalic.ttf */; }; 857A4ED000354135860F7F84 /* natds-icons.woff in Resources */ = {isa = PBXBuildFile; fileRef = 1C3465D3A474434DB588B8EC /* natds-icons.woff */; }; 8C35FA480294E58F24259362 /* libPods-NaturaReactComponents.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7963EBFC3063ED00E8AB01D9 /* libPods-NaturaReactComponents.a */; }; + 926B0FC773774C44A73314F6 /* helvetica_now_display_regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = C03AC8A6C6D546DB8B8C73B4 /* helvetica_now_display_regular.ttf */; }; 940E1FD6ECBF4374B8779681 /* Roboto-Thin.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A235607A197A4DB2B301CDA3 /* Roboto-Thin.ttf */; }; 9970C244D7CA4DE9AAF7A592 /* Roboto-Italic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 53D48A21423C4BB78C57A8B6 /* Roboto-Italic.ttf */; }; A5DC479D9E7E42A1B2225E3F /* Roboto-ThinItalic.ttf in Resources */ = {isa = PBXBuildFile; fileRef = B5F5F0EB21AC412895CD2221 /* Roboto-ThinItalic.ttf */; }; B003F668EB8E4DFD9D41DF4B /* Roboto-Light.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 22692A50068B4318BFA631E4 /* Roboto-Light.ttf */; }; + B89C3D8CDC1C42F9B93B54EC /* montserrat_regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = C7893D5549D34416A04F239E /* montserrat_regular.ttf */; }; + C266571A00E04726B83F3179 /* work_sans_regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D07FDEE2BD67402FA96F3B98 /* work_sans_regular.ttf */; }; C48C1BD0544FB138710CA898 /* libPods-NaturaReactComponents-NaturaReactComponentsTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 18207638E48A5EB947EC2897 /* libPods-NaturaReactComponents-NaturaReactComponentsTests.a */; }; D990993B8F4B416D9713D93D /* Roboto-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 70B97FA3DC984789943D17F8 /* Roboto-Regular.ttf */; }; - 533539C314B947D58C32C05F /* druk_cy_bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 429186D6F1034537A56DE44C /* druk_cy_bold.ttf */; }; - 2FC2FF3112974D82B1D64425 /* helvetica_now_display_bd.ttf in Resources */ = {isa = PBXBuildFile; fileRef = EF62064B22FA4969A2C1CE51 /* helvetica_now_display_bd.ttf */; }; - F9CA49B3F83B426EB73EE955 /* helvetica_now_display_md.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A99A6962B26448BDA25D7F06 /* helvetica_now_display_md.ttf */; }; - 926B0FC773774C44A73314F6 /* helvetica_now_display_regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = C03AC8A6C6D546DB8B8C73B4 /* helvetica_now_display_regular.ttf */; }; - 5DA1720B088E4DC3BEC335AD /* montserrat_bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 1E99256B09334039A7F05F1C /* montserrat_bold.ttf */; }; - B89C3D8CDC1C42F9B93B54EC /* montserrat_regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = C7893D5549D34416A04F239E /* montserrat_regular.ttf */; }; - 6B0035D98AB845C0B02EC90E /* montserrat_semi_bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 4C8F9C46681E49EA9692C1BB /* montserrat_semi_bold.ttf */; }; - FF48736BB2B9473591E9EC70 /* recoleta_semi_bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = EE0524D085D04155BCE5DE7A /* recoleta_semi_bold.ttf */; }; F0BA0CB08D504D4C995E43B6 /* suisse_intl_medium.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 4745E3D0B20A4350BDFC01FE /* suisse_intl_medium.ttf */; }; - 0DD4868F009944A684642F5B /* suisse_intl_regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 4C375907B2A64E87B642AD99 /* suisse_intl_regular.ttf */; }; F4A0FF084BA5407A927829EF /* work_sans_bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = BCF9824E91364F42A0B249DD /* work_sans_bold.ttf */; }; - C266571A00E04726B83F3179 /* work_sans_regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = D07FDEE2BD67402FA96F3B98 /* work_sans_regular.ttf */; }; - 0447599D4B6D4F278D46DF8D /* zapf_humanist601bt_roman.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 9BACA54AA5644FDEBE241F71 /* zapf_humanist601bt_roman.ttf */; }; + F9CA49B3F83B426EB73EE955 /* helvetica_now_display_md.ttf in Resources */ = {isa = PBXBuildFile; fileRef = A99A6962B26448BDA25D7F06 /* helvetica_now_display_md.ttf */; }; + FF48736BB2B9473591E9EC70 /* recoleta_semi_bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = EE0524D085D04155BCE5DE7A /* recoleta_semi_bold.ttf */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -89,6 +89,7 @@ 191A857E2453E86D001A532B /* NaturaReactComponents-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "NaturaReactComponents-Bridging-Header.h"; sourceTree = ""; }; 191A85812453F74E001A532B /* dummy.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = dummy.swift; sourceTree = ""; }; 1C3465D3A474434DB588B8EC /* natds-icons.woff */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "natds-icons.woff"; path = "../src/assets/fonts/natds-icons.woff"; sourceTree = ""; }; + 1E99256B09334039A7F05F1C /* montserrat_bold.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = montserrat_bold.ttf; path = ../src/assets/fonts/montserrat_bold.ttf; sourceTree = ""; }; 2144776E004340A89CBE79EA /* Roboto-Medium.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Roboto-Medium.ttf"; path = "../lib/assets/fonts/Roboto-Medium.ttf"; sourceTree = ""; }; 21EE5EA907314C1EAA5A9216 /* SuisseIntl-Regular.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "SuisseIntl-Regular.ttf"; path = "../src/assets/fonts/SuisseIntl-Regular.ttf"; sourceTree = ""; }; 225BA6C76C944F62A4966326 /* Roboto-Light.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Roboto-Light.ttf"; path = "../lib/assets/fonts/Roboto-Light.ttf"; sourceTree = ""; }; @@ -98,7 +99,11 @@ 2D02E4901E0B4A5D006451C7 /* NaturaReactComponents-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "NaturaReactComponents-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 2D9924D160884310B8DC29C4 /* ZapfHumanist601BT-Roman.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "ZapfHumanist601BT-Roman.ttf"; path = "../src/assets/fonts/ZapfHumanist601BT-Roman.ttf"; sourceTree = ""; }; 2E2A08D0DE3741EC9BDA9B91 /* NaturaSans-Light.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "NaturaSans-Light.otf"; path = "../lib/assets/fonts/NaturaSans-Light.otf"; sourceTree = ""; }; + 429186D6F1034537A56DE44C /* druk_cy_bold.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = druk_cy_bold.ttf; path = ../src/assets/fonts/druk_cy_bold.ttf; sourceTree = ""; }; + 4745E3D0B20A4350BDFC01FE /* suisse_intl_medium.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = suisse_intl_medium.ttf; path = ../src/assets/fonts/suisse_intl_medium.ttf; sourceTree = ""; }; 4AAA991B0D8F43BB879BC5BF /* HelveticaNowDisplay-Md.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "HelveticaNowDisplay-Md.ttf"; path = "../src/assets/fonts/HelveticaNowDisplay-Md.ttf"; sourceTree = ""; }; + 4C375907B2A64E87B642AD99 /* suisse_intl_regular.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = suisse_intl_regular.ttf; path = ../src/assets/fonts/suisse_intl_regular.ttf; sourceTree = ""; }; + 4C8F9C46681E49EA9692C1BB /* montserrat_semi_bold.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = montserrat_semi_bold.ttf; path = ../src/assets/fonts/montserrat_semi_bold.ttf; sourceTree = ""; }; 4F910D4E2675543E64B2CC57 /* Pods-NaturaReactComponents-NaturaReactComponentsTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NaturaReactComponents-NaturaReactComponentsTests.release.xcconfig"; path = "Target Support Files/Pods-NaturaReactComponents-NaturaReactComponentsTests/Pods-NaturaReactComponents-NaturaReactComponentsTests.release.xcconfig"; sourceTree = ""; }; 4FD45EEBCD0449EA87392818 /* Montserrat-Bold.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Montserrat-Bold.ttf"; path = "../src/assets/fonts/Montserrat-Bold.ttf"; sourceTree = ""; }; 50080117856C46C1A7B7FE46 /* Roboto-ThinItalic.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Roboto-ThinItalic.ttf"; path = "../lib/assets/fonts/Roboto-ThinItalic.ttf"; sourceTree = ""; }; @@ -112,12 +117,14 @@ 91D1C51025194B1AB3699394 /* WorkSans-Bold.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "WorkSans-Bold.ttf"; path = "../src/assets/fonts/WorkSans-Bold.ttf"; sourceTree = ""; }; 9542ADA36A9F4B55A7CC1360 /* natds-icons.svg */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "natds-icons.svg"; path = "../src/assets/fonts/natds-icons.svg"; sourceTree = ""; }; 96943E1C18F84E1DAE1BB400 /* Roboto-Black.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Roboto-Black.ttf"; path = "../src/assets/fonts/Roboto-Black.ttf"; sourceTree = ""; }; + 9BACA54AA5644FDEBE241F71 /* zapf_humanist601bt_roman.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = zapf_humanist601bt_roman.ttf; path = ../src/assets/fonts/zapf_humanist601bt_roman.ttf; sourceTree = ""; }; 9C08C4BFD0F3490E95B4EEF7 /* natds-icons.woff2 */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "natds-icons.woff2"; path = "../src/assets/fonts/natds-icons.woff2"; sourceTree = ""; }; 9E26B35BBCD84C3C8DC8FEC1 /* HelveticaNowDisplay-Regular.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "HelveticaNowDisplay-Regular.ttf"; path = "../src/assets/fonts/HelveticaNowDisplay-Regular.ttf"; sourceTree = ""; }; 9E6A91FA379DB03038A5E6D4 /* Pods-NaturaReactComponentsTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NaturaReactComponentsTests.release.xcconfig"; path = "Target Support Files/Pods-NaturaReactComponentsTests/Pods-NaturaReactComponentsTests.release.xcconfig"; sourceTree = ""; }; 9F6853E3AEB74490A6980355 /* Roboto-MediumItalic.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Roboto-MediumItalic.ttf"; path = "../src/assets/fonts/Roboto-MediumItalic.ttf"; sourceTree = ""; }; A235607A197A4DB2B301CDA3 /* Roboto-Thin.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Roboto-Thin.ttf"; path = "../src/assets/fonts/Roboto-Thin.ttf"; sourceTree = ""; }; A6FE89368F1C4FC78AEA02DC /* Roboto-BlackItalic.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Roboto-BlackItalic.ttf"; path = "../lib/assets/fonts/Roboto-BlackItalic.ttf"; sourceTree = ""; }; + A99A6962B26448BDA25D7F06 /* helvetica_now_display_md.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = helvetica_now_display_md.ttf; path = ../src/assets/fonts/helvetica_now_display_md.ttf; sourceTree = ""; }; AA07B9CA14A044688C2E45B3 /* Roboto-LightItalic.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Roboto-LightItalic.ttf"; path = "../lib/assets/fonts/Roboto-LightItalic.ttf"; sourceTree = ""; }; ACB3C07D040D928D77136F03 /* Pods-NaturaReactComponents.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NaturaReactComponents.debug.xcconfig"; path = "Target Support Files/Pods-NaturaReactComponents/Pods-NaturaReactComponents.debug.xcconfig"; sourceTree = ""; }; ADC473A511514A9192A4A9C6 /* natds-icons.svg */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "natds-icons.svg"; path = "../lib/assets/fonts/natds-icons.svg"; sourceTree = ""; }; @@ -126,34 +133,27 @@ B6D5F433DF0F1985CD52ACBB /* Pods-NaturaReactComponentsTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NaturaReactComponentsTests.debug.xcconfig"; path = "Target Support Files/Pods-NaturaReactComponentsTests/Pods-NaturaReactComponentsTests.debug.xcconfig"; sourceTree = ""; }; B8AFA213D9ED4F7288A7C837 /* HelveticaNowDisplay-Bd.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "HelveticaNowDisplay-Bd.ttf"; path = "../src/assets/fonts/HelveticaNowDisplay-Bd.ttf"; sourceTree = ""; }; BB30EC4FC9644B049A890322 /* NaturaSans-Regular.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "NaturaSans-Regular.otf"; path = "../lib/assets/fonts/NaturaSans-Regular.otf"; sourceTree = ""; }; + BCF9824E91364F42A0B249DD /* work_sans_bold.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = work_sans_bold.ttf; path = ../src/assets/fonts/work_sans_bold.ttf; sourceTree = ""; }; + C03AC8A6C6D546DB8B8C73B4 /* helvetica_now_display_regular.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = helvetica_now_display_regular.ttf; path = ../src/assets/fonts/helvetica_now_display_regular.ttf; sourceTree = ""; }; C0A38195C340458CBD005485 /* Roboto-Medium.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Roboto-Medium.ttf"; path = "../src/assets/fonts/Roboto-Medium.ttf"; sourceTree = ""; }; C240D6C83E634002814C99AD /* Recoleta-SemiBold.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Recoleta-SemiBold.ttf"; path = "../src/assets/fonts/Recoleta-SemiBold.ttf"; sourceTree = ""; }; C2668511CAE448D7B81BFB54 /* Roboto-BoldItalic.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Roboto-BoldItalic.ttf"; path = "../lib/assets/fonts/Roboto-BoldItalic.ttf"; sourceTree = ""; }; C2F779305C854E9B9E72BBFE /* Roboto-Thin.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Roboto-Thin.ttf"; path = "../lib/assets/fonts/Roboto-Thin.ttf"; sourceTree = ""; }; + C7893D5549D34416A04F239E /* montserrat_regular.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = montserrat_regular.ttf; path = ../src/assets/fonts/montserrat_regular.ttf; sourceTree = ""; }; C99DD50EBFE24A1BA366EA67 /* NaturaScript.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = NaturaScript.otf; path = ../lib/assets/fonts/NaturaScript.otf; sourceTree = ""; }; CBCAEDAC33A742AD85BE276A /* Roboto-Bold.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Roboto-Bold.ttf"; path = "../lib/assets/fonts/Roboto-Bold.ttf"; sourceTree = ""; }; D0642809588A67508E542E26 /* Pods-NaturaReactComponents-NaturaReactComponentsTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NaturaReactComponents-NaturaReactComponentsTests.debug.xcconfig"; path = "Target Support Files/Pods-NaturaReactComponents-NaturaReactComponentsTests/Pods-NaturaReactComponents-NaturaReactComponentsTests.debug.xcconfig"; sourceTree = ""; }; + D07FDEE2BD67402FA96F3B98 /* work_sans_regular.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = work_sans_regular.ttf; path = ../src/assets/fonts/work_sans_regular.ttf; sourceTree = ""; }; D2BB2EFB355347578C7D804B /* Montserrat-Regular.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Montserrat-Regular.ttf"; path = "../src/assets/fonts/Montserrat-Regular.ttf"; sourceTree = ""; }; D4FDBDC81C6749B18D159638 /* natds-icons.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "natds-icons.ttf"; path = "../lib/assets/fonts/natds-icons.ttf"; sourceTree = ""; }; DFF9F16ED7B344AEB8BB33D7 /* Roboto-BoldItalic.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Roboto-BoldItalic.ttf"; path = "../src/assets/fonts/Roboto-BoldItalic.ttf"; sourceTree = ""; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; 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; }; + EE0524D085D04155BCE5DE7A /* recoleta_semi_bold.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = recoleta_semi_bold.ttf; path = ../src/assets/fonts/recoleta_semi_bold.ttf; sourceTree = ""; }; EE52BED68DDB4E798C637857 /* Roboto-BlackItalic.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "Roboto-BlackItalic.ttf"; path = "../src/assets/fonts/Roboto-BlackItalic.ttf"; sourceTree = ""; }; EEF7E11139C44655B0C1F181 /* NaturaSans-Bold.otf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "NaturaSans-Bold.otf"; path = "../lib/assets/fonts/NaturaSans-Bold.otf"; sourceTree = ""; }; + EF62064B22FA4969A2C1CE51 /* helvetica_now_display_bd.ttf */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = undefined; includeInIndex = 0; lastKnownFileType = unknown; name = helvetica_now_display_bd.ttf; path = ../src/assets/fonts/helvetica_now_display_bd.ttf; sourceTree = ""; }; F787AC809C1A4DB8A9109F3D /* natds-icons.woff2 */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = unknown; name = "natds-icons.woff2"; path = "../lib/assets/fonts/natds-icons.woff2"; sourceTree = ""; }; - 429186D6F1034537A56DE44C /* druk_cy_bold.ttf */ = {isa = PBXFileReference; name = "druk_cy_bold.ttf"; path = "../src/assets/fonts/druk_cy_bold.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; - EF62064B22FA4969A2C1CE51 /* helvetica_now_display_bd.ttf */ = {isa = PBXFileReference; name = "helvetica_now_display_bd.ttf"; path = "../src/assets/fonts/helvetica_now_display_bd.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; - A99A6962B26448BDA25D7F06 /* helvetica_now_display_md.ttf */ = {isa = PBXFileReference; name = "helvetica_now_display_md.ttf"; path = "../src/assets/fonts/helvetica_now_display_md.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; - C03AC8A6C6D546DB8B8C73B4 /* helvetica_now_display_regular.ttf */ = {isa = PBXFileReference; name = "helvetica_now_display_regular.ttf"; path = "../src/assets/fonts/helvetica_now_display_regular.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; - 1E99256B09334039A7F05F1C /* montserrat_bold.ttf */ = {isa = PBXFileReference; name = "montserrat_bold.ttf"; path = "../src/assets/fonts/montserrat_bold.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; - C7893D5549D34416A04F239E /* montserrat_regular.ttf */ = {isa = PBXFileReference; name = "montserrat_regular.ttf"; path = "../src/assets/fonts/montserrat_regular.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; - 4C8F9C46681E49EA9692C1BB /* montserrat_semi_bold.ttf */ = {isa = PBXFileReference; name = "montserrat_semi_bold.ttf"; path = "../src/assets/fonts/montserrat_semi_bold.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; - EE0524D085D04155BCE5DE7A /* recoleta_semi_bold.ttf */ = {isa = PBXFileReference; name = "recoleta_semi_bold.ttf"; path = "../src/assets/fonts/recoleta_semi_bold.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; - 4745E3D0B20A4350BDFC01FE /* suisse_intl_medium.ttf */ = {isa = PBXFileReference; name = "suisse_intl_medium.ttf"; path = "../src/assets/fonts/suisse_intl_medium.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; - 4C375907B2A64E87B642AD99 /* suisse_intl_regular.ttf */ = {isa = PBXFileReference; name = "suisse_intl_regular.ttf"; path = "../src/assets/fonts/suisse_intl_regular.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; - BCF9824E91364F42A0B249DD /* work_sans_bold.ttf */ = {isa = PBXFileReference; name = "work_sans_bold.ttf"; path = "../src/assets/fonts/work_sans_bold.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; - D07FDEE2BD67402FA96F3B98 /* work_sans_regular.ttf */ = {isa = PBXFileReference; name = "work_sans_regular.ttf"; path = "../src/assets/fonts/work_sans_regular.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; - 9BACA54AA5644FDEBE241F71 /* zapf_humanist601bt_roman.ttf */ = {isa = PBXFileReference; name = "zapf_humanist601bt_roman.ttf"; path = "../src/assets/fonts/zapf_humanist601bt_roman.ttf"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = unknown; explicitFileType = undefined; includeInIndex = 0; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -512,18 +512,6 @@ D990993B8F4B416D9713D93D /* Roboto-Regular.ttf in Resources */, 940E1FD6ECBF4374B8779681 /* Roboto-Thin.ttf in Resources */, A5DC479D9E7E42A1B2225E3F /* Roboto-ThinItalic.ttf in Resources */, - 91C0E5982F8849B6BC95D733 /* DrukCy-Bold.ttf in Resources */, - BE0BA89CE7094D05B3196FDE /* HelveticaNowDisplay-Bd.ttf in Resources */, - BC5B89002B634EADA03D16F0 /* HelveticaNowDisplay-Md.ttf in Resources */, - 8AC62BF2A47E4224A4256F67 /* HelveticaNowDisplay-Regular.ttf in Resources */, - 2076F26FC81E4E8CAFB31C78 /* Montserrat-Bold.ttf in Resources */, - E5B86DB097ED4C29A5157F98 /* Montserrat-Regular.ttf in Resources */, - 4423D3AB315F4A10A67D4B44 /* Montserrat-SemiBold.ttf in Resources */, - 30E53D99D8694A36B77B6DA5 /* Recoleta-SemiBold.ttf in Resources */, - D5E8885B18224657BE9BBFC4 /* SuisseIntl-Regular.ttf in Resources */, - C98A782EB2D6442A972E1A79 /* WorkSans-Bold.ttf in Resources */, - 0892D617269C4B85A6D6ECA3 /* WorkSans-Regular.ttf in Resources */, - B2440F9C1D1E4FDF8B8F2C95 /* ZapfHumanist601BT-Roman.ttf in Resources */, 533539C314B947D58C32C05F /* druk_cy_bold.ttf in Resources */, 2FC2FF3112974D82B1D64425 /* helvetica_now_display_bd.ttf in Resources */, F9CA49B3F83B426EB73EE955 /* helvetica_now_display_md.ttf in Resources */, diff --git a/ios/NaturaReactNativeComponents/Naturareactnativecomponents-Bridging-Header.h b/ios/NaturaReactNativeComponents/Naturareactnativecomponents-Bridging-Header.h new file mode 100644 index 00000000..16eb5eb1 --- /dev/null +++ b/ios/NaturaReactNativeComponents/Naturareactnativecomponents-Bridging-Header.h @@ -0,0 +1 @@ +#import diff --git a/ios/NaturaReactNativeComponents/Naturareactnativecomponents.xcodeproj/project.pbxproj b/ios/NaturaReactNativeComponents/Naturareactnativecomponents.xcodeproj/project.pbxproj new file mode 100644 index 00000000..7b3f8660 --- /dev/null +++ b/ios/NaturaReactNativeComponents/Naturareactnativecomponents.xcodeproj/project.pbxproj @@ -0,0 +1,274 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXCopyFilesBuildPhase section */ + 58B511D91A9E6C8500147676 /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = "include/$(PRODUCT_NAME)"; + dstSubfolderSpec = 16; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 134814201AA4EA6300B7C361 /* libNaturareactnativecomponents.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libNaturareactnativecomponents.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 83E7C26F28491F6300A6C680 /* Select.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Select.m; sourceTree = ""; }; + 83E7C27028491F8400A6C680 /* Select.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Select.swift; sourceTree = ""; }; + F4FF95D5245B92E700C19C63 /* Naturareactnativecomponents-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Naturareactnativecomponents-Bridging-Header.h"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 58B511D81A9E6C8500147676 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 134814211AA4EA7D00B7C361 /* Products */ = { + isa = PBXGroup; + children = ( + 134814201AA4EA6300B7C361 /* libNaturareactnativecomponents.a */, + ); + name = Products; + sourceTree = ""; + }; + 58B511D21A9E6C8500147676 = { + isa = PBXGroup; + children = ( + F4FF95D5245B92E700C19C63 /* Naturareactnativecomponents-Bridging-Header.h */, + 83E7C26F28491F6300A6C680 /* Select.m */, + 83E7C27028491F8400A6C680 /* Select.swift */, + 134814211AA4EA7D00B7C361 /* Products */, + ); + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 58B511DA1A9E6C8500147676 /* Naturareactnativecomponents */ = { + isa = PBXNativeTarget; + buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "Naturareactnativecomponents" */; + buildPhases = ( + 58B511D71A9E6C8500147676 /* Sources */, + 58B511D81A9E6C8500147676 /* Frameworks */, + 58B511D91A9E6C8500147676 /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Naturareactnativecomponents; + productName = RCTDataManager; + productReference = 134814201AA4EA6300B7C361 /* libNaturareactnativecomponents.a */; + productType = "com.apple.product-type.library.static"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 58B511D31A9E6C8500147676 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0920; + ORGANIZATIONNAME = Facebook; + TargetAttributes = { + 58B511DA1A9E6C8500147676 = { + CreatedOnToolsVersion = 6.1.1; + }; + }; + }; + buildConfigurationList = 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "Naturareactnativecomponents" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + English, + en, + ); + mainGroup = 58B511D21A9E6C8500147676; + productRefGroup = 58B511D21A9E6C8500147676; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 58B511DA1A9E6C8500147676 /* Naturareactnativecomponents */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + 58B511D71A9E6C8500147676 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 58B511ED1A9E6C8500147676 /* 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_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = 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_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + 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; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + 58B511EE1A9E6C8500147676 /* 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_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = 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_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + COPY_PHASE_STRIP = YES; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + 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; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 58B511F01A9E6C8500147676 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + HEADER_SEARCH_PATHS = ( + "$(inherited)", + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, + "$(SRCROOT)/../../../React/**", + "$(SRCROOT)/../../react-native/React/**", + ); + LIBRARY_SEARCH_PATHS = "$(inherited)"; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = Naturareactnativecomponents; + SKIP_INSTALL = YES; + SWIFT_OBJC_BRIDGING_HEADER = "Naturareactnativecomponents-Bridging-Header.h"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 58B511F11A9E6C8500147676 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + HEADER_SEARCH_PATHS = ( + "$(inherited)", + /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include, + "$(SRCROOT)/../../../React/**", + "$(SRCROOT)/../../react-native/React/**", + ); + LIBRARY_SEARCH_PATHS = "$(inherited)"; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = Naturareactnativecomponents; + SKIP_INSTALL = YES; + SWIFT_OBJC_BRIDGING_HEADER = "Naturareactnativecomponents-Bridging-Header.h"; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 58B511D61A9E6C8500147676 /* Build configuration list for PBXProject "Naturareactnativecomponents" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 58B511ED1A9E6C8500147676 /* Debug */, + 58B511EE1A9E6C8500147676 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "Naturareactnativecomponents" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 58B511F01A9E6C8500147676 /* Debug */, + 58B511F11A9E6C8500147676 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 58B511D31A9E6C8500147676 /* Project object */; +} diff --git a/ios/NaturaReactNativeComponents/Naturareactnativecomponents.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/NaturaReactNativeComponents/Naturareactnativecomponents.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..919434a6 --- /dev/null +++ b/ios/NaturaReactNativeComponents/Naturareactnativecomponents.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/ios/NaturaReactNativeComponents/Naturareactnativecomponents.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/ios/NaturaReactNativeComponents/Naturareactnativecomponents.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/ios/NaturaReactNativeComponents/Naturareactnativecomponents.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/ios/NaturaReactNativeComponents/Select.m b/ios/NaturaReactNativeComponents/Select.m new file mode 100644 index 00000000..789b7b00 --- /dev/null +++ b/ios/NaturaReactNativeComponents/Select.m @@ -0,0 +1,17 @@ +// +// Select.m +// Naturareactnativecomponents +// +// Created by Davi Mattos on 02/06/22. +// Copyright © 2022 Facebook. All rights reserved. +// + +#import +#import "React/RCTViewManager.h" + +@interface RCT_EXTERN_MODULE(SelectManager, RCTViewManager) + +RCT_EXPORT_VIEW_PROPERTY(color, NSString) + +@end + diff --git a/ios/NaturaReactNativeComponents/Select.swift b/ios/NaturaReactNativeComponents/Select.swift new file mode 100644 index 00000000..dea06236 --- /dev/null +++ b/ios/NaturaReactNativeComponents/Select.swift @@ -0,0 +1,42 @@ +// +// Select.swift +// Naturareactnativecomponents +// +// Created by Davi Mattos on 02/06/22. +// Copyright © 2022 Facebook. All rights reserved. +// + +import Foundation + +@objc(SelectManager) +class SelectManager: RCTViewManager { + + override func view() -> (Select) { + return Select() + } +} + +class Select : UIView { + + @objc var color: String = "" { + didSet { + self.backgroundColor = hexStringToUIColor(hexColor: color) + } + } + + func hexStringToUIColor(hexColor: String) -> UIColor { + let stringScanner = Scanner(string: hexColor) + + if(hexColor.hasPrefix("#")) { + stringScanner.scanLocation = 1 + } + var color: UInt32 = 0 + stringScanner.scanHexInt32(&color) + + let r = CGFloat(Int(color >> 16) & 0x000000FF) + let g = CGFloat(Int(color >> 8) & 0x000000FF) + let b = CGFloat(Int(color) & 0x000000FF) + + return UIColor(red: r / 255.0, green: g / 255.0, blue: b / 255.0, alpha: 1) + } +} diff --git a/ios/Podfile b/ios/Podfile index 16b9d1d5..8ce1c014 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -12,6 +12,8 @@ target 'NaturaReactComponents' do :hermes_enabled => false ) + pod 'naturareactnativecomponents', :path => '..' + target 'NaturaReactComponentsTests' do inherit! :complete # Pods for testing diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 5705f0ef..e0b4c633 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -73,6 +73,8 @@ PODS: - fmt (6.2.1) - glog (0.3.5) - libevent (2.1.12) + - naturareactnativecomponents (7.29.0): + - React-Core - OpenSSL-Universal (1.1.180) - RCT-Folly (2021.06.28.00-v2): - boost @@ -372,6 +374,7 @@ DEPENDENCIES: - FlipperKit/FlipperKitUserDefaultsPlugin (= 0.99.0) - FlipperKit/SKIOSNetworkPlugin (= 0.99.0) - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) + - naturareactnativecomponents (from `..`) - RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`) - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`) - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`) @@ -430,6 +433,8 @@ EXTERNAL SOURCES: :path: "../node_modules/react-native/React/FBReactNativeSpec" glog: :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" + naturareactnativecomponents: + :path: ".." RCT-Folly: :podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec" RCTRequired: @@ -503,6 +508,7 @@ SPEC CHECKSUMS: fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9 glog: 5337263514dd6f09803962437687240c5dc39aa4 libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 + naturareactnativecomponents: 83086ae003c97441a95b9fc95e846cb36a58d9d9 OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b RCT-Folly: a21c126816d8025b547704b777a2ba552f3d9fa9 RCTRequired: 59d2b744d8c2bf2d9bc7032a9f654809adcf7d50 @@ -533,6 +539,6 @@ SPEC CHECKSUMS: Yoga: 32a18c0e845e185f4a2a66ec76e1fd1f958f22fa YogaKit: f782866e155069a2cca2517aafea43200b01fd5a -PODFILE CHECKSUM: 465381f77db2e5c75e365e140d7341b10498cb3f +PODFILE CHECKSUM: 607ec549182719703e705ad5a3c7e06fd50d4e46 -COCOAPODS: 1.11.2 +COCOAPODS: 1.11.3 diff --git a/naturareactnativecomponents.podspec b/naturareactnativecomponents.podspec new file mode 100644 index 00000000..16317e13 --- /dev/null +++ b/naturareactnativecomponents.podspec @@ -0,0 +1,19 @@ +require "json" + +package = JSON.parse(File.read(File.join(__dir__, "package.json"))) + +Pod::Spec.new do |s| + s.name = "naturareactnativecomponents" + s.version = package["version"] + s.summary = package["description"] + s.homepage = package["homepage"] + s.license = package["license"] + s.authors = package["author"] + + s.platforms = { :ios => "10.0" } + s.source = { :git => "https://github.com/natura-cosmeticos/natds-rn.git", :tag => "#{s.version}" } + + s.source_files = "ios/NaturaReactNativeComponents/*.{h,m,mm,swift}" + + s.dependency "React-Core" +end diff --git a/package.json b/package.json index af72158c..ba20552a 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,10 @@ "build/lib", "README.md", "CHANGELOG.mg", - "tools" + "tools", + "naturareactnativecomponents.podspec", + "ios/NaturaReactNativeComponents", + "ios/NaturaReactNativeComponents/Naturareactnativecomponents.xcodeproj/project.xcworkspace" ], "scripts": { "android": "concurrently --names 'auto-import-stories,react-native' 'rnstl' 'react-native run-android'", diff --git a/src/components/Select/Select.device.tsx b/src/components/Select/Select.device.tsx new file mode 100644 index 00000000..bc6e4a90 --- /dev/null +++ b/src/components/Select/Select.device.tsx @@ -0,0 +1,5 @@ +import { storiesOf } from '@storybook/react-native' +import { Default } from './Select.stories' + +storiesOf('Select', module) + .add('Default', Default) diff --git a/src/components/Select/Select.stories.tsx b/src/components/Select/Select.stories.tsx new file mode 100644 index 00000000..54538eb6 --- /dev/null +++ b/src/components/Select/Select.stories.tsx @@ -0,0 +1,14 @@ +import React from 'react' +import { StoryContainer } from '../../common/HelperComponents/StoryContainer' +import { Select } from './Select' + +export default { + component: Select, + title: 'Components/Select' +} + +export const Default = () => ( + +