From 58bcf02fdbdfd94f6d66d26ae6f35977c4a5d6cc Mon Sep 17 00:00:00 2001 From: Henning Hall Date: Tue, 11 Sep 2018 19:28:37 +0200 Subject: [PATCH] Rename project to new package name. --- DatePickerAndroid.js | 15 +----- DatePickerIOS.js | 2 +- example/android/app/build.gradle | 2 +- example/android/settings.gradle | 4 +- .../project.pbxproj | 48 ++++++++++++------- .../AppIcon.appiconset/Contents.json | 15 ++++++ example/package.json | 2 +- example/src/examples/Advanced.js | 2 +- example/src/examples/DateMode.js | 4 +- example/src/examples/Minimal.js | 2 +- example/src/examples/TimeMode.js | 2 +- example/yarn.lock | 6 +-- .../project.pbxproj | 38 +++++++-------- .../contents.xcworkspacedata | 2 +- .../DatePicker.h | 0 .../DatePicker.m | 0 .../RNDatePickerManager.h} | 2 +- .../RNDatePickerManager.m} | 4 +- 18 files changed, 84 insertions(+), 66 deletions(-) rename ios/{DatePickerX.xcodeproj => RNDatePicker.xcodeproj}/project.pbxproj (84%) rename ios/{DatePickerX.xcodeproj => RNDatePicker.xcodeproj}/project.xcworkspace/contents.xcworkspacedata (90%) rename ios/{DatePickerX => RNDatePicker}/DatePicker.h (100%) rename ios/{DatePickerX => RNDatePicker}/DatePicker.m (100%) rename ios/{DatePickerX/DatePickerXManager.h => RNDatePicker/RNDatePickerManager.h} (87%) rename ios/{DatePickerX/DatePickerXManager.m => RNDatePicker/RNDatePickerManager.m} (94%) diff --git a/DatePickerAndroid.js b/DatePickerAndroid.js index 69507fd..8794125 100644 --- a/DatePickerAndroid.js +++ b/DatePickerAndroid.js @@ -1,16 +1,5 @@ -import { - Platform, - NativeModules, - NativeAppEventEmitter, - Text, - requireNativeComponent, - ViewPropTypes, - StyleSheet, - DatePickerIOS, -} from 'react-native'; -import React, { Component } from 'react' -import PropTypes from 'prop-types'; -import { DatePicker } from 'react-native-date-picker-x'; +import React from 'react'; +import { DatePickerIOS, requireNativeComponent, StyleSheet } from 'react-native'; const NativeDatePicker = requireNativeComponent(`DatePickerManager`, DatePickerAndroid, { nativeOnly: { onChange: true } }); diff --git a/DatePickerIOS.js b/DatePickerIOS.js index a76e86b..1774426 100644 --- a/DatePickerIOS.js +++ b/DatePickerIOS.js @@ -19,7 +19,7 @@ const invariant = require('fbjs/lib/invariant'); import type {ViewProps} from 'ViewPropTypes'; -const RCTDatePickerIOS = requireNativeComponent('DatePickerX'); +const RCTDatePickerIOS = requireNativeComponent('RNDatePicker'); type Event = Object; diff --git a/example/android/app/build.gradle b/example/android/app/build.gradle index 8fe22c4..1e337f8 100644 --- a/example/android/app/build.gradle +++ b/example/android/app/build.gradle @@ -137,7 +137,7 @@ android { } dependencies { - compile project(':react-native-date-picker-x') + compile project(':react-native-date-picker') compile project(':react-native-device-info') compile fileTree(dir: "libs", include: ["*.jar"]) compile "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" diff --git a/example/android/settings.gradle b/example/android/settings.gradle index 17b8dfd..6ea8ea9 100644 --- a/example/android/settings.gradle +++ b/example/android/settings.gradle @@ -1,6 +1,6 @@ rootProject.name = 'DatePickerExample' -include ':react-native-date-picker-x' -project(':react-native-date-picker-x').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-date-picker-x/android') +include ':react-native-date-picker' +project(':react-native-date-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-date-picker/android') include ':react-native-device-info' project(':react-native-device-info').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-device-info/android') diff --git a/example/ios/DatePickerExample.xcodeproj/project.pbxproj b/example/ios/DatePickerExample.xcodeproj/project.pbxproj index 85fde18..c503270 100644 --- a/example/ios/DatePickerExample.xcodeproj/project.pbxproj +++ b/example/ios/DatePickerExample.xcodeproj/project.pbxproj @@ -22,8 +22,8 @@ 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 140ED2AC1D01E1AD002B40FF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; 146834051AC3E58100842450 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; }; - 19D8B17D0461408D86F34238 /* libDatePickerX.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0297D8D33D204EB6939D06AC /* libDatePickerX.a */; }; 5B5A67062134936200599381 /* libRNDeviceInfo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5BD54659212F465F005A1D38 /* libRNDeviceInfo.a */; }; + 5BCA8D4B214839F100C81469 /* libRNDatePicker.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5BCA8D48214839D500C81469 /* libRNDatePicker.a */; }; 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; }; 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; }; ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; }; @@ -261,12 +261,12 @@ remoteGlobalIDString = 3D3CD9181DE5FBD800167DC4; remoteInfo = "jschelpers-tvOS"; }; - 5B5A668A2130BD1300599381 /* PBXContainerItemProxy */ = { + 5BCA8D47214839D500C81469 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; - containerPortal = BEE75557964943A593A20B4C /* DatePickerX.xcodeproj */; + containerPortal = 8E735C153B6847FA8230A60F /* RNDatePicker.xcodeproj */; proxyType = 2; remoteGlobalIDString = DA5891D81BA9A9FC002B4DB2; - remoteInfo = DatePickerX; + remoteInfo = RNDatePicker; }; 5BD54658212F465F005A1D38 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; @@ -357,6 +357,12 @@ 21BDF87D12ED4E5BA97C6E9D /* libDatePickerX-tvOS.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = "libDatePickerX-tvOS.a"; sourceTree = ""; }; 2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; }; 35AF2FBE48BB4F8C8793EC95 /* libRNDeviceInfo-tvOS.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = "libRNDeviceInfo-tvOS.a"; sourceTree = ""; }; + 5BCA8D00214833B700C81469 /* libDatePicker.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libDatePicker.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 5BCA8D082148372200C81469 /* libRNDatePicker.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libRNDatePicker.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 5BCA8D0A2148373700C81469 /* libRNDatePicker.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libRNDatePicker.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 5BCA8D0C2148379700C81469 /* libRNDatePicker.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libRNDatePicker.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 5BCA8D0E2148380500C81469 /* libRNDatePicker.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libRNDatePicker.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 5BCA8D102148398900C81469 /* libRNDatePicker.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libRNDatePicker.a; sourceTree = BUILT_PRODUCTS_DIR; }; 5BD54664212F58B6005A1D38 /* DatePicker.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = DatePicker.xcodeproj; path = ../node_modules/iosPicker/DatePicker.xcodeproj; sourceTree = ""; }; 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = ""; }; 62D581CB2FE141BD93E3BDEC /* datepickerTests.xctest */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = wrapper.cfbundle; path = datepickerTests.xctest; sourceTree = ""; }; @@ -365,11 +371,11 @@ 78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = ""; }; 82D6622A3FE241129BEFC1AB /* libDatePicker.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libDatePicker.a; sourceTree = ""; }; 832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = ""; }; + 8E735C153B6847FA8230A60F /* RNDatePicker.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNDatePicker.xcodeproj; path = "../node_modules/react-native-date-picker/ios/RNDatePicker.xcodeproj"; sourceTree = ""; }; 96F289FB785A45A0AB87F2A6 /* libDatePicker-tvOS.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = "libDatePicker-tvOS.a"; sourceTree = ""; }; ACBEF59FB76B4DA396910134 /* RNDeviceInfo.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNDeviceInfo.xcodeproj; path = "../node_modules/react-native-device-info/ios/RNDeviceInfo.xcodeproj"; sourceTree = ""; }; ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = ""; }; B5CC7D0F452041D19A995B59 /* libRNDeviceInfo.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNDeviceInfo.a; sourceTree = ""; }; - BEE75557964943A593A20B4C /* DatePickerX.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = DatePickerX.xcodeproj; path = "../node_modules/react-native-date-picker-x/ios/DatePickerX.xcodeproj"; sourceTree = ""; }; BFBCDF28AC82400D8445D24D /* datepicker-tvOS.app */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = wrapper.application; path = "datepicker-tvOS.app"; sourceTree = ""; }; /* End PBXFileReference section */ @@ -386,6 +392,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + 5BCA8D4B214839F100C81469 /* libRNDatePicker.a in Frameworks */, 5B5A67062134936200599381 /* libRNDeviceInfo.a in Frameworks */, ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */, 5E9157361DD0AC6A00FF2AA8 /* libRCTAnimation.a in Frameworks */, @@ -400,7 +407,6 @@ 832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */, 00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */, 139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */, - 19D8B17D0461408D86F34238 /* libDatePickerX.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -526,16 +532,22 @@ 2D16E6871FA4F8E400B85C8A /* Frameworks */ = { isa = PBXGroup; children = ( + 5BCA8D102148398900C81469 /* libRNDatePicker.a */, + 5BCA8D0E2148380500C81469 /* libRNDatePicker.a */, + 5BCA8D0C2148379700C81469 /* libRNDatePicker.a */, + 5BCA8D0A2148373700C81469 /* libRNDatePicker.a */, + 5BCA8D082148372200C81469 /* libRNDatePicker.a */, + 5BCA8D00214833B700C81469 /* libDatePicker.a */, 5BD54664212F58B6005A1D38 /* DatePicker.xcodeproj */, 2D16E6891FA4F8E400B85C8A /* libReact.a */, ); name = Frameworks; sourceTree = ""; }; - 5B5A66862130BD1300599381 /* Products */ = { + 5BCA8D1F214839D500C81469 /* Products */ = { isa = PBXGroup; children = ( - 5B5A668B2130BD1300599381 /* libDatePickerX.a */, + 5BCA8D48214839D500C81469 /* libRNDatePicker.a */, ); name = Products; sourceTree = ""; @@ -609,7 +621,7 @@ 00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */, 139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */, ACBEF59FB76B4DA396910134 /* RNDeviceInfo.xcodeproj */, - BEE75557964943A593A20B4C /* DatePickerX.xcodeproj */, + 8E735C153B6847FA8230A60F /* RNDatePicker.xcodeproj */, ); name = Libraries; sourceTree = ""; @@ -729,10 +741,6 @@ ProductGroup = 5BD54665212F58B6005A1D38 /* Products */; ProjectRef = 5BD54664212F58B6005A1D38 /* DatePicker.xcodeproj */; }, - { - ProductGroup = 5B5A66862130BD1300599381 /* Products */; - ProjectRef = BEE75557964943A593A20B4C /* DatePickerX.xcodeproj */; - }, { ProductGroup = 00C302A81ABCB8CE00DB3ED1 /* Products */; ProjectRef = 00C302A71ABCB8CE00DB3ED1 /* RCTActionSheet.xcodeproj */; @@ -781,6 +789,10 @@ ProductGroup = 146834001AC3E56700842450 /* Products */; ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */; }, + { + ProductGroup = 5BCA8D1F214839D500C81469 /* Products */; + ProjectRef = 8E735C153B6847FA8230A60F /* RNDatePicker.xcodeproj */; + }, { ProductGroup = 5BD54654212F465F005A1D38 /* Products */; ProjectRef = ACBEF59FB76B4DA396910134 /* RNDeviceInfo.xcodeproj */; @@ -1019,11 +1031,11 @@ remoteRef = 3DAD3EAE1DF850E9000B6D8A /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; - 5B5A668B2130BD1300599381 /* libDatePickerX.a */ = { + 5BCA8D48214839D500C81469 /* libRNDatePicker.a */ = { isa = PBXReferenceProxy; fileType = archive.ar; - path = libDatePickerX.a; - remoteRef = 5B5A668A2130BD1300599381 /* PBXContainerItemProxy */; + path = libRNDatePicker.a; + remoteRef = 5BCA8D47214839D500C81469 /* PBXContainerItemProxy */; sourceTree = BUILT_PRODUCTS_DIR; }; 5BD54659212F465F005A1D38 /* libRNDeviceInfo.a */ = { @@ -1182,6 +1194,7 @@ "$(SRCROOT)/../node_modules/react-native-datepicker/ios/datepicker", "$(SRCROOT)/../node_modules/date-picker/ios/DatePicker", "$(SRCROOT)/../node_modules/react-native-date-picker-x/ios/DatePickerX", + "$(SRCROOT)/../node_modules/react-native-date-picker/ios/DatePickerX", ); INFOPLIST_FILE = DatePickerExampleTests/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 9.0; @@ -1219,6 +1232,7 @@ "$(SRCROOT)/../node_modules/react-native-datepicker/ios/datepicker", "$(SRCROOT)/../node_modules/date-picker/ios/DatePicker", "$(SRCROOT)/../node_modules/react-native-date-picker-x/ios/DatePickerX", + "$(SRCROOT)/../node_modules/react-native-date-picker/ios/DatePickerX", ); INFOPLIST_FILE = DatePickerExampleTests/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 9.0; @@ -1258,6 +1272,7 @@ "$(SRCROOT)/../node_modules/react-native-datepicker/ios/datepicker", "$(SRCROOT)/../node_modules/date-picker/ios/DatePicker", "$(SRCROOT)/../node_modules/react-native-date-picker-x/ios/DatePickerX", + "$(SRCROOT)/../node_modules/react-native-date-picker/ios/DatePickerX", ); INFOPLIST_FILE = DatePickerExample/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; @@ -1283,6 +1298,7 @@ "$(SRCROOT)/../node_modules/react-native-datepicker/ios/datepicker", "$(SRCROOT)/../node_modules/date-picker/ios/DatePicker", "$(SRCROOT)/../node_modules/react-native-date-picker-x/ios/DatePickerX", + "$(SRCROOT)/../node_modules/react-native-date-picker/ios/DatePickerX", ); INFOPLIST_FILE = DatePickerExample/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; diff --git a/example/ios/DatePickerExample/Images.xcassets/AppIcon.appiconset/Contents.json b/example/ios/DatePickerExample/Images.xcassets/AppIcon.appiconset/Contents.json index 118c98f..19882d5 100644 --- a/example/ios/DatePickerExample/Images.xcassets/AppIcon.appiconset/Contents.json +++ b/example/ios/DatePickerExample/Images.xcassets/AppIcon.appiconset/Contents.json @@ -1,5 +1,15 @@ { "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, { "idiom" : "iphone", "size" : "29x29", @@ -29,6 +39,11 @@ "idiom" : "iphone", "size" : "60x60", "scale" : "3x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" } ], "info" : { diff --git a/example/package.json b/example/package.json index 73d8929..53f6a5a 100644 --- a/example/package.json +++ b/example/package.json @@ -10,7 +10,7 @@ "moment": "^2.22.1", "react": "16.4.1", "react-native": "0.56.0", - "react-native-date-picker-x": "^1.4.1", + "react-native-date-picker": "^2.0.0", "react-native-device-info": "^0.22.5" }, "devDependencies": { diff --git a/example/src/examples/Advanced.js b/example/src/examples/Advanced.js index da2998b..b5dfce0 100644 --- a/example/src/examples/Advanced.js +++ b/example/src/examples/Advanced.js @@ -1,6 +1,6 @@ import React, { Component } from 'react'; import { StyleSheet, Text, View } from 'react-native'; -import DatePicker from 'react-native-date-picker-x'; +import DatePicker from 'react-native-date-picker'; import DeviceInfo from 'react-native-device-info'; import DateChange from '../propPickers/DateChange'; import FadeToColor from '../propPickers/FadeToColor'; diff --git a/example/src/examples/DateMode.js b/example/src/examples/DateMode.js index ec41d88..35175a8 100644 --- a/example/src/examples/DateMode.js +++ b/example/src/examples/DateMode.js @@ -1,5 +1,5 @@ import React, { Component } from 'react'; -import DatePicker from 'react-native-date-picker-x'; +import DatePicker from 'react-native-date-picker'; export default class DateMode extends Component { @@ -10,8 +10,6 @@ export default class DateMode extends Component { date={this.state.date} onDateChange={date => this.setState({ date })} mode={'date'} - style={{borderWidth: 1}} - locale={'sv-SE'} /> } diff --git a/example/src/examples/Minimal.js b/example/src/examples/Minimal.js index fd93bbb..3d580b8 100644 --- a/example/src/examples/Minimal.js +++ b/example/src/examples/Minimal.js @@ -1,5 +1,5 @@ import React, { Component } from 'react'; -import DatePicker from 'react-native-date-picker-x'; +import DatePicker from 'react-native-date-picker'; export default class MinimalExample extends Component { diff --git a/example/src/examples/TimeMode.js b/example/src/examples/TimeMode.js index c07315d..c14d4bb 100644 --- a/example/src/examples/TimeMode.js +++ b/example/src/examples/TimeMode.js @@ -1,5 +1,5 @@ import React, { Component } from 'react'; -import DatePicker from 'react-native-date-picker-x'; +import DatePicker from 'react-native-date-picker'; export default class TimeMode extends Component { diff --git a/example/yarn.lock b/example/yarn.lock index a7a1f71..ae5b33c 100644 --- a/example/yarn.lock +++ b/example/yarn.lock @@ -4271,9 +4271,9 @@ react-is@^16.3.1: version "16.3.1" resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.3.1.tgz#ee66e6d8283224a83b3030e110056798488359ba" -react-native-date-picker-x@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/react-native-date-picker-x/-/react-native-date-picker-x-1.4.1.tgz#7484fc632767a606fcd239165b614cb3dbbf8b27" +react-native-date-picker@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/react-native-date-picker/-/react-native-date-picker-2.0.0.tgz#a2364e44ecf2bf7deef5da667444674d8b9ddbba" react-native-device-info@^0.22.5: version "0.22.5" diff --git a/ios/DatePickerX.xcodeproj/project.pbxproj b/ios/RNDatePicker.xcodeproj/project.pbxproj similarity index 84% rename from ios/DatePickerX.xcodeproj/project.pbxproj rename to ios/RNDatePicker.xcodeproj/project.pbxproj index cd1d34b..6c4e3b2 100644 --- a/ios/DatePickerX.xcodeproj/project.pbxproj +++ b/ios/RNDatePicker.xcodeproj/project.pbxproj @@ -7,7 +7,7 @@ objects = { /* Begin PBXBuildFile section */ - 5B5A664D2130B82E00599381 /* DatePickerXManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 5B5A664B2130B82D00599381 /* DatePickerXManager.m */; }; + 5B5A664D2130B82E00599381 /* RNDatePickerManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 5B5A664B2130B82D00599381 /* RNDatePickerManager.m */; }; DA5891DC1BA9A9FC002B4DB2 /* DatePicker.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = DA5891DB1BA9A9FC002B4DB2 /* DatePicker.h */; }; DA5891DE1BA9A9FC002B4DB2 /* DatePicker.m in Sources */ = {isa = PBXBuildFile; fileRef = DA5891DD1BA9A9FC002B4DB2 /* DatePicker.m */; }; /* End PBXBuildFile section */ @@ -26,9 +26,9 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 5B5A664B2130B82D00599381 /* DatePickerXManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DatePickerXManager.m; sourceTree = ""; }; - 5B5A664C2130B82E00599381 /* DatePickerXManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DatePickerXManager.h; sourceTree = ""; }; - DA5891D81BA9A9FC002B4DB2 /* libDatePickerX.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libDatePickerX.a; sourceTree = BUILT_PRODUCTS_DIR; }; + 5B5A664B2130B82D00599381 /* RNDatePickerManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNDatePickerManager.m; sourceTree = ""; }; + 5B5A664C2130B82E00599381 /* RNDatePickerManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNDatePickerManager.h; sourceTree = ""; }; + DA5891D81BA9A9FC002B4DB2 /* libRNDatePicker.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNDatePicker.a; sourceTree = BUILT_PRODUCTS_DIR; }; DA5891DB1BA9A9FC002B4DB2 /* DatePicker.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DatePicker.h; sourceTree = ""; }; DA5891DD1BA9A9FC002B4DB2 /* DatePicker.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = DatePicker.m; sourceTree = ""; }; /* End PBXFileReference section */ @@ -47,7 +47,7 @@ DA5891CF1BA9A9FC002B4DB2 = { isa = PBXGroup; children = ( - DA5891DA1BA9A9FC002B4DB2 /* DatePickerX */, + DA5891DA1BA9A9FC002B4DB2 /* RNDatePicker */, DA5891D91BA9A9FC002B4DB2 /* Products */, ); sourceTree = ""; @@ -55,28 +55,28 @@ DA5891D91BA9A9FC002B4DB2 /* Products */ = { isa = PBXGroup; children = ( - DA5891D81BA9A9FC002B4DB2 /* libDatePickerX.a */, + DA5891D81BA9A9FC002B4DB2 /* libRNDatePicker.a */, ); name = Products; sourceTree = ""; }; - DA5891DA1BA9A9FC002B4DB2 /* DatePickerX */ = { + DA5891DA1BA9A9FC002B4DB2 /* RNDatePicker */ = { isa = PBXGroup; children = ( - 5B5A664C2130B82E00599381 /* DatePickerXManager.h */, - 5B5A664B2130B82D00599381 /* DatePickerXManager.m */, + 5B5A664C2130B82E00599381 /* RNDatePickerManager.h */, + 5B5A664B2130B82D00599381 /* RNDatePickerManager.m */, DA5891DB1BA9A9FC002B4DB2 /* DatePicker.h */, DA5891DD1BA9A9FC002B4DB2 /* DatePicker.m */, ); - path = DatePickerX; + path = RNDatePicker; sourceTree = ""; }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - DA5891D71BA9A9FC002B4DB2 /* DatePickerX */ = { + DA5891D71BA9A9FC002B4DB2 /* RNDatePicker */ = { isa = PBXNativeTarget; - buildConfigurationList = DA5891E11BA9A9FC002B4DB2 /* Build configuration list for PBXNativeTarget "DatePickerX" */; + buildConfigurationList = DA5891E11BA9A9FC002B4DB2 /* Build configuration list for PBXNativeTarget "RNDatePicker" */; buildPhases = ( DA5891D41BA9A9FC002B4DB2 /* Sources */, DA5891D51BA9A9FC002B4DB2 /* Frameworks */, @@ -86,9 +86,9 @@ ); dependencies = ( ); - name = DatePickerX; + name = RNDatePicker; productName = RNDeviceInfo; - productReference = DA5891D81BA9A9FC002B4DB2 /* libDatePickerX.a */; + productReference = DA5891D81BA9A9FC002B4DB2 /* libRNDatePicker.a */; productType = "com.apple.product-type.library.static"; }; /* End PBXNativeTarget section */ @@ -105,7 +105,7 @@ }; }; }; - buildConfigurationList = DA5891D31BA9A9FC002B4DB2 /* Build configuration list for PBXProject "DatePickerX" */; + buildConfigurationList = DA5891D31BA9A9FC002B4DB2 /* Build configuration list for PBXProject "RNDatePicker" */; compatibilityVersion = "Xcode 3.2"; developmentRegion = English; hasScannedForEncodings = 0; @@ -117,7 +117,7 @@ projectDirPath = ""; projectRoot = ""; targets = ( - DA5891D71BA9A9FC002B4DB2 /* DatePickerX */, + DA5891D71BA9A9FC002B4DB2 /* RNDatePicker */, ); }; /* End PBXProject section */ @@ -128,7 +128,7 @@ buildActionMask = 2147483647; files = ( DA5891DE1BA9A9FC002B4DB2 /* DatePicker.m in Sources */, - 5B5A664D2130B82E00599381 /* DatePickerXManager.m in Sources */, + 5B5A664D2130B82E00599381 /* RNDatePickerManager.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -252,7 +252,7 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - DA5891D31BA9A9FC002B4DB2 /* Build configuration list for PBXProject "DatePickerX" */ = { + DA5891D31BA9A9FC002B4DB2 /* Build configuration list for PBXProject "RNDatePicker" */ = { isa = XCConfigurationList; buildConfigurations = ( DA5891DF1BA9A9FC002B4DB2 /* Debug */, @@ -261,7 +261,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - DA5891E11BA9A9FC002B4DB2 /* Build configuration list for PBXNativeTarget "DatePickerX" */ = { + DA5891E11BA9A9FC002B4DB2 /* Build configuration list for PBXNativeTarget "RNDatePicker" */ = { isa = XCConfigurationList; buildConfigurations = ( DA5891E21BA9A9FC002B4DB2 /* Debug */, diff --git a/ios/DatePickerX.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/RNDatePicker.xcodeproj/project.xcworkspace/contents.xcworkspacedata similarity index 90% rename from ios/DatePickerX.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename to ios/RNDatePicker.xcodeproj/project.xcworkspace/contents.xcworkspacedata index 9664117..3472480 100644 --- a/ios/DatePickerX.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ b/ios/RNDatePicker.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -2,6 +2,6 @@ + location = "self:/Users/henninghall/Projects/react-native-date-picker/example/node_modules/react-native-date-picker-x/ios/DatePicker.xcodeproj"> diff --git a/ios/DatePickerX/DatePicker.h b/ios/RNDatePicker/DatePicker.h similarity index 100% rename from ios/DatePickerX/DatePicker.h rename to ios/RNDatePicker/DatePicker.h diff --git a/ios/DatePickerX/DatePicker.m b/ios/RNDatePicker/DatePicker.m similarity index 100% rename from ios/DatePickerX/DatePicker.m rename to ios/RNDatePicker/DatePicker.m diff --git a/ios/DatePickerX/DatePickerXManager.h b/ios/RNDatePicker/RNDatePickerManager.h similarity index 87% rename from ios/DatePickerX/DatePickerXManager.h rename to ios/RNDatePicker/RNDatePickerManager.h index c8d1533..3d9e786 100644 --- a/ios/DatePickerX/DatePickerXManager.h +++ b/ios/RNDatePicker/RNDatePickerManager.h @@ -14,6 +14,6 @@ @end -@interface DatePickerXManager : RCTViewManager +@interface RNDatePickerManager : RCTViewManager @end diff --git a/ios/DatePickerX/DatePickerXManager.m b/ios/RNDatePicker/RNDatePickerManager.m similarity index 94% rename from ios/DatePickerX/DatePickerXManager.m rename to ios/RNDatePicker/RNDatePickerManager.m index 8d61660..0964d7f 100644 --- a/ios/DatePickerX/DatePickerXManager.m +++ b/ios/RNDatePicker/RNDatePickerManager.m @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#import "DatePickerXManager.h" +#import "RNDatePickerManager.h" #import "DatePicker.h" @@ -22,7 +22,7 @@ RCT_ENUM_CONVERTER(UIDatePickerMode, (@{ @end -@implementation DatePickerXManager +@implementation RNDatePickerManager RCT_EXPORT_MODULE()