packages = new PackageList(this).getPackages();
27 | // Packages that cannot be autolinked yet can be added manually here, for DatefieldExample:
28 | // packages.add(new MyReactNativePackage());
29 |
30 | return packages;
31 | }
32 |
33 | @Override
34 | protected String getJSMainModuleName() {
35 | return "index";
36 | }
37 | };
38 |
39 | @Override
40 | public ReactNativeHost getReactNativeHost() {
41 | return mReactNativeHost;
42 | }
43 |
44 | @Override
45 | public void onCreate() {
46 | super.onCreate();
47 | SoLoader.init(this, /* native exopackage */ false);
48 | initializeFlipper(this, getReactNativeHost().getReactInstanceManager()); // Remove this line if you don't want Flipper enabled
49 | }
50 |
51 | /**
52 | * Loads Flipper in React Native templates.
53 | *
54 | * @param context
55 | */
56 | private static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
57 | if (BuildConfig.DEBUG) {
58 | try {
59 | /*
60 | We use reflection here to pick up the class that initializes Flipper,
61 | since Flipper library is not available in release mode
62 | */
63 | Class> aClass = Class.forName("com.reactnativedatefieldExample.ReactNativeFlipper");
64 | aClass
65 | .getMethod("initializeFlipper", Context.class, ReactInstanceManager.class)
66 | .invoke(null, context, reactInstanceManager);
67 | } catch (ClassNotFoundException e) {
68 | e.printStackTrace();
69 | } catch (NoSuchMethodException e) {
70 | e.printStackTrace();
71 | } catch (IllegalAccessException e) {
72 | e.printStackTrace();
73 | } catch (InvocationTargetException e) {
74 | e.printStackTrace();
75 | }
76 | }
77 | }
78 | }
79 |
--------------------------------------------------------------------------------
/example/android/gradlew.bat:
--------------------------------------------------------------------------------
1 | @rem
2 | @rem Copyright 2015 the original author or authors.
3 | @rem
4 | @rem Licensed under the Apache License, Version 2.0 (the "License");
5 | @rem you may not use this file except in compliance with the License.
6 | @rem You may obtain a copy of the License at
7 | @rem
8 | @rem http://www.apache.org/licenses/LICENSE-2.0
9 | @rem
10 | @rem Unless required by applicable law or agreed to in writing, software
11 | @rem distributed under the License is distributed on an "AS IS" BASIS,
12 | @rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | @rem See the License for the specific language governing permissions and
14 | @rem limitations under the License.
15 | @rem
16 |
17 | @if "%DEBUG%" == "" @echo off
18 | @rem ##########################################################################
19 | @rem
20 | @rem Gradle startup script for Windows
21 | @rem
22 | @rem ##########################################################################
23 |
24 | @rem Set local scope for the variables with windows NT shell
25 | if "%OS%"=="Windows_NT" setlocal
26 |
27 | set DIRNAME=%~dp0
28 | if "%DIRNAME%" == "" set DIRNAME=.
29 | set APP_BASE_NAME=%~n0
30 | set APP_HOME=%DIRNAME%
31 |
32 | @rem Resolve any "." and ".." in APP_HOME to make it shorter.
33 | for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34 |
35 | @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
36 | set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
37 |
38 | @rem Find java.exe
39 | if defined JAVA_HOME goto findJavaFromJavaHome
40 |
41 | set JAVA_EXE=java.exe
42 | %JAVA_EXE% -version >NUL 2>&1
43 | if "%ERRORLEVEL%" == "0" goto init
44 |
45 | echo.
46 | echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
47 | echo.
48 | echo Please set the JAVA_HOME variable in your environment to match the
49 | echo location of your Java installation.
50 |
51 | goto fail
52 |
53 | :findJavaFromJavaHome
54 | set JAVA_HOME=%JAVA_HOME:"=%
55 | set JAVA_EXE=%JAVA_HOME%/bin/java.exe
56 |
57 | if exist "%JAVA_EXE%" goto init
58 |
59 | echo.
60 | echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
61 | echo.
62 | echo Please set the JAVA_HOME variable in your environment to match the
63 | echo location of your Java installation.
64 |
65 | goto fail
66 |
67 | :init
68 | @rem Get command-line arguments, handling Windows variants
69 |
70 | if not "%OS%" == "Windows_NT" goto win9xME_args
71 |
72 | :win9xME_args
73 | @rem Slurp the command line arguments.
74 | set CMD_LINE_ARGS=
75 | set _SKIP=2
76 |
77 | :win9xME_args_slurp
78 | if "x%~1" == "x" goto execute
79 |
80 | set CMD_LINE_ARGS=%*
81 |
82 | :execute
83 | @rem Setup the command line
84 |
85 | set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
86 |
87 | @rem Execute Gradle
88 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
89 |
90 | :end
91 | @rem End local scope for the variables with windows NT shell
92 | if "%ERRORLEVEL%"=="0" goto mainEnd
93 |
94 | :fail
95 | rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
96 | rem the _cmd.exe /c_ return code!
97 | if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
98 | exit /b 1
99 |
100 | :mainEnd
101 | if "%OS%"=="Windows_NT" endlocal
102 |
103 | :omega
104 |
--------------------------------------------------------------------------------
/example/android/app/src/debug/java/com/example/reactnativedatefield/ReactNativeFlipper.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) Facebook, Inc. and its affiliates.
3 | *
4 | * This source code is licensed under the MIT license found in the LICENSE file in the root
5 | * directory of this source tree.
6 | */
7 | package com.example.reactnativedatefield;
8 |
9 | import android.content.Context;
10 | import com.facebook.flipper.android.AndroidFlipperClient;
11 | import com.facebook.flipper.android.utils.FlipperUtils;
12 | import com.facebook.flipper.core.FlipperClient;
13 | import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin;
14 | import com.facebook.flipper.plugins.databases.DatabasesFlipperPlugin;
15 | import com.facebook.flipper.plugins.fresco.FrescoFlipperPlugin;
16 | import com.facebook.flipper.plugins.inspector.DescriptorMapping;
17 | import com.facebook.flipper.plugins.inspector.InspectorFlipperPlugin;
18 | import com.facebook.flipper.plugins.network.FlipperOkhttpInterceptor;
19 | import com.facebook.flipper.plugins.network.NetworkFlipperPlugin;
20 | import com.facebook.flipper.plugins.react.ReactFlipperPlugin;
21 | import com.facebook.flipper.plugins.sharedpreferences.SharedPreferencesFlipperPlugin;
22 | import com.facebook.react.ReactInstanceManager;
23 | import com.facebook.react.bridge.ReactContext;
24 | import com.facebook.react.modules.network.NetworkingModule;
25 | import okhttp3.OkHttpClient;
26 |
27 | public class ReactNativeFlipper {
28 | public static void initializeFlipper(Context context, ReactInstanceManager reactInstanceManager) {
29 | if (FlipperUtils.shouldEnableFlipper(context)) {
30 | final FlipperClient client = AndroidFlipperClient.getInstance(context);
31 | client.addPlugin(new InspectorFlipperPlugin(context, DescriptorMapping.withDefaults()));
32 | client.addPlugin(new ReactFlipperPlugin());
33 | client.addPlugin(new DatabasesFlipperPlugin(context));
34 | client.addPlugin(new SharedPreferencesFlipperPlugin(context));
35 | client.addPlugin(CrashReporterPlugin.getInstance());
36 | NetworkFlipperPlugin networkFlipperPlugin = new NetworkFlipperPlugin();
37 | NetworkingModule.setCustomClientBuilder(
38 | new NetworkingModule.CustomClientBuilder() {
39 | @Override
40 | public void apply(OkHttpClient.Builder builder) {
41 | builder.addNetworkInterceptor(new FlipperOkhttpInterceptor(networkFlipperPlugin));
42 | }
43 | });
44 | client.addPlugin(networkFlipperPlugin);
45 | client.start();
46 | // Fresco Plugin needs to ensure that ImagePipelineFactory is initialized
47 | // Hence we run if after all native modules have been initialized
48 | ReactContext reactContext = reactInstanceManager.getCurrentReactContext();
49 | if (reactContext == null) {
50 | reactInstanceManager.addReactInstanceEventListener(
51 | new ReactInstanceManager.ReactInstanceEventListener() {
52 | @Override
53 | public void onReactContextInitialized(ReactContext reactContext) {
54 | reactInstanceManager.removeReactInstanceEventListener(this);
55 | reactContext.runOnNativeModulesQueueThread(
56 | new Runnable() {
57 | @Override
58 | public void run() {
59 | client.addPlugin(new FrescoFlipperPlugin());
60 | }
61 | });
62 | }
63 | });
64 | } else {
65 | client.addPlugin(new FrescoFlipperPlugin());
66 | }
67 | }
68 | }
69 | }
70 |
--------------------------------------------------------------------------------
/src/__tests__/MonthDateYearField.spec.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { shallow } from 'enzyme';
3 | import toJson from 'enzyme-to-json';
4 | import MonthDateYearField from '../MonthDateYearField';
5 |
6 | describe('MonthDateYearField component', () => {
7 | it('should match snapshot', () => {
8 | const component = shallow();
9 | expect(component.length).toBe(1);
10 | expect(toJson(component)).toMatchSnapshot();
11 | });
12 |
13 | describe('Props', () => {
14 | it('testID', () => {
15 | const component = shallow();
16 | expect(component.length).toBe(1);
17 | expect(toJson(component)).toMatchSnapshot();
18 | });
19 |
20 | it('containerStyle', () => {
21 | const component = shallow(
22 |
23 | );
24 | expect(component.length).toBe(1);
25 | expect(toJson(component)).toMatchSnapshot();
26 | });
27 |
28 | it('styleInput', () => {
29 | const component = shallow(
30 |
31 | );
32 | expect(component.length).toBe(1);
33 | expect(toJson(component)).toMatchSnapshot();
34 | });
35 |
36 | it('labelDate', () => {
37 | const component = shallow();
38 | expect(component.length).toBe(1);
39 | expect(toJson(component)).toMatchSnapshot();
40 | });
41 |
42 | it('labelMonth', () => {
43 | const component = shallow(
44 |
45 | );
46 | expect(component.length).toBe(1);
47 | expect(toJson(component)).toMatchSnapshot();
48 | });
49 |
50 | it('labelYear', () => {
51 | const component = shallow();
52 | expect(component.length).toBe(1);
53 | expect(toJson(component)).toMatchSnapshot();
54 | });
55 |
56 | it('defaultValue', () => {
57 | const component = shallow(
58 |
59 | );
60 | expect(component.length).toBe(1);
61 | expect(toJson(component)).toMatchSnapshot();
62 | });
63 |
64 | it('onSubmit', () => {
65 | const component = shallow( {}} />);
66 | expect(component.length).toBe(1);
67 | expect(toJson(component)).toMatchSnapshot();
68 | });
69 |
70 | it('editable', () => {
71 | const component = shallow();
72 | expect(component.length).toBe(1);
73 | expect(toJson(component)).toMatchSnapshot();
74 | });
75 |
76 | it('placeholderTextColor', () => {
77 | const component = shallow(
78 |
79 | );
80 | expect(component.length).toBe(1);
81 | expect(toJson(component)).toMatchSnapshot();
82 | });
83 |
84 | it('maximumDate', () => {
85 | const component = shallow(
86 |
87 | );
88 | expect(component.length).toBe(1);
89 | expect(toJson(component)).toMatchSnapshot();
90 | });
91 |
92 | it('minimumDate', () => {
93 | const component = shallow(
94 |
95 | );
96 | expect(component.length).toBe(1);
97 | expect(toJson(component)).toMatchSnapshot();
98 | });
99 |
100 | it('handleErrors', () => {
101 | const component = shallow( {}} />);
102 | expect(component.length).toBe(1);
103 | expect(toJson(component)).toMatchSnapshot();
104 | });
105 | });
106 | });
107 |
--------------------------------------------------------------------------------
/src/__tests__/YearMonthDateField.spec.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { shallow } from 'enzyme';
3 | import toJson from 'enzyme-to-json';
4 | import YearMonthDateField from '../YearMonthDateField';
5 |
6 | describe('YearMonthDateField component', () => {
7 | it('should match snapshot', () => {
8 | const component = shallow();
9 | expect(component.length).toBe(1);
10 | expect(toJson(component)).toMatchSnapshot();
11 | });
12 |
13 | describe('Props', () => {
14 | it('testID', () => {
15 | const component = shallow();
16 | expect(component.length).toBe(1);
17 | expect(toJson(component)).toMatchSnapshot();
18 | });
19 |
20 | it('containerStyle', () => {
21 | const component = shallow(
22 |
23 | );
24 | expect(component.length).toBe(1);
25 | expect(toJson(component)).toMatchSnapshot();
26 | });
27 |
28 | it('styleInput', () => {
29 | const component = shallow(
30 |
31 | );
32 | expect(component.length).toBe(1);
33 | expect(toJson(component)).toMatchSnapshot();
34 | });
35 |
36 | it('labelDate', () => {
37 | const component = shallow();
38 | expect(component.length).toBe(1);
39 | expect(toJson(component)).toMatchSnapshot();
40 | });
41 |
42 | it('labelMonth', () => {
43 | const component = shallow(
44 |
45 | );
46 | expect(component.length).toBe(1);
47 | expect(toJson(component)).toMatchSnapshot();
48 | });
49 |
50 | it('labelYear', () => {
51 | const component = shallow();
52 | expect(component.length).toBe(1);
53 | expect(toJson(component)).toMatchSnapshot();
54 | });
55 |
56 | it('defaultValue', () => {
57 | const component = shallow(
58 |
59 | );
60 | expect(component.length).toBe(1);
61 | expect(toJson(component)).toMatchSnapshot();
62 | });
63 |
64 | it('onSubmit', () => {
65 | const component = shallow( {}} />);
66 | expect(component.length).toBe(1);
67 | expect(toJson(component)).toMatchSnapshot();
68 | });
69 |
70 | it('editable', () => {
71 | const component = shallow();
72 | expect(component.length).toBe(1);
73 | expect(toJson(component)).toMatchSnapshot();
74 | });
75 |
76 | it('placeholderTextColor', () => {
77 | const component = shallow(
78 |
79 | );
80 | expect(component.length).toBe(1);
81 | expect(toJson(component)).toMatchSnapshot();
82 | });
83 |
84 | it('maximumDate', () => {
85 | const component = shallow(
86 |
87 | );
88 | expect(component.length).toBe(1);
89 | expect(toJson(component)).toMatchSnapshot();
90 | });
91 |
92 | it('minimumDate', () => {
93 | const component = shallow(
94 |
95 | );
96 | expect(component.length).toBe(1);
97 | expect(toJson(component)).toMatchSnapshot();
98 | });
99 |
100 | it('handleErrors', () => {
101 | const component = shallow( {}} />);
102 | expect(component.length).toBe(1);
103 | expect(toJson(component)).toMatchSnapshot();
104 | });
105 | });
106 | });
107 |
--------------------------------------------------------------------------------
/src/__tests__/DateMonthYearField.spec.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { shallow } from 'enzyme';
3 | import toJson from 'enzyme-to-json';
4 | import DateMonthYearField from '../DateMonthYearField';
5 |
6 | describe('DateMonthYearField component', () => {
7 | it('should match snapshot', () => {
8 | const component = shallow();
9 | expect(component.length).toBe(1);
10 | expect(toJson(component)).toMatchSnapshot();
11 | });
12 |
13 | describe('Props', () => {
14 | it('testID', () => {
15 | const component = shallow();
16 | expect(component.length).toBe(1);
17 | expect(toJson(component)).toMatchSnapshot();
18 | });
19 |
20 | it('containerStyle', () => {
21 | const component = shallow(
22 |
23 | );
24 | expect(component.length).toBe(1);
25 | expect(toJson(component)).toMatchSnapshot();
26 | });
27 |
28 | it('styleInput', () => {
29 | const component = shallow(
30 |
31 | );
32 | expect(component.length).toBe(1);
33 | expect(toJson(component)).toMatchSnapshot();
34 | });
35 |
36 | it('labelDate', () => {
37 | const component = shallow();
38 | expect(component.length).toBe(1);
39 | expect(toJson(component)).toMatchSnapshot();
40 | });
41 |
42 | it('labelMonth', () => {
43 | const component = shallow(
44 |
45 | );
46 | expect(component.length).toBe(1);
47 | expect(toJson(component)).toMatchSnapshot();
48 | });
49 |
50 | it('labelYear', () => {
51 | const component = shallow();
52 | expect(component.length).toBe(1);
53 | expect(toJson(component)).toMatchSnapshot();
54 | });
55 |
56 | it('defaultValue', () => {
57 | const component = shallow(
58 |
59 | );
60 | expect(component.length).toBe(1);
61 | expect(toJson(component)).toMatchSnapshot();
62 | });
63 |
64 | it('onSubmit', () => {
65 | const component = shallow( {}} />);
66 | expect(component.length).toBe(1);
67 | expect(toJson(component)).toMatchSnapshot();
68 | });
69 |
70 | it('editable', () => {
71 | const component = shallow();
72 | expect(component.length).toBe(1);
73 | expect(toJson(component)).toMatchSnapshot();
74 | });
75 |
76 | it('hideDate', () => {
77 | const component = shallow();
78 | expect(component.length).toBe(1);
79 | expect(toJson(component)).toMatchSnapshot();
80 | });
81 |
82 | it('hideDate - check total length TextInput', () => {
83 | const component = shallow();
84 | expect(component.find('Memo(ForwardRef)')).toHaveLength(2);
85 | });
86 |
87 | it('placeholderTextColor', () => {
88 | const component = shallow(
89 |
90 | );
91 | expect(component.length).toBe(1);
92 | expect(toJson(component)).toMatchSnapshot();
93 | });
94 |
95 | it('maximumDate', () => {
96 | const component = shallow(
97 |
98 | );
99 | expect(component.length).toBe(1);
100 | expect(toJson(component)).toMatchSnapshot();
101 | });
102 |
103 | it('minimumDate', () => {
104 | const component = shallow(
105 |
106 | );
107 | expect(component.length).toBe(1);
108 | expect(toJson(component)).toMatchSnapshot();
109 | });
110 |
111 | it('handleErrors', () => {
112 | const component = shallow( {}} />);
113 | expect(component.length).toBe(1);
114 | expect(toJson(component)).toMatchSnapshot();
115 | });
116 | });
117 | });
118 |
--------------------------------------------------------------------------------
/example/ios/DatefieldExample.xcodeproj/xcshareddata/xcschemes/DatefieldExample.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
29 |
35 |
36 |
37 |
38 |
39 |
44 |
45 |
51 |
52 |
53 |
54 |
64 |
66 |
72 |
73 |
74 |
75 |
81 |
83 |
89 |
90 |
91 |
92 |
94 |
95 |
98 |
99 |
100 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-native-datefield",
3 | "version": "0.3.6",
4 | "description": "A simple React Native date input component",
5 | "main": "lib/commonjs/index",
6 | "module": "lib/module/index",
7 | "types": "lib/typescript/src/index.d.ts",
8 | "react-native": "src/index",
9 | "source": "src/index",
10 | "files": [
11 | "src",
12 | "lib",
13 | "android",
14 | "ios",
15 | "cpp",
16 | "react-native-datefield.podspec",
17 | "!lib/typescript/example",
18 | "!android/build",
19 | "!ios/build",
20 | "!**/__tests__",
21 | "!**/__fixtures__",
22 | "!**/__mocks__"
23 | ],
24 | "scripts": {
25 | "test": "jest",
26 | "test:update": "jest -u",
27 | "typescript": "tsc --noEmit",
28 | "lint": "eslint \"**/*.{js,ts,tsx}\"",
29 | "prepare": "bob build",
30 | "release": "release-it",
31 | "example": "yarn --cwd example",
32 | "pods": "cd example && pod-install --quiet",
33 | "bootstrap": "yarn example && yarn && yarn pods"
34 | },
35 | "keywords": [
36 | "react-native",
37 | "ios",
38 | "android",
39 | "react-native-datefield"
40 | ],
41 | "repository": "https://github.com/tuantvk/react-native-datefield",
42 | "author": "tuantvk (https://github.com/tuantvk)",
43 | "license": "MIT",
44 | "bugs": {
45 | "url": "https://github.com/tuantvk/react-native-datefield/issues"
46 | },
47 | "homepage": "https://github.com/tuantvk/react-native-datefield#readme",
48 | "publishConfig": {
49 | "registry": "https://registry.npmjs.org/"
50 | },
51 | "devDependencies": {
52 | "@commitlint/config-conventional": "^11.0.0",
53 | "@react-native-community/eslint-config": "^2.0.0",
54 | "@release-it/conventional-changelog": "^2.0.0",
55 | "@types/enzyme": "^3.10.8",
56 | "@types/enzyme-adapter-react-16": "^1.0.6",
57 | "@types/jest": "^26.0.0",
58 | "@types/react": "^16.9.19",
59 | "@types/react-native": "0.62.13",
60 | "commitlint": "^11.0.0",
61 | "enzyme": "^3.11.0",
62 | "enzyme-adapter-react-16": "^1.15.6",
63 | "enzyme-to-json": "^3.6.2",
64 | "eslint": "^7.2.0",
65 | "eslint-config-prettier": "^7.0.0",
66 | "eslint-plugin-prettier": "^3.1.3",
67 | "husky": "^4.2.5",
68 | "jest": "^26.0.1",
69 | "pod-install": "^0.1.0",
70 | "prettier": "^2.0.5",
71 | "react": "16.13.1",
72 | "react-dom": "^17.0.2",
73 | "react-native": "0.63.4",
74 | "react-native-builder-bob": "^0.18.0",
75 | "release-it": "^14.2.2",
76 | "typescript": "^4.1.3"
77 | },
78 | "peerDependencies": {
79 | "react": "*",
80 | "react-native": "*"
81 | },
82 | "jest": {
83 | "preset": "react-native",
84 | "modulePathIgnorePatterns": [
85 | "/example/node_modules",
86 | "/lib/"
87 | ],
88 | "setupFilesAfterEnv": [
89 | "/jestSetup.ts"
90 | ]
91 | },
92 | "husky": {
93 | "hooks": {
94 | "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
95 | "pre-commit": "yarn lint && yarn typescript"
96 | }
97 | },
98 | "commitlint": {
99 | "extends": [
100 | "@commitlint/config-conventional"
101 | ]
102 | },
103 | "release-it": {
104 | "git": {
105 | "commitMessage": "chore: release ${version}",
106 | "tagName": "v${version}"
107 | },
108 | "npm": {
109 | "publish": true
110 | },
111 | "github": {
112 | "release": true
113 | },
114 | "plugins": {
115 | "@release-it/conventional-changelog": {
116 | "preset": "angular"
117 | }
118 | }
119 | },
120 | "eslintConfig": {
121 | "root": true,
122 | "extends": [
123 | "@react-native-community",
124 | "prettier"
125 | ],
126 | "rules": {
127 | "prettier/prettier": [
128 | "error",
129 | {
130 | "quoteProps": "consistent",
131 | "singleQuote": true,
132 | "tabWidth": 2,
133 | "trailingComma": "es5",
134 | "useTabs": false
135 | }
136 | ]
137 | }
138 | },
139 | "eslintIgnore": [
140 | "node_modules/",
141 | "lib/"
142 | ],
143 | "prettier": {
144 | "quoteProps": "consistent",
145 | "singleQuote": true,
146 | "tabWidth": 2,
147 | "trailingComma": "es5",
148 | "useTabs": false
149 | },
150 | "react-native-builder-bob": {
151 | "source": "src",
152 | "output": "lib",
153 | "targets": [
154 | "commonjs",
155 | "module",
156 | [
157 | "typescript",
158 | {
159 | "project": "tsconfig.build.json"
160 | }
161 | ]
162 | ]
163 | }
164 | }
--------------------------------------------------------------------------------
/src/MonthDateYearField.tsx:
--------------------------------------------------------------------------------
1 | import React, { createRef } from 'react';
2 | import { View, Keyboard, TextInput } from 'react-native';
3 | import {
4 | int,
5 | isValidDate,
6 | formatYearDigits,
7 | getOnlyNumber,
8 | getDateDefault,
9 | daysInMonth,
10 | dateInRange,
11 | } from './utils';
12 | import Input from './Input';
13 | import type { DateFieldProps } from './types';
14 | import styles from './styles';
15 |
16 | type State = {
17 | date: string;
18 | month: string;
19 | year: string;
20 | };
21 |
22 | class MonthDateYearField extends React.Component {
23 | static defaultProps = {
24 | labelDate: 'Date',
25 | labelMonth: 'Month',
26 | labelYear: 'Year',
27 | editable: true,
28 | };
29 |
30 | state = { ...getDateDefault(this.props.defaultValue) };
31 |
32 | refDate = createRef();
33 | refMonth = createRef();
34 | refYear = createRef();
35 |
36 | componentDidMount() {
37 | if (this.props.autoFocus) {
38 | this.refMonth.current?.focus();
39 | }
40 | }
41 |
42 | UNSAFE_componentWillReceiveProps(nextProps: DateFieldProps) {
43 | if (
44 | JSON.stringify(getDateDefault(nextProps.value)) !==
45 | JSON.stringify(getDateDefault(this.props.value))
46 | ) {
47 | const { date, month, year } = getDateDefault(nextProps.value);
48 | const nextState = {
49 | date: date ? date.padStart(2, '0') : '',
50 | month: month ? month.padStart(2, '0') : '',
51 | year,
52 | };
53 | this.setState(nextState);
54 | }
55 | }
56 |
57 | onChangeDate = (value: string) => {
58 | const date = getOnlyNumber(int(value) > 31 ? '31' : value);
59 | this.setState({ date });
60 | if (date.length === 2) {
61 | this.refYear.current?.focus();
62 | }
63 | };
64 |
65 | onChangeMonth = (value: string) => {
66 | const month = getOnlyNumber(int(value) > 12 ? '12' : value);
67 | this.setState({
68 | month,
69 | date: daysInMonth(this.state),
70 | });
71 | if (month.length === 2) {
72 | this.refDate.current?.focus();
73 | }
74 | };
75 |
76 | onChangeYear = (value: string) => {
77 | const year = getOnlyNumber(value);
78 | this.setState({ year }, () => {
79 | if (year.length === 4) {
80 | Keyboard.dismiss();
81 | }
82 | });
83 | };
84 |
85 | onBlur = () => {
86 | const { maximumDate, minimumDate, handleErrors, onSubmit } = this.props;
87 | const current = { ...this.state };
88 | if (int(current.date) === 0) {
89 | current.date = '01';
90 | }
91 | if (current.date.length === 1) {
92 | current.date = current.date.padStart(2, '0');
93 | }
94 | if (int(current.month) === 0) {
95 | current.month = '01';
96 | }
97 | if (current.month.length === 1) {
98 | current.month = current.month.padStart(2, '0');
99 | }
100 | if (int(current.year) === 0) {
101 | current.year = `${new Date().getFullYear()}`;
102 | }
103 | if (current.year.length > 1 && current.year.length < 4) {
104 | current.year = `${formatYearDigits(int(current.year))}`;
105 | }
106 | const value = new Date(
107 | int(current.year),
108 | int(current.month) - 1, // new Date(year, monthIndex, day)
109 | int(current.date)
110 | );
111 | if (current.year) {
112 | if (
113 | (minimumDate || maximumDate) &&
114 | !dateInRange(value, minimumDate, maximumDate)
115 | ) {
116 | handleErrors && handleErrors();
117 | this.setState({ date: '', month: '', year: '' });
118 | } else {
119 | if (isValidDate(value)) {
120 | onSubmit && onSubmit(value);
121 | }
122 | this.setState({ ...current });
123 | }
124 | }
125 | };
126 |
127 | render() {
128 | const { date, month, year } = this.state;
129 | const {
130 | testID,
131 | containerStyle,
132 | styleInput,
133 | styleInputYear,
134 | labelDate,
135 | labelMonth,
136 | labelYear,
137 | editable,
138 | placeholderTextColor,
139 | } = this.props;
140 |
141 | return (
142 |
143 | this.refDate.current?.focus()}
150 | onBlur={this.onBlur}
151 | {...{ editable, placeholderTextColor }}
152 | />
153 | this.refYear.current?.focus()}
160 | onBlur={this.onBlur}
161 | {...{ editable, placeholderTextColor }}
162 | />
163 | Keyboard.dismiss()}
172 | onBlur={this.onBlur}
173 | {...{ editable, placeholderTextColor }}
174 | />
175 |
176 | );
177 | }
178 | }
179 |
180 | export default MonthDateYearField;
181 |
--------------------------------------------------------------------------------
/src/YearMonthDateField.tsx:
--------------------------------------------------------------------------------
1 | import React, { createRef } from 'react';
2 | import { View, Keyboard, TextInput } from 'react-native';
3 | import {
4 | int,
5 | isValidDate,
6 | formatYearDigits,
7 | getOnlyNumber,
8 | getDateDefault,
9 | daysInMonth,
10 | dateInRange,
11 | } from './utils';
12 | import Input from './Input';
13 | import type { DateFieldProps } from './types';
14 | import styles from './styles';
15 |
16 | type State = {
17 | date: string;
18 | month: string;
19 | year: string;
20 | };
21 |
22 | class YearMonthDateField extends React.Component {
23 | static defaultProps = {
24 | labelDate: 'Date',
25 | labelMonth: 'Month',
26 | labelYear: 'Year',
27 | editable: true,
28 | };
29 |
30 | state = { ...getDateDefault(this.props.defaultValue) };
31 |
32 | refDate = createRef();
33 | refMonth = createRef();
34 | refYear = createRef();
35 |
36 | componentDidMount() {
37 | if (this.props.autoFocus) {
38 | this.refYear.current?.focus();
39 | }
40 | }
41 |
42 | UNSAFE_componentWillReceiveProps(nextProps: DateFieldProps) {
43 | if (
44 | JSON.stringify(getDateDefault(nextProps.value)) !==
45 | JSON.stringify(getDateDefault(this.props.value))
46 | ) {
47 | const { date, month, year } = getDateDefault(nextProps.value);
48 | const nextState = {
49 | date: date ? date.padStart(2, '0') : '',
50 | month: month ? month.padStart(2, '0') : '',
51 | year,
52 | };
53 | this.setState(nextState);
54 | }
55 | }
56 |
57 | onChangeDate = (value: string) => {
58 | const date = getOnlyNumber(int(value) > 31 ? '31' : value);
59 | this.setState({ date }, () => {
60 | if (date.length === 2) {
61 | Keyboard.dismiss();
62 | }
63 | });
64 | };
65 |
66 | onChangeMonth = (value: string) => {
67 | const month = getOnlyNumber(int(value) > 12 ? '12' : value);
68 | this.setState({
69 | month,
70 | date: daysInMonth(this.state),
71 | });
72 | if (month.length === 2) {
73 | this.refDate.current?.focus();
74 | }
75 | };
76 |
77 | onChangeYear = (value: string) => {
78 | const year = getOnlyNumber(value);
79 | this.setState({ year });
80 | if (year.length === 4) {
81 | this.refMonth.current?.focus();
82 | }
83 | };
84 |
85 | onBlur = () => {
86 | const { maximumDate, minimumDate, handleErrors, onSubmit } = this.props;
87 | const current = { ...this.state };
88 | if (int(current.date) === 0) {
89 | current.date = '01';
90 | }
91 | if (current.date.length === 1) {
92 | current.date = current.date.padStart(2, '0');
93 | }
94 | if (int(current.month) === 0) {
95 | current.month = '01';
96 | }
97 | if (current.month.length === 1) {
98 | current.month = current.month.padStart(2, '0');
99 | }
100 | if (int(current.year) === 0) {
101 | current.year = `${new Date().getFullYear()}`;
102 | }
103 | if (current.year.length > 1 && current.year.length < 4) {
104 | current.year = `${formatYearDigits(int(current.year))}`;
105 | }
106 | const value = new Date(
107 | int(current.year),
108 | int(current.month) - 1, // new Date(year, monthIndex, day)
109 | int(current.date)
110 | );
111 | if (current.date) {
112 | if (
113 | (minimumDate || maximumDate) &&
114 | !dateInRange(value, minimumDate, maximumDate)
115 | ) {
116 | handleErrors && handleErrors();
117 | this.setState({ date: '', month: '', year: '' });
118 | } else {
119 | if (isValidDate(value)) {
120 | onSubmit && onSubmit(value);
121 | }
122 | this.setState({ ...current });
123 | }
124 | }
125 | };
126 |
127 | render() {
128 | const { date, month, year } = this.state;
129 | const {
130 | testID,
131 | containerStyle,
132 | styleInput,
133 | styleInputYear,
134 | labelDate,
135 | labelMonth,
136 | labelYear,
137 | editable,
138 | placeholderTextColor,
139 | } = this.props;
140 |
141 | return (
142 |
143 | this.refMonth.current?.focus()}
151 | onBlur={this.onBlur}
152 | {...{ editable, placeholderTextColor }}
153 | />
154 | this.refDate.current?.focus()}
161 | onBlur={this.onBlur}
162 | {...{ editable, placeholderTextColor }}
163 | />
164 | Keyboard.dismiss()}
172 | onBlur={this.onBlur}
173 | {...{ editable, placeholderTextColor }}
174 | />
175 |
176 | );
177 | }
178 | }
179 |
180 | export default YearMonthDateField;
181 |
--------------------------------------------------------------------------------
/src/DateMonthYearField.tsx:
--------------------------------------------------------------------------------
1 | import React, { createRef } from 'react';
2 | import { View, Keyboard, TextInput } from 'react-native';
3 | import {
4 | int,
5 | isValidDate,
6 | formatYearDigits,
7 | getOnlyNumber,
8 | getDateDefault,
9 | daysInMonth,
10 | dateInRange,
11 | } from './utils';
12 | import Input from './Input';
13 | import type { DateFieldProps } from './types';
14 | import styles from './styles';
15 |
16 | type State = {
17 | date: string;
18 | month: string;
19 | year: string;
20 | };
21 |
22 | class DateMonthYearField extends React.Component {
23 | static defaultProps = {
24 | labelDate: 'Date',
25 | labelMonth: 'Month',
26 | labelYear: 'Year',
27 | editable: true,
28 | };
29 |
30 | state = { ...getDateDefault(this.props.defaultValue) };
31 |
32 | refDate = createRef();
33 | refMonth = createRef();
34 | refYear = createRef();
35 |
36 | componentDidMount() {
37 | if (this.props.autoFocus) {
38 | this.refDate.current?.focus();
39 | }
40 | }
41 |
42 | UNSAFE_componentWillReceiveProps(nextProps: DateFieldProps) {
43 | if (
44 | JSON.stringify(getDateDefault(nextProps.value)) !==
45 | JSON.stringify(getDateDefault(this.props.value))
46 | ) {
47 | const { date, month, year } = getDateDefault(nextProps.value);
48 | const nextState = {
49 | date: date ? date.padStart(2, '0') : '',
50 | month: month ? month.padStart(2, '0') : '',
51 | year,
52 | };
53 | this.setState(nextState);
54 | }
55 | }
56 |
57 | onChangeDate = (value: string) => {
58 | const date = getOnlyNumber(int(value) > 31 ? '31' : value);
59 | this.setState({ date });
60 | if (date.length === 2) {
61 | this.refMonth.current?.focus();
62 | }
63 | };
64 |
65 | onChangeMonth = (value: string) => {
66 | const month = getOnlyNumber(int(value) > 12 ? '12' : value);
67 | this.setState({
68 | month,
69 | date: daysInMonth(this.state),
70 | });
71 | if (month.length === 2) {
72 | this.refYear.current?.focus();
73 | }
74 | };
75 |
76 | onChangeYear = (value: string) => {
77 | const year = getOnlyNumber(value);
78 | this.setState({ year }, () => {
79 | if (year.length === 4) {
80 | Keyboard.dismiss();
81 | }
82 | });
83 | };
84 |
85 | onBlur = () => {
86 | const {
87 | hideDate,
88 | maximumDate,
89 | minimumDate,
90 | handleErrors,
91 | onSubmit,
92 | } = this.props;
93 | const current = { ...this.state };
94 | if (int(current.date) === 0 || hideDate) {
95 | current.date = '01';
96 | }
97 | if (current.date.length === 1) {
98 | current.date = current.date.padStart(2, '0');
99 | }
100 | if (int(current.month) === 0) {
101 | current.month = '01';
102 | }
103 | if (current.month.length === 1) {
104 | current.month = current.month.padStart(2, '0');
105 | }
106 | if (int(current.year) === 0) {
107 | current.year = `${new Date().getFullYear()}`;
108 | }
109 | if (current.year.length > 1 && current.year.length < 4) {
110 | current.year = `${formatYearDigits(int(current.year))}`;
111 | }
112 | const value = new Date(
113 | int(current.year),
114 | int(current.month) - 1, // new Date(year, monthIndex, day)
115 | int(current.date)
116 | );
117 | if (current.year) {
118 | if (
119 | (minimumDate || maximumDate) &&
120 | !dateInRange(value, minimumDate, maximumDate)
121 | ) {
122 | handleErrors && handleErrors();
123 | this.setState({ date: '', month: '', year: '' });
124 | } else {
125 | if (isValidDate(value)) {
126 | onSubmit && onSubmit(value);
127 | }
128 | this.setState({ ...current });
129 | }
130 | }
131 | };
132 |
133 | render() {
134 | const { date, month, year } = this.state;
135 | const {
136 | testID,
137 | containerStyle,
138 | styleInput,
139 | styleInputYear,
140 | labelDate,
141 | labelMonth,
142 | labelYear,
143 | editable,
144 | hideDate,
145 | placeholderTextColor,
146 | } = this.props;
147 |
148 | return (
149 |
150 | {!hideDate && (
151 | this.refMonth.current?.focus()}
158 | onBlur={this.onBlur}
159 | {...{ editable, placeholderTextColor }}
160 | />
161 | )}
162 | this.refYear.current?.focus()}
169 | onBlur={this.onBlur}
170 | {...{ editable, placeholderTextColor }}
171 | />
172 | Keyboard.dismiss()}
181 | onBlur={this.onBlur}
182 | {...{ editable, placeholderTextColor }}
183 | />
184 |
185 | );
186 | }
187 | }
188 |
189 | export default DateMonthYearField;
190 |
--------------------------------------------------------------------------------
/example/ios/DatefieldExample/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
25 |
31 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
--------------------------------------------------------------------------------
/example/android/gradlew:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env sh
2 |
3 | #
4 | # Copyright 2015 the original author or authors.
5 | #
6 | # Licensed under the Apache License, Version 2.0 (the "License");
7 | # you may not use this file except in compliance with the License.
8 | # You may obtain a copy of the License at
9 | #
10 | # https://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing, software
13 | # distributed under the License is distributed on an "AS IS" BASIS,
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | # See the License for the specific language governing permissions and
16 | # limitations under the License.
17 | #
18 |
19 | ##############################################################################
20 | ##
21 | ## Gradle start up script for UN*X
22 | ##
23 | ##############################################################################
24 |
25 | # Attempt to set APP_HOME
26 | # Resolve links: $0 may be a link
27 | PRG="$0"
28 | # Need this for relative symlinks.
29 | while [ -h "$PRG" ] ; do
30 | ls=`ls -ld "$PRG"`
31 | link=`expr "$ls" : '.*-> \(.*\)$'`
32 | if expr "$link" : '/.*' > /dev/null; then
33 | PRG="$link"
34 | else
35 | PRG=`dirname "$PRG"`"/$link"
36 | fi
37 | done
38 | SAVED="`pwd`"
39 | cd "`dirname \"$PRG\"`/" >/dev/null
40 | APP_HOME="`pwd -P`"
41 | cd "$SAVED" >/dev/null
42 |
43 | APP_NAME="Gradle"
44 | APP_BASE_NAME=`basename "$0"`
45 |
46 | # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
47 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
48 |
49 | # Use the maximum available, or set MAX_FD != -1 to use that value.
50 | MAX_FD="maximum"
51 |
52 | warn () {
53 | echo "$*"
54 | }
55 |
56 | die () {
57 | echo
58 | echo "$*"
59 | echo
60 | exit 1
61 | }
62 |
63 | # OS specific support (must be 'true' or 'false').
64 | cygwin=false
65 | msys=false
66 | darwin=false
67 | nonstop=false
68 | case "`uname`" in
69 | CYGWIN* )
70 | cygwin=true
71 | ;;
72 | Darwin* )
73 | darwin=true
74 | ;;
75 | MINGW* )
76 | msys=true
77 | ;;
78 | NONSTOP* )
79 | nonstop=true
80 | ;;
81 | esac
82 |
83 | CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
84 |
85 | # Determine the Java command to use to start the JVM.
86 | if [ -n "$JAVA_HOME" ] ; then
87 | if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
88 | # IBM's JDK on AIX uses strange locations for the executables
89 | JAVACMD="$JAVA_HOME/jre/sh/java"
90 | else
91 | JAVACMD="$JAVA_HOME/bin/java"
92 | fi
93 | if [ ! -x "$JAVACMD" ] ; then
94 | die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
95 |
96 | Please set the JAVA_HOME variable in your environment to match the
97 | location of your Java installation."
98 | fi
99 | else
100 | JAVACMD="java"
101 | which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
102 |
103 | Please set the JAVA_HOME variable in your environment to match the
104 | location of your Java installation."
105 | fi
106 |
107 | # Increase the maximum file descriptors if we can.
108 | if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
109 | MAX_FD_LIMIT=`ulimit -H -n`
110 | if [ $? -eq 0 ] ; then
111 | if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
112 | MAX_FD="$MAX_FD_LIMIT"
113 | fi
114 | ulimit -n $MAX_FD
115 | if [ $? -ne 0 ] ; then
116 | warn "Could not set maximum file descriptor limit: $MAX_FD"
117 | fi
118 | else
119 | warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
120 | fi
121 | fi
122 |
123 | # For Darwin, add options to specify how the application appears in the dock
124 | if $darwin; then
125 | GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
126 | fi
127 |
128 | # For Cygwin or MSYS, switch paths to Windows format before running java
129 | if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
130 | APP_HOME=`cygpath --path --mixed "$APP_HOME"`
131 | CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
132 | JAVACMD=`cygpath --unix "$JAVACMD"`
133 |
134 | # We build the pattern for arguments to be converted via cygpath
135 | ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
136 | SEP=""
137 | for dir in $ROOTDIRSRAW ; do
138 | ROOTDIRS="$ROOTDIRS$SEP$dir"
139 | SEP="|"
140 | done
141 | OURCYGPATTERN="(^($ROOTDIRS))"
142 | # Add a user-defined pattern to the cygpath arguments
143 | if [ "$GRADLE_CYGPATTERN" != "" ] ; then
144 | OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
145 | fi
146 | # Now convert the arguments - kludge to limit ourselves to /bin/sh
147 | i=0
148 | for arg in "$@" ; do
149 | CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
150 | CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
151 |
152 | if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
153 | eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
154 | else
155 | eval `echo args$i`="\"$arg\""
156 | fi
157 | i=`expr $i + 1`
158 | done
159 | case $i in
160 | 0) set -- ;;
161 | 1) set -- "$args0" ;;
162 | 2) set -- "$args0" "$args1" ;;
163 | 3) set -- "$args0" "$args1" "$args2" ;;
164 | 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
165 | 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
166 | 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
167 | 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
168 | 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
169 | 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
170 | esac
171 | fi
172 |
173 | # Escape application args
174 | save () {
175 | for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
176 | echo " "
177 | }
178 | APP_ARGS=`save "$@"`
179 |
180 | # Collect all arguments for the java command, following the shell quoting and substitution rules
181 | eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
182 |
183 | exec "$JAVACMD" "$@"
184 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | react-native-datefield
2 |
3 |
4 |
5 |
6 | A simple React Native date input component
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | 
21 |
22 |
23 | ## Installation
24 |
25 | ```sh
26 | yarn add react-native-datefield
27 |
28 | or
29 |
30 | npm install react-native-datefield
31 | ```
32 |
33 |
34 | ## Usage
35 |
36 | ```js
37 | import DateField from 'react-native-datefield';
38 | ```
39 |
40 | or
41 |
42 | ```js
43 | const DateField = require('react-native-datefield');
44 | ```
45 |
46 | ```js
47 | console.log(value)}
50 | />
51 |
52 | console.log(value)}
59 | />
60 |
61 | console.log('ERROR')}
67 | />
68 |
69 | const styles = StyleSheet.create({
70 | inputBorder: {
71 | width: '30%',
72 | borderRadius: 8,
73 | borderColor: '#cacaca',
74 | borderWidth: 1,
75 | marginBottom: 20,
76 | },
77 | });
78 | ```
79 |
80 | ## Props
81 |
82 | | Property | Default | Option | Description |
83 | | --------------- |:---------:|:-----------:|:------------:|
84 | | testID | - | string | used to locate this view in end-to-end tests |
85 | | containerStyle | - | ViewStyle | styling for view containing the input |
86 | | styleInput | - | TextStyle | style that will be passed to the `style` props of the React Native `TextInput` |
87 | | styleInputYear | - | TextStyle | style only for year input |
88 | | labelDate | `Date` | string | add a label for date input |
89 | | labelMonth | `Month` | string | add a label for month input |
90 | | labelYear | `Year` | string | add a label for year input |
91 | | value | - | Date | defines the date value used in the component |
92 | | defaultValue | - | Date | an initial value that will change when the user starts typing |
93 | | onSubmit | - | (Date) => {}| callback that is called when blur and return `Date` value [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format|
94 | | editable | `true` | boolean | if `false`, text is not editable |
95 | | autoFocus | `false` | boolean | if `true`, auto focus to the first input |
96 | | hideDate | `false` | boolean | if `true`, `Date` input is not display, only support `DateField` |
97 | | placeholderTextColor | - | string | the text color of the placeholder string |
98 | | maximumDate | - | Date | defines the maximum date that can be filled |
99 | | minimumDate | - | Date | defines the minimum date that can be filled |
100 | | handleErrors | - | void | this is called when the user fills the date invalid |
101 |
102 |
103 | ## Example
104 |
105 | #### MonthDateYearField
106 |
107 | Display fields according to `month -> date -> year`.
108 |
109 | ```js
110 | import { MonthDateYearField } from 'react-native-datefield';
111 |
112 | console.log('MonthDateYearField', value)}
118 | />
119 |
120 | const styles = StyleSheet.create({
121 | containerStyle: {
122 | borderRadius: 15,
123 | backgroundColor: '#f4f4f4',
124 | paddingHorizontal: 25,
125 | marginBottom: 20,
126 | },
127 | });
128 | ```
129 |
130 | #### YearMonthDateField
131 |
132 | Display fields according to `year -> month -> date`.
133 |
134 | ```js
135 | import { YearMonthDateField } from 'react-native-datefield';
136 |
137 | console.log('YearMonthDateField', value)}
140 | />
141 |
142 | const styles = StyleSheet.create({
143 | inputBorder: {
144 | width: '30%',
145 | borderRadius: 8,
146 | borderColor: '#cacaca',
147 | borderWidth: 1,
148 | marginBottom: 20,
149 | },
150 | });
151 | ```
152 |
153 |
154 | #### momentjs
155 |
156 | Use [momentjs](https://momentjs.com) parse value from `onSubmit` function.
157 |
158 | Example:
159 |
160 | ```js
161 | import DateField from 'react-native-datefield';
162 | import moment from 'moment';
163 |
164 | console.log(moment(value).format("DD/MM/YYYY"))}
166 | />
167 | ```
168 |
169 | View more example [App.tsx](https://github.com/tuantvk/react-native-datefield/blob/master/example/src/App.tsx).
170 |
171 |
172 | ## Running the example app
173 |
174 | 1. Run `yarn` in repo root
175 | 2. Run `yarn example android` or `yarn example ios`
176 | 3. Run `yarn example start` to start Metro Bundler
177 |
178 |
179 | ## Troubleshooting
180 |
181 | #### When using `maximumDate` or `minimumDate` return wrong value
182 |
183 | If you use `maximumDate` or `minimumDate`, you should set default date to `new Date()`.
184 |
185 | Example:
186 |
187 | ```js
188 | // don't
189 |
194 | ```
195 |
196 | ```js
197 | // do
198 |
203 | ```
204 |
205 |
206 | ## Contributing
207 |
208 | See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
209 |
210 |
211 | ## Contributors
212 |
213 |
238 |
239 | ## License
240 |
241 | [MIT](LICENSE)
242 |
--------------------------------------------------------------------------------
/example/android/app/build.gradle:
--------------------------------------------------------------------------------
1 | apply plugin: "com.android.application"
2 |
3 | import com.android.build.OutputFile
4 |
5 | /**
6 | * The react.gradle file registers a task for each build variant (e.g. bundleDebugJsAndAssets
7 | * and bundleReleaseJsAndAssets).
8 | * These basically call `react-native bundle` with the correct arguments during the Android build
9 | * cycle. By default, bundleDebugJsAndAssets is skipped, as in debug/dev mode we prefer to load the
10 | * bundle directly from the development server. Below you can see all the possible configurations
11 | * and their defaults. If you decide to add a configuration block, make sure to add it before the
12 | * `apply from: "../../node_modules/react-native/react.gradle"` line.
13 | *
14 | * project.ext.react = [
15 | * // the name of the generated asset file containing your JS bundle
16 | * bundleAssetName: "index.android.bundle",
17 | *
18 | * // the entry file for bundle generation
19 | * entryFile: "index.android.js",
20 | *
21 | * // https://reactnative.dev/docs/performance#enable-the-ram-format
22 | * bundleCommand: "ram-bundle",
23 | *
24 | * // whether to bundle JS and assets in debug mode
25 | * bundleInDebug: false,
26 | *
27 | * // whether to bundle JS and assets in release mode
28 | * bundleInRelease: true,
29 | *
30 | * // whether to bundle JS and assets in another build variant (if configured).
31 | * // See http://tools.android.com/tech-docs/new-build-system/user-guide#TOC-Build-Variants
32 | * // The configuration property can be in the following formats
33 | * // 'bundleIn${productFlavor}${buildType}'
34 | * // 'bundleIn${buildType}'
35 | * // bundleInFreeDebug: true,
36 | * // bundleInPaidRelease: true,
37 | * // bundleInBeta: true,
38 | *
39 | * // whether to disable dev mode in custom build variants (by default only disabled in release)
40 | * // for DatefieldExample: to disable dev mode in the staging build type (if configured)
41 | * devDisabledInStaging: true,
42 | * // The configuration property can be in the following formats
43 | * // 'devDisabledIn${productFlavor}${buildType}'
44 | * // 'devDisabledIn${buildType}'
45 | *
46 | * // the root of your project, i.e. where "package.json" lives
47 | * root: "../../",
48 | *
49 | * // where to put the JS bundle asset in debug mode
50 | * jsBundleDirDebug: "$buildDir/intermediates/assets/debug",
51 | *
52 | * // where to put the JS bundle asset in release mode
53 | * jsBundleDirRelease: "$buildDir/intermediates/assets/release",
54 | *
55 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
56 | * // require('./image.png')), in debug mode
57 | * resourcesDirDebug: "$buildDir/intermediates/res/merged/debug",
58 | *
59 | * // where to put drawable resources / React Native assets, e.g. the ones you use via
60 | * // require('./image.png')), in release mode
61 | * resourcesDirRelease: "$buildDir/intermediates/res/merged/release",
62 | *
63 | * // by default the gradle tasks are skipped if none of the JS files or assets change; this means
64 | * // that we don't look at files in android/ or ios/ to determine whether the tasks are up to
65 | * // date; if you have any other folders that you want to ignore for performance reasons (gradle
66 | * // indexes the entire tree), add them here. Alternatively, if you have JS files in android/
67 | * // for DatefieldExample, you might want to remove it from here.
68 | * inputExcludes: ["android/**", "ios/**"],
69 | *
70 | * // override which node gets called and with what additional arguments
71 | * nodeExecutableAndArgs: ["node"],
72 | *
73 | * // supply additional arguments to the packager
74 | * extraPackagerArgs: []
75 | * ]
76 | */
77 |
78 | project.ext.react = [
79 | enableHermes: false, // clean and rebuild if changing
80 | entryFile: "index.tsx",
81 | ]
82 |
83 | apply from: "../../node_modules/react-native/react.gradle"
84 |
85 | /**
86 | * Set this to true to create two separate APKs instead of one:
87 | * - An APK that only works on ARM devices
88 | * - An APK that only works on x86 devices
89 | * The advantage is the size of the APK is reduced by about 4MB.
90 | * Upload all the APKs to the Play Store and people will download
91 | * the correct one based on the CPU architecture of their device.
92 | */
93 | def enableSeparateBuildPerCPUArchitecture = false
94 |
95 | /**
96 | * Run Proguard to shrink the Java bytecode in release builds.
97 | */
98 | def enableProguardInReleaseBuilds = false
99 |
100 | /**
101 | * The preferred build flavor of JavaScriptCore.
102 | *
103 | * For DatefieldExample, to use the international variant, you can use:
104 | * `def jscFlavor = 'org.webkit:android-jsc-intl:+'`
105 | *
106 | * The international variant includes ICU i18n library and necessary data
107 | * allowing to use e.g. `Date.toLocaleString` and `String.localeCompare` that
108 | * give correct results when using with locales other than en-US. Note that
109 | * this variant is about 6MiB larger per architecture than default.
110 | */
111 | def jscFlavor = 'org.webkit:android-jsc:+'
112 |
113 | /**
114 | * Whether to enable the Hermes VM.
115 | *
116 | * This should be set on project.ext.react and mirrored here. If it is not set
117 | * on project.ext.react, JavaScript will not be compiled to Hermes Bytecode
118 | * and the benefits of using Hermes will therefore be sharply reduced.
119 | */
120 | def enableHermes = project.ext.react.get("enableHermes", false);
121 |
122 | android {
123 | compileSdkVersion rootProject.ext.compileSdkVersion
124 |
125 | compileOptions {
126 | sourceCompatibility JavaVersion.VERSION_1_8
127 | targetCompatibility JavaVersion.VERSION_1_8
128 | }
129 |
130 | defaultConfig {
131 | applicationId "com.example.reactnativedatefield"
132 | minSdkVersion rootProject.ext.minSdkVersion
133 | targetSdkVersion rootProject.ext.targetSdkVersion
134 | versionCode 1
135 | versionName "1.0"
136 | }
137 | splits {
138 | abi {
139 | reset()
140 | enable enableSeparateBuildPerCPUArchitecture
141 | universalApk false // If true, also generate a universal APK
142 | include "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
143 | }
144 | }
145 | signingConfigs {
146 | debug {
147 | storeFile file('debug.keystore')
148 | storePassword 'android'
149 | keyAlias 'androiddebugkey'
150 | keyPassword 'android'
151 | }
152 | }
153 | buildTypes {
154 | debug {
155 | signingConfig signingConfigs.debug
156 | }
157 | release {
158 | // Caution! In production, you need to generate your own keystore file.
159 | // see https://reactnative.dev/docs/signed-apk-android.
160 | signingConfig signingConfigs.debug
161 | minifyEnabled enableProguardInReleaseBuilds
162 | proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
163 | }
164 | }
165 | // applicationVariants are e.g. debug, release
166 | applicationVariants.all { variant ->
167 | variant.outputs.each { output ->
168 | // For each separate APK per architecture, set a unique version code as described here:
169 | // https://developer.android.com/studio/build/configure-apk-splits.html
170 | def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
171 | def abi = output.getFilter(OutputFile.ABI)
172 | if (abi != null) { // null for the universal-debug, universal-release variants
173 | output.versionCodeOverride =
174 | versionCodes.get(abi) * 1048576 + defaultConfig.versionCode
175 | }
176 |
177 | }
178 | }
179 | }
180 |
181 | dependencies {
182 | implementation fileTree(dir: "libs", include: ["*.jar"])
183 | //noinspection GradleDynamicVersion
184 | implementation "com.facebook.react:react-native:+" // From node_modules
185 |
186 |
187 | implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.0.0"
188 | debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") {
189 | exclude group:'com.facebook.fbjni'
190 | }
191 | debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") {
192 | exclude group:'com.facebook.flipper'
193 | exclude group:'com.squareup.okhttp3', module:'okhttp'
194 | }
195 | debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") {
196 | exclude group:'com.facebook.flipper'
197 | }
198 |
199 | if (enableHermes) {
200 | def hermesPath = "../../node_modules/hermes-engine/android/";
201 | debugImplementation files(hermesPath + "hermes-debug.aar")
202 | releaseImplementation files(hermesPath + "hermes-release.aar")
203 | } else {
204 | implementation jscFlavor
205 | }
206 |
207 | }
208 |
209 | // Run this once to be able to run the application with BUCK
210 | // puts all compile dependencies into folder libs for BUCK to use
211 | task copyDownloadableDepsToLibs(type: Copy) {
212 | from configurations.compile
213 | into 'libs'
214 | }
215 |
216 | apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
217 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing
2 |
3 | We want this community to be friendly and respectful to each other. Please follow it in all your interactions with the project.
4 |
5 | ## Development workflow
6 |
7 | To get started with the project, run `yarn` in the root directory to install the required dependencies for each package:
8 |
9 | ```sh
10 | yarn
11 | ```
12 |
13 | > While it's possible to use [`npm`](https://github.com/npm/cli), the tooling is built around [`yarn`](https://classic.yarnpkg.com/), so you'll have an easier time if you use `yarn` for development.
14 |
15 | While developing, you can run the [example app](/example/) to test your changes. Any changes you make in your library's JavaScript code will be reflected in the example app without a rebuild. If you change any native code, then you'll need to rebuild the example app.
16 |
17 | To start the packager:
18 |
19 | ```sh
20 | yarn example start
21 | ```
22 |
23 | To run the example app on Android:
24 |
25 | ```sh
26 | yarn example android
27 | ```
28 |
29 | To run the example app on iOS:
30 |
31 | ```sh
32 | yarn example ios
33 | ```
34 |
35 | To run the example app on Web:
36 |
37 | ```sh
38 | yarn example web
39 | ```
40 |
41 | Make sure your code passes TypeScript and ESLint. Run the following to verify:
42 |
43 | ```sh
44 | yarn typescript
45 | yarn lint
46 | ```
47 |
48 | To fix formatting errors, run the following:
49 |
50 | ```sh
51 | yarn lint --fix
52 | ```
53 |
54 | Remember to add tests for your change if possible. Run the unit tests by:
55 |
56 | ```sh
57 | yarn test
58 | ```
59 |
60 | ### Commit message convention
61 |
62 | We follow the [conventional commits specification](https://www.conventionalcommits.org/en) for our commit messages:
63 |
64 | - `fix`: bug fixes, e.g. fix crash due to deprecated method.
65 | - `feat`: new features, e.g. add new method to the module.
66 | - `refactor`: code refactor, e.g. migrate from class components to hooks.
67 | - `docs`: changes into documentation, e.g. add usage example for the module..
68 | - `test`: adding or updating tests, e.g. add integration tests using detox.
69 | - `chore`: tooling changes, e.g. change CI config.
70 |
71 | Our pre-commit hooks verify that your commit message matches this format when committing.
72 |
73 | ### Linting and tests
74 |
75 | [ESLint](https://eslint.org/), [Prettier](https://prettier.io/), [TypeScript](https://www.typescriptlang.org/)
76 |
77 | We use [TypeScript](https://www.typescriptlang.org/) for type checking, [ESLint](https://eslint.org/) with [Prettier](https://prettier.io/) for linting and formatting the code, and [Jest](https://jestjs.io/) for testing.
78 |
79 | Our pre-commit hooks verify that the linter and tests pass when committing.
80 |
81 | ### Publishing to npm
82 |
83 | We use [release-it](https://github.com/release-it/release-it) to make it easier to publish new versions. It handles common tasks like bumping version based on semver, creating tags and releases etc.
84 |
85 | To publish new versions, run the following:
86 |
87 | ```sh
88 | yarn release
89 | ```
90 |
91 | ### Scripts
92 |
93 | The `package.json` file contains various scripts for common tasks:
94 |
95 | - `yarn bootstrap`: setup project by installing all dependencies and pods.
96 | - `yarn typescript`: type-check files with TypeScript.
97 | - `yarn lint`: lint files with ESLint.
98 | - `yarn test`: run unit tests with Jest.
99 | - `yarn example start`: start the Metro server for the example app.
100 | - `yarn example android`: run the example app on Android.
101 | - `yarn example ios`: run the example app on iOS.
102 |
103 | ### Sending a pull request
104 |
105 | > **Working on your first pull request?** You can learn how from this _free_ series: [How to Contribute to an Open Source Project on GitHub](https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github).
106 |
107 | When you're sending a pull request:
108 |
109 | - Prefer small pull requests focused on one change.
110 | - Verify that linters and tests are passing.
111 | - Review the documentation to make sure it looks good.
112 | - Follow the pull request template when opening a pull request.
113 | - For pull requests that change the API or implementation, discuss with maintainers first by opening an issue.
114 |
115 | ## Code of Conduct
116 |
117 | ### Our Pledge
118 |
119 | We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
120 |
121 | We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
122 |
123 | ### Our Standards
124 |
125 | Examples of behavior that contributes to a positive environment for our community include:
126 |
127 | - Demonstrating empathy and kindness toward other people
128 | - Being respectful of differing opinions, viewpoints, and experiences
129 | - Giving and gracefully accepting constructive feedback
130 | - Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
131 | - Focusing on what is best not just for us as individuals, but for the overall community
132 |
133 | Examples of unacceptable behavior include:
134 |
135 | - The use of sexualized language or imagery, and sexual attention or
136 | advances of any kind
137 | - Trolling, insulting or derogatory comments, and personal or political attacks
138 | - Public or private harassment
139 | - Publishing others' private information, such as a physical or email
140 | address, without their explicit permission
141 | - Other conduct which could reasonably be considered inappropriate in a
142 | professional setting
143 |
144 | ### Enforcement Responsibilities
145 |
146 | Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
147 |
148 | Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
149 |
150 | ### Scope
151 |
152 | This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
153 |
154 | ### Enforcement
155 |
156 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [INSERT CONTACT METHOD]. All complaints will be reviewed and investigated promptly and fairly.
157 |
158 | All community leaders are obligated to respect the privacy and security of the reporter of any incident.
159 |
160 | ### Enforcement Guidelines
161 |
162 | Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
163 |
164 | #### 1. Correction
165 |
166 | **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
167 |
168 | **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
169 |
170 | #### 2. Warning
171 |
172 | **Community Impact**: A violation through a single incident or series of actions.
173 |
174 | **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
175 |
176 | #### 3. Temporary Ban
177 |
178 | **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
179 |
180 | **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
181 |
182 | #### 4. Permanent Ban
183 |
184 | **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
185 |
186 | **Consequence**: A permanent ban from any sort of public interaction within the community.
187 |
188 | ### Attribution
189 |
190 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
191 | available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
192 |
193 | Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
194 |
195 | [homepage]: https://www.contributor-covenant.org
196 |
197 | For answers to common questions about this code of conduct, see the FAQ at
198 | https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
199 |
--------------------------------------------------------------------------------
/src/__tests__/__snapshots__/MonthDateYearField.spec.tsx.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`MonthDateYearField component Props containerStyle 1`] = `
4 |
18 |
26 |
34 |
50 |
51 | `;
52 |
53 | exports[`MonthDateYearField component Props defaultValue 1`] = `
54 |
66 |
74 |
82 |
98 |
99 | `;
100 |
101 | exports[`MonthDateYearField component Props editable 1`] = `
102 |
114 |
122 |
130 |
146 |
147 | `;
148 |
149 | exports[`MonthDateYearField component Props handleErrors 1`] = `
150 |
162 |
170 |
178 |
194 |
195 | `;
196 |
197 | exports[`MonthDateYearField component Props labelDate 1`] = `
198 |
210 |
218 |
226 |
242 |
243 | `;
244 |
245 | exports[`MonthDateYearField component Props labelMonth 1`] = `
246 |
258 |
266 |
274 |
290 |
291 | `;
292 |
293 | exports[`MonthDateYearField component Props labelYear 1`] = `
294 |
306 |
314 |
322 |
338 |
339 | `;
340 |
341 | exports[`MonthDateYearField component Props maximumDate 1`] = `
342 |
354 |
362 |
370 |
386 |
387 | `;
388 |
389 | exports[`MonthDateYearField component Props minimumDate 1`] = `
390 |
402 |
410 |
418 |
434 |
435 | `;
436 |
437 | exports[`MonthDateYearField component Props onSubmit 1`] = `
438 |
450 |
458 |
466 |
482 |
483 | `;
484 |
485 | exports[`MonthDateYearField component Props placeholderTextColor 1`] = `
486 |
498 |
507 |
516 |
533 |
534 | `;
535 |
536 | exports[`MonthDateYearField component Props styleInput 1`] = `
537 |
549 |
562 |
575 |
593 |
594 | `;
595 |
596 | exports[`MonthDateYearField component Props testID 1`] = `
597 |
610 |
618 |
626 |
642 |
643 | `;
644 |
645 | exports[`MonthDateYearField component should match snapshot 1`] = `
646 |
658 |
666 |
674 |
690 |
691 | `;
692 |
--------------------------------------------------------------------------------
/src/__tests__/__snapshots__/YearMonthDateField.spec.tsx.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`YearMonthDateField component Props containerStyle 1`] = `
4 |
18 |
27 |
35 |
50 |
51 | `;
52 |
53 | exports[`YearMonthDateField component Props defaultValue 1`] = `
54 |
66 |
75 |
83 |
98 |
99 | `;
100 |
101 | exports[`YearMonthDateField component Props editable 1`] = `
102 |
114 |
123 |
131 |
146 |
147 | `;
148 |
149 | exports[`YearMonthDateField component Props handleErrors 1`] = `
150 |
162 |
171 |
179 |
194 |
195 | `;
196 |
197 | exports[`YearMonthDateField component Props labelDate 1`] = `
198 |
210 |
219 |
227 |
242 |
243 | `;
244 |
245 | exports[`YearMonthDateField component Props labelMonth 1`] = `
246 |
258 |
267 |
275 |
290 |
291 | `;
292 |
293 | exports[`YearMonthDateField component Props labelYear 1`] = `
294 |
306 |
315 |
323 |
338 |
339 | `;
340 |
341 | exports[`YearMonthDateField component Props maximumDate 1`] = `
342 |
354 |
363 |
371 |
386 |
387 | `;
388 |
389 | exports[`YearMonthDateField component Props minimumDate 1`] = `
390 |
402 |
411 |
419 |
434 |
435 | `;
436 |
437 | exports[`YearMonthDateField component Props onSubmit 1`] = `
438 |
450 |
459 |
467 |
482 |
483 | `;
484 |
485 | exports[`YearMonthDateField component Props placeholderTextColor 1`] = `
486 |
498 |
508 |
517 |
533 |
534 | `;
535 |
536 | exports[`YearMonthDateField component Props styleInput 1`] = `
537 |
549 |
563 |
576 |
593 |
594 | `;
595 |
596 | exports[`YearMonthDateField component Props testID 1`] = `
597 |
610 |
619 |
627 |
642 |
643 | `;
644 |
645 | exports[`YearMonthDateField component should match snapshot 1`] = `
646 |
658 |
667 |
675 |
690 |
691 | `;
692 |
--------------------------------------------------------------------------------
/src/__tests__/__snapshots__/DateMonthYearField.spec.tsx.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`DateMonthYearField component Props containerStyle 1`] = `
4 |
18 |
26 |
34 |
50 |
51 | `;
52 |
53 | exports[`DateMonthYearField component Props defaultValue 1`] = `
54 |
66 |
74 |
82 |
98 |
99 | `;
100 |
101 | exports[`DateMonthYearField component Props editable 1`] = `
102 |
114 |
122 |
130 |
146 |
147 | `;
148 |
149 | exports[`DateMonthYearField component Props handleErrors 1`] = `
150 |
162 |
170 |
178 |
194 |
195 | `;
196 |
197 | exports[`DateMonthYearField component Props hideDate 1`] = `
198 |
210 |
218 |
234 |
235 | `;
236 |
237 | exports[`DateMonthYearField component Props labelDate 1`] = `
238 |
250 |
258 |
266 |
282 |
283 | `;
284 |
285 | exports[`DateMonthYearField component Props labelMonth 1`] = `
286 |
298 |
306 |
314 |
330 |
331 | `;
332 |
333 | exports[`DateMonthYearField component Props labelYear 1`] = `
334 |
346 |
354 |
362 |
378 |
379 | `;
380 |
381 | exports[`DateMonthYearField component Props maximumDate 1`] = `
382 |
394 |
402 |
410 |
426 |
427 | `;
428 |
429 | exports[`DateMonthYearField component Props minimumDate 1`] = `
430 |
442 |
450 |
458 |
474 |
475 | `;
476 |
477 | exports[`DateMonthYearField component Props onSubmit 1`] = `
478 |
490 |
498 |
506 |
522 |
523 | `;
524 |
525 | exports[`DateMonthYearField component Props placeholderTextColor 1`] = `
526 |
538 |
547 |
556 |
573 |
574 | `;
575 |
576 | exports[`DateMonthYearField component Props styleInput 1`] = `
577 |
589 |
602 |
615 |
633 |
634 | `;
635 |
636 | exports[`DateMonthYearField component Props testID 1`] = `
637 |
650 |
658 |
666 |
682 |
683 | `;
684 |
685 | exports[`DateMonthYearField component should match snapshot 1`] = `
686 |
698 |
706 |
714 |
730 |
731 | `;
732 |
--------------------------------------------------------------------------------
/example/ios/Podfile.lock:
--------------------------------------------------------------------------------
1 | PODS:
2 | - boost-for-react-native (1.63.0)
3 | - CocoaAsyncSocket (7.6.5)
4 | - DoubleConversion (1.1.6)
5 | - FBLazyVector (0.63.4)
6 | - FBReactNativeSpec (0.63.4):
7 | - Folly (= 2020.01.13.00)
8 | - RCTRequired (= 0.63.4)
9 | - RCTTypeSafety (= 0.63.4)
10 | - React-Core (= 0.63.4)
11 | - React-jsi (= 0.63.4)
12 | - ReactCommon/turbomodule/core (= 0.63.4)
13 | - Flipper (0.87.0):
14 | - Flipper-Folly (~> 2.5)
15 | - Flipper-RSocket (~> 1.3)
16 | - Flipper-DoubleConversion (1.1.7)
17 | - Flipper-Folly (2.5.3):
18 | - boost-for-react-native
19 | - Flipper-DoubleConversion
20 | - Flipper-Glog
21 | - libevent (~> 2.1.12)
22 | - OpenSSL-Universal (= 1.1.180)
23 | - Flipper-Glog (0.3.6)
24 | - Flipper-PeerTalk (0.0.4)
25 | - Flipper-RSocket (1.3.1):
26 | - Flipper-Folly (~> 2.5)
27 | - FlipperKit (0.87.0):
28 | - FlipperKit/Core (= 0.87.0)
29 | - FlipperKit/Core (0.87.0):
30 | - Flipper (~> 0.87.0)
31 | - FlipperKit/CppBridge
32 | - FlipperKit/FBCxxFollyDynamicConvert
33 | - FlipperKit/FBDefines
34 | - FlipperKit/FKPortForwarding
35 | - FlipperKit/CppBridge (0.87.0):
36 | - Flipper (~> 0.87.0)
37 | - FlipperKit/FBCxxFollyDynamicConvert (0.87.0):
38 | - Flipper-Folly (~> 2.5)
39 | - FlipperKit/FBDefines (0.87.0)
40 | - FlipperKit/FKPortForwarding (0.87.0):
41 | - CocoaAsyncSocket (~> 7.6)
42 | - Flipper-PeerTalk (~> 0.0.4)
43 | - FlipperKit/FlipperKitHighlightOverlay (0.87.0)
44 | - FlipperKit/FlipperKitLayoutHelpers (0.87.0):
45 | - FlipperKit/Core
46 | - FlipperKit/FlipperKitHighlightOverlay
47 | - FlipperKit/FlipperKitLayoutTextSearchable
48 | - FlipperKit/FlipperKitLayoutIOSDescriptors (0.87.0):
49 | - FlipperKit/Core
50 | - FlipperKit/FlipperKitHighlightOverlay
51 | - FlipperKit/FlipperKitLayoutHelpers
52 | - YogaKit (~> 1.18)
53 | - FlipperKit/FlipperKitLayoutPlugin (0.87.0):
54 | - FlipperKit/Core
55 | - FlipperKit/FlipperKitHighlightOverlay
56 | - FlipperKit/FlipperKitLayoutHelpers
57 | - FlipperKit/FlipperKitLayoutIOSDescriptors
58 | - FlipperKit/FlipperKitLayoutTextSearchable
59 | - YogaKit (~> 1.18)
60 | - FlipperKit/FlipperKitLayoutTextSearchable (0.87.0)
61 | - FlipperKit/FlipperKitNetworkPlugin (0.87.0):
62 | - FlipperKit/Core
63 | - FlipperKit/FlipperKitReactPlugin (0.87.0):
64 | - FlipperKit/Core
65 | - FlipperKit/FlipperKitUserDefaultsPlugin (0.87.0):
66 | - FlipperKit/Core
67 | - FlipperKit/SKIOSNetworkPlugin (0.87.0):
68 | - FlipperKit/Core
69 | - FlipperKit/FlipperKitNetworkPlugin
70 | - Folly (2020.01.13.00):
71 | - boost-for-react-native
72 | - DoubleConversion
73 | - Folly/Default (= 2020.01.13.00)
74 | - glog
75 | - Folly/Default (2020.01.13.00):
76 | - boost-for-react-native
77 | - DoubleConversion
78 | - glog
79 | - glog (0.3.5)
80 | - libevent (2.1.12)
81 | - OpenSSL-Universal (1.1.180)
82 | - RCTRequired (0.63.4)
83 | - RCTTypeSafety (0.63.4):
84 | - FBLazyVector (= 0.63.4)
85 | - Folly (= 2020.01.13.00)
86 | - RCTRequired (= 0.63.4)
87 | - React-Core (= 0.63.4)
88 | - React (0.63.4):
89 | - React-Core (= 0.63.4)
90 | - React-Core/DevSupport (= 0.63.4)
91 | - React-Core/RCTWebSocket (= 0.63.4)
92 | - React-RCTActionSheet (= 0.63.4)
93 | - React-RCTAnimation (= 0.63.4)
94 | - React-RCTBlob (= 0.63.4)
95 | - React-RCTImage (= 0.63.4)
96 | - React-RCTLinking (= 0.63.4)
97 | - React-RCTNetwork (= 0.63.4)
98 | - React-RCTSettings (= 0.63.4)
99 | - React-RCTText (= 0.63.4)
100 | - React-RCTVibration (= 0.63.4)
101 | - React-callinvoker (0.63.4)
102 | - React-Core (0.63.4):
103 | - Folly (= 2020.01.13.00)
104 | - glog
105 | - React-Core/Default (= 0.63.4)
106 | - React-cxxreact (= 0.63.4)
107 | - React-jsi (= 0.63.4)
108 | - React-jsiexecutor (= 0.63.4)
109 | - Yoga
110 | - React-Core/CoreModulesHeaders (0.63.4):
111 | - Folly (= 2020.01.13.00)
112 | - glog
113 | - React-Core/Default
114 | - React-cxxreact (= 0.63.4)
115 | - React-jsi (= 0.63.4)
116 | - React-jsiexecutor (= 0.63.4)
117 | - Yoga
118 | - React-Core/Default (0.63.4):
119 | - Folly (= 2020.01.13.00)
120 | - glog
121 | - React-cxxreact (= 0.63.4)
122 | - React-jsi (= 0.63.4)
123 | - React-jsiexecutor (= 0.63.4)
124 | - Yoga
125 | - React-Core/DevSupport (0.63.4):
126 | - Folly (= 2020.01.13.00)
127 | - glog
128 | - React-Core/Default (= 0.63.4)
129 | - React-Core/RCTWebSocket (= 0.63.4)
130 | - React-cxxreact (= 0.63.4)
131 | - React-jsi (= 0.63.4)
132 | - React-jsiexecutor (= 0.63.4)
133 | - React-jsinspector (= 0.63.4)
134 | - Yoga
135 | - React-Core/RCTActionSheetHeaders (0.63.4):
136 | - Folly (= 2020.01.13.00)
137 | - glog
138 | - React-Core/Default
139 | - React-cxxreact (= 0.63.4)
140 | - React-jsi (= 0.63.4)
141 | - React-jsiexecutor (= 0.63.4)
142 | - Yoga
143 | - React-Core/RCTAnimationHeaders (0.63.4):
144 | - Folly (= 2020.01.13.00)
145 | - glog
146 | - React-Core/Default
147 | - React-cxxreact (= 0.63.4)
148 | - React-jsi (= 0.63.4)
149 | - React-jsiexecutor (= 0.63.4)
150 | - Yoga
151 | - React-Core/RCTBlobHeaders (0.63.4):
152 | - Folly (= 2020.01.13.00)
153 | - glog
154 | - React-Core/Default
155 | - React-cxxreact (= 0.63.4)
156 | - React-jsi (= 0.63.4)
157 | - React-jsiexecutor (= 0.63.4)
158 | - Yoga
159 | - React-Core/RCTImageHeaders (0.63.4):
160 | - Folly (= 2020.01.13.00)
161 | - glog
162 | - React-Core/Default
163 | - React-cxxreact (= 0.63.4)
164 | - React-jsi (= 0.63.4)
165 | - React-jsiexecutor (= 0.63.4)
166 | - Yoga
167 | - React-Core/RCTLinkingHeaders (0.63.4):
168 | - Folly (= 2020.01.13.00)
169 | - glog
170 | - React-Core/Default
171 | - React-cxxreact (= 0.63.4)
172 | - React-jsi (= 0.63.4)
173 | - React-jsiexecutor (= 0.63.4)
174 | - Yoga
175 | - React-Core/RCTNetworkHeaders (0.63.4):
176 | - Folly (= 2020.01.13.00)
177 | - glog
178 | - React-Core/Default
179 | - React-cxxreact (= 0.63.4)
180 | - React-jsi (= 0.63.4)
181 | - React-jsiexecutor (= 0.63.4)
182 | - Yoga
183 | - React-Core/RCTSettingsHeaders (0.63.4):
184 | - Folly (= 2020.01.13.00)
185 | - glog
186 | - React-Core/Default
187 | - React-cxxreact (= 0.63.4)
188 | - React-jsi (= 0.63.4)
189 | - React-jsiexecutor (= 0.63.4)
190 | - Yoga
191 | - React-Core/RCTTextHeaders (0.63.4):
192 | - Folly (= 2020.01.13.00)
193 | - glog
194 | - React-Core/Default
195 | - React-cxxreact (= 0.63.4)
196 | - React-jsi (= 0.63.4)
197 | - React-jsiexecutor (= 0.63.4)
198 | - Yoga
199 | - React-Core/RCTVibrationHeaders (0.63.4):
200 | - Folly (= 2020.01.13.00)
201 | - glog
202 | - React-Core/Default
203 | - React-cxxreact (= 0.63.4)
204 | - React-jsi (= 0.63.4)
205 | - React-jsiexecutor (= 0.63.4)
206 | - Yoga
207 | - React-Core/RCTWebSocket (0.63.4):
208 | - Folly (= 2020.01.13.00)
209 | - glog
210 | - React-Core/Default (= 0.63.4)
211 | - React-cxxreact (= 0.63.4)
212 | - React-jsi (= 0.63.4)
213 | - React-jsiexecutor (= 0.63.4)
214 | - Yoga
215 | - React-CoreModules (0.63.4):
216 | - FBReactNativeSpec (= 0.63.4)
217 | - Folly (= 2020.01.13.00)
218 | - RCTTypeSafety (= 0.63.4)
219 | - React-Core/CoreModulesHeaders (= 0.63.4)
220 | - React-jsi (= 0.63.4)
221 | - React-RCTImage (= 0.63.4)
222 | - ReactCommon/turbomodule/core (= 0.63.4)
223 | - React-cxxreact (0.63.4):
224 | - boost-for-react-native (= 1.63.0)
225 | - DoubleConversion
226 | - Folly (= 2020.01.13.00)
227 | - glog
228 | - React-callinvoker (= 0.63.4)
229 | - React-jsinspector (= 0.63.4)
230 | - React-jsi (0.63.4):
231 | - boost-for-react-native (= 1.63.0)
232 | - DoubleConversion
233 | - Folly (= 2020.01.13.00)
234 | - glog
235 | - React-jsi/Default (= 0.63.4)
236 | - React-jsi/Default (0.63.4):
237 | - boost-for-react-native (= 1.63.0)
238 | - DoubleConversion
239 | - Folly (= 2020.01.13.00)
240 | - glog
241 | - React-jsiexecutor (0.63.4):
242 | - DoubleConversion
243 | - Folly (= 2020.01.13.00)
244 | - glog
245 | - React-cxxreact (= 0.63.4)
246 | - React-jsi (= 0.63.4)
247 | - React-jsinspector (0.63.4)
248 | - React-RCTActionSheet (0.63.4):
249 | - React-Core/RCTActionSheetHeaders (= 0.63.4)
250 | - React-RCTAnimation (0.63.4):
251 | - FBReactNativeSpec (= 0.63.4)
252 | - Folly (= 2020.01.13.00)
253 | - RCTTypeSafety (= 0.63.4)
254 | - React-Core/RCTAnimationHeaders (= 0.63.4)
255 | - React-jsi (= 0.63.4)
256 | - ReactCommon/turbomodule/core (= 0.63.4)
257 | - React-RCTBlob (0.63.4):
258 | - FBReactNativeSpec (= 0.63.4)
259 | - Folly (= 2020.01.13.00)
260 | - React-Core/RCTBlobHeaders (= 0.63.4)
261 | - React-Core/RCTWebSocket (= 0.63.4)
262 | - React-jsi (= 0.63.4)
263 | - React-RCTNetwork (= 0.63.4)
264 | - ReactCommon/turbomodule/core (= 0.63.4)
265 | - React-RCTImage (0.63.4):
266 | - FBReactNativeSpec (= 0.63.4)
267 | - Folly (= 2020.01.13.00)
268 | - RCTTypeSafety (= 0.63.4)
269 | - React-Core/RCTImageHeaders (= 0.63.4)
270 | - React-jsi (= 0.63.4)
271 | - React-RCTNetwork (= 0.63.4)
272 | - ReactCommon/turbomodule/core (= 0.63.4)
273 | - React-RCTLinking (0.63.4):
274 | - FBReactNativeSpec (= 0.63.4)
275 | - React-Core/RCTLinkingHeaders (= 0.63.4)
276 | - React-jsi (= 0.63.4)
277 | - ReactCommon/turbomodule/core (= 0.63.4)
278 | - React-RCTNetwork (0.63.4):
279 | - FBReactNativeSpec (= 0.63.4)
280 | - Folly (= 2020.01.13.00)
281 | - RCTTypeSafety (= 0.63.4)
282 | - React-Core/RCTNetworkHeaders (= 0.63.4)
283 | - React-jsi (= 0.63.4)
284 | - ReactCommon/turbomodule/core (= 0.63.4)
285 | - React-RCTSettings (0.63.4):
286 | - FBReactNativeSpec (= 0.63.4)
287 | - Folly (= 2020.01.13.00)
288 | - RCTTypeSafety (= 0.63.4)
289 | - React-Core/RCTSettingsHeaders (= 0.63.4)
290 | - React-jsi (= 0.63.4)
291 | - ReactCommon/turbomodule/core (= 0.63.4)
292 | - React-RCTText (0.63.4):
293 | - React-Core/RCTTextHeaders (= 0.63.4)
294 | - React-RCTVibration (0.63.4):
295 | - FBReactNativeSpec (= 0.63.4)
296 | - Folly (= 2020.01.13.00)
297 | - React-Core/RCTVibrationHeaders (= 0.63.4)
298 | - React-jsi (= 0.63.4)
299 | - ReactCommon/turbomodule/core (= 0.63.4)
300 | - ReactCommon/turbomodule/core (0.63.4):
301 | - DoubleConversion
302 | - Folly (= 2020.01.13.00)
303 | - glog
304 | - React-callinvoker (= 0.63.4)
305 | - React-Core (= 0.63.4)
306 | - React-cxxreact (= 0.63.4)
307 | - React-jsi (= 0.63.4)
308 | - Yoga (1.14.0)
309 | - YogaKit (1.18.1):
310 | - Yoga (~> 1.14)
311 |
312 | DEPENDENCIES:
313 | - DoubleConversion (from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`)
314 | - FBLazyVector (from `../node_modules/react-native/Libraries/FBLazyVector`)
315 | - FBReactNativeSpec (from `../node_modules/react-native/Libraries/FBReactNativeSpec`)
316 | - Flipper (= 0.87.0)
317 | - Flipper-DoubleConversion (= 1.1.7)
318 | - Flipper-Folly (= 2.5.3)
319 | - Flipper-Glog (= 0.3.6)
320 | - Flipper-PeerTalk (~> 0.0.4)
321 | - Flipper-RSocket (= 1.3.1)
322 | - FlipperKit (= 0.87.0)
323 | - FlipperKit/Core (= 0.87.0)
324 | - FlipperKit/CppBridge (= 0.87.0)
325 | - FlipperKit/FBCxxFollyDynamicConvert (= 0.87.0)
326 | - FlipperKit/FBDefines (= 0.87.0)
327 | - FlipperKit/FKPortForwarding (= 0.87.0)
328 | - FlipperKit/FlipperKitHighlightOverlay (= 0.87.0)
329 | - FlipperKit/FlipperKitLayoutPlugin (= 0.87.0)
330 | - FlipperKit/FlipperKitLayoutTextSearchable (= 0.87.0)
331 | - FlipperKit/FlipperKitNetworkPlugin (= 0.87.0)
332 | - FlipperKit/FlipperKitReactPlugin (= 0.87.0)
333 | - FlipperKit/FlipperKitUserDefaultsPlugin (= 0.87.0)
334 | - FlipperKit/SKIOSNetworkPlugin (= 0.87.0)
335 | - Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`)
336 | - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
337 | - RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
338 | - RCTTypeSafety (from `../node_modules/react-native/Libraries/TypeSafety`)
339 | - React (from `../node_modules/react-native/`)
340 | - React-callinvoker (from `../node_modules/react-native/ReactCommon/callinvoker`)
341 | - React-Core (from `../node_modules/react-native/`)
342 | - React-Core/DevSupport (from `../node_modules/react-native/`)
343 | - React-Core/RCTWebSocket (from `../node_modules/react-native/`)
344 | - React-CoreModules (from `../node_modules/react-native/React/CoreModules`)
345 | - React-cxxreact (from `../node_modules/react-native/ReactCommon/cxxreact`)
346 | - React-jsi (from `../node_modules/react-native/ReactCommon/jsi`)
347 | - React-jsiexecutor (from `../node_modules/react-native/ReactCommon/jsiexecutor`)
348 | - React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector`)
349 | - React-RCTActionSheet (from `../node_modules/react-native/Libraries/ActionSheetIOS`)
350 | - React-RCTAnimation (from `../node_modules/react-native/Libraries/NativeAnimation`)
351 | - React-RCTBlob (from `../node_modules/react-native/Libraries/Blob`)
352 | - React-RCTImage (from `../node_modules/react-native/Libraries/Image`)
353 | - React-RCTLinking (from `../node_modules/react-native/Libraries/LinkingIOS`)
354 | - React-RCTNetwork (from `../node_modules/react-native/Libraries/Network`)
355 | - React-RCTSettings (from `../node_modules/react-native/Libraries/Settings`)
356 | - React-RCTText (from `../node_modules/react-native/Libraries/Text`)
357 | - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
358 | - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
359 | - Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
360 |
361 | SPEC REPOS:
362 | trunk:
363 | - boost-for-react-native
364 | - CocoaAsyncSocket
365 | - Flipper
366 | - Flipper-DoubleConversion
367 | - Flipper-Folly
368 | - Flipper-Glog
369 | - Flipper-PeerTalk
370 | - Flipper-RSocket
371 | - FlipperKit
372 | - libevent
373 | - OpenSSL-Universal
374 | - YogaKit
375 |
376 | EXTERNAL SOURCES:
377 | DoubleConversion:
378 | :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec"
379 | FBLazyVector:
380 | :path: "../node_modules/react-native/Libraries/FBLazyVector"
381 | FBReactNativeSpec:
382 | :path: "../node_modules/react-native/Libraries/FBReactNativeSpec"
383 | Folly:
384 | :podspec: "../node_modules/react-native/third-party-podspecs/Folly.podspec"
385 | glog:
386 | :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
387 | RCTRequired:
388 | :path: "../node_modules/react-native/Libraries/RCTRequired"
389 | RCTTypeSafety:
390 | :path: "../node_modules/react-native/Libraries/TypeSafety"
391 | React:
392 | :path: "../node_modules/react-native/"
393 | React-callinvoker:
394 | :path: "../node_modules/react-native/ReactCommon/callinvoker"
395 | React-Core:
396 | :path: "../node_modules/react-native/"
397 | React-CoreModules:
398 | :path: "../node_modules/react-native/React/CoreModules"
399 | React-cxxreact:
400 | :path: "../node_modules/react-native/ReactCommon/cxxreact"
401 | React-jsi:
402 | :path: "../node_modules/react-native/ReactCommon/jsi"
403 | React-jsiexecutor:
404 | :path: "../node_modules/react-native/ReactCommon/jsiexecutor"
405 | React-jsinspector:
406 | :path: "../node_modules/react-native/ReactCommon/jsinspector"
407 | React-RCTActionSheet:
408 | :path: "../node_modules/react-native/Libraries/ActionSheetIOS"
409 | React-RCTAnimation:
410 | :path: "../node_modules/react-native/Libraries/NativeAnimation"
411 | React-RCTBlob:
412 | :path: "../node_modules/react-native/Libraries/Blob"
413 | React-RCTImage:
414 | :path: "../node_modules/react-native/Libraries/Image"
415 | React-RCTLinking:
416 | :path: "../node_modules/react-native/Libraries/LinkingIOS"
417 | React-RCTNetwork:
418 | :path: "../node_modules/react-native/Libraries/Network"
419 | React-RCTSettings:
420 | :path: "../node_modules/react-native/Libraries/Settings"
421 | React-RCTText:
422 | :path: "../node_modules/react-native/Libraries/Text"
423 | React-RCTVibration:
424 | :path: "../node_modules/react-native/Libraries/Vibration"
425 | ReactCommon:
426 | :path: "../node_modules/react-native/ReactCommon"
427 | Yoga:
428 | :path: "../node_modules/react-native/ReactCommon/yoga"
429 |
430 | SPEC CHECKSUMS:
431 | boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
432 | CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
433 | DoubleConversion: cde416483dac037923206447da6e1454df403714
434 | FBLazyVector: 3bb422f41b18121b71783a905c10e58606f7dc3e
435 | FBReactNativeSpec: f2c97f2529dd79c083355182cc158c9f98f4bd6e
436 | Flipper: 1bd2db48dcc31e4b167b9a33ec1df01c2ded4893
437 | Flipper-DoubleConversion: 38631e41ef4f9b12861c67d17cb5518d06badc41
438 | Flipper-Folly: 755929a4f851b2fb2c347d533a23f191b008554c
439 | Flipper-Glog: 1dfd6abf1e922806c52ceb8701a3599a79a200a6
440 | Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9
441 | Flipper-RSocket: 127954abe8b162fcaf68d2134d34dc2bd7076154
442 | FlipperKit: 651f50a42eb95c01b3e89a60996dd6aded529eeb
443 | Folly: b73c3869541e86821df3c387eb0af5f65addfab4
444 | glog: 40a13f7840415b9a77023fbcae0f1e6f43192af3
445 | libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
446 | OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b
447 | RCTRequired: 082f10cd3f905d6c124597fd1c14f6f2655ff65e
448 | RCTTypeSafety: 8c9c544ecbf20337d069e4ae7fd9a377aadf504b
449 | React: b0a957a2c44da4113b0c4c9853d8387f8e64e615
450 | React-callinvoker: c3f44dd3cb195b6aa46621fff95ded79d59043fe
451 | React-Core: d3b2a1ac9a2c13c3bcde712d9281fc1c8a5b315b
452 | React-CoreModules: 0581ff36cb797da0943d424f69e7098e43e9be60
453 | React-cxxreact: c1480d4fda5720086c90df537ee7d285d4c57ac3
454 | React-jsi: a0418934cf48f25b485631deb27c64dc40fb4c31
455 | React-jsiexecutor: 93bd528844ad21dc07aab1c67cb10abae6df6949
456 | React-jsinspector: 58aef7155bc9a9683f5b60b35eccea8722a4f53a
457 | React-RCTActionSheet: 89a0ca9f4a06c1f93c26067af074ccdce0f40336
458 | React-RCTAnimation: 1bde3ecc0c104c55df246eda516e0deb03c4e49b
459 | React-RCTBlob: a97d378b527740cc667e03ebfa183a75231ab0f0
460 | React-RCTImage: c1b1f2d3f43a4a528c8946d6092384b5c880d2f0
461 | React-RCTLinking: 35ae4ab9dc0410d1fcbdce4d7623194a27214fb2
462 | React-RCTNetwork: 29ec2696f8d8cfff7331fac83d3e893c95ef43ae
463 | React-RCTSettings: 60f0691bba2074ef394f95d4c2265ec284e0a46a
464 | React-RCTText: 5c51df3f08cb9dedc6e790161195d12bac06101c
465 | React-RCTVibration: ae4f914cfe8de7d4de95ae1ea6cc8f6315d73d9d
466 | ReactCommon: 73d79c7039f473b76db6ff7c6b159c478acbbb3b
467 | Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6
468 | YogaKit: f782866e155069a2cca2517aafea43200b01fd5a
469 |
470 | PODFILE CHECKSUM: 1b92fa4410b29d2d01902b87d817790a9d2b9323
471 |
472 | COCOAPODS: 1.10.1
473 |
--------------------------------------------------------------------------------