diff --git a/lib/components/Keyboard/KeyboardTrackingView/index.tsx b/lib/components/Keyboard/KeyboardTrackingView/index.tsx index 5f6799c15d..7f727aaeed 100644 --- a/lib/components/Keyboard/KeyboardTrackingView/index.tsx +++ b/lib/components/Keyboard/KeyboardTrackingView/index.tsx @@ -82,15 +82,22 @@ export type KeyboardTrackingViewProps = ViewProps & { children?: React.ReactNode; }; +const defaultProps: KeyboardTrackingViewProps = {}; const KeyboardTrackingView = forwardRef(({children, ...others}: KeyboardTrackingViewProps, ref: any) => { const KeyboardTrackingViewContainer = isAndroid ? KeyboardTrackingViewAndroid : KeyboardTrackingViewIOS; return ( - + {children} ); }); -export default KeyboardTrackingView as (typeof KeyboardTrackingView & {scrollBehaviors: typeof SCROLL_BEHAVIORS}); -// @ts-expect-error -KeyboardTrackingView.scrollBehaviors = SCROLL_BEHAVIORS; +type KeyboardTrackingViewType = typeof KeyboardTrackingView & { + scrollBehaviors: typeof SCROLL_BEHAVIORS; + defaultProps: typeof defaultProps; +}; + +(KeyboardTrackingView as KeyboardTrackingViewType).defaultProps = defaultProps; +(KeyboardTrackingView as KeyboardTrackingViewType).scrollBehaviors = SCROLL_BEHAVIORS; + +export default KeyboardTrackingView as KeyboardTrackingViewType; diff --git a/lib/package.json b/lib/package.json index 0c61b6a28d..7950cc8bb5 100644 --- a/lib/package.json +++ b/lib/package.json @@ -1,6 +1,6 @@ { "name": "uilib-native", - "version": "5.0.1", + "version": "5.1.0", "homepage": "https://github.com/wix/react-native-ui-lib", "description": "uilib native components (separated from js components)", "main": "components/index", diff --git a/packages/react-native-ui-lib/ios/rnuilib.xcodeproj/project.pbxproj b/packages/react-native-ui-lib/ios/rnuilib.xcodeproj/project.pbxproj index cdfc1c34db..a2494badb9 100644 --- a/packages/react-native-ui-lib/ios/rnuilib.xcodeproj/project.pbxproj +++ b/packages/react-native-ui-lib/ios/rnuilib.xcodeproj/project.pbxproj @@ -12,7 +12,7 @@ 10C29C852DCE7AED0050BB15 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 10C29C842DCE7AED0050BB15 /* main.m */; }; 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; 2D02E4BD1E0B4A84006451C7 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; }; - 6EAFD7E7529D6AB2A14B24D0 /* libPods-rnuilib.a in Frameworks */ = {isa = PBXBuildFile; fileRef = A5F4BED900EB839D3EF75D75 /* libPods-rnuilib.a */; }; + 47EF422756B5B59E050F6650 /* libPods-rnuilib.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 915D61EED47E4EEAC9E3939E /* libPods-rnuilib.a */; }; 8E52CBDF2887DD21009D5EC5 /* DesignTokens.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 8E52CBDE2887DD21009D5EC5 /* DesignTokens.xcassets */; }; 8E8B0D662744D9CD0026B520 /* void.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8E8B0D652744D9CD0026B520 /* void.swift */; }; 8EA1FC8C2519E7F7008B4B36 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8EA1FC8B2519E7F7008B4B36 /* LaunchScreen.storyboard */; }; @@ -50,13 +50,13 @@ 2D02E47B1E0B4A5D006451C7 /* rnuilib-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "rnuilib-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 2D02E4901E0B4A5D006451C7 /* rnuilib-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "rnuilib-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 411699F1CD4A37F8779A4620 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = rnuilib/PrivacyInfo.xcprivacy; sourceTree = ""; }; - 89D43FD524252AEE9A5E7F9C /* Pods-rnuilib.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-rnuilib.debug.xcconfig"; path = "Target Support Files/Pods-rnuilib/Pods-rnuilib.debug.xcconfig"; sourceTree = ""; }; + 67B8F278E58645A4FFC68F0C /* Pods-rnuilib.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-rnuilib.release.xcconfig"; path = "Target Support Files/Pods-rnuilib/Pods-rnuilib.release.xcconfig"; sourceTree = ""; }; 8E52CBDE2887DD21009D5EC5 /* DesignTokens.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = DesignTokens.xcassets; sourceTree = ""; }; 8E8B0D652744D9CD0026B520 /* void.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = void.swift; sourceTree = ""; }; 8EA1FC8B2519E7F7008B4B36 /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = rnuilib/LaunchScreen.storyboard; sourceTree = ""; }; - 9EA158686F413620FCD02168 /* Pods-rnuilib.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-rnuilib.release.xcconfig"; path = "Target Support Files/Pods-rnuilib/Pods-rnuilib.release.xcconfig"; sourceTree = ""; }; - A5F4BED900EB839D3EF75D75 /* libPods-rnuilib.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-rnuilib.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + 915D61EED47E4EEAC9E3939E /* libPods-rnuilib.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-rnuilib.a"; sourceTree = BUILT_PRODUCTS_DIR; }; DED5A85D4BF49DFA47437893 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xml; name = PrivacyInfo.xcprivacy; path = rnuilib/PrivacyInfo.xcprivacy; sourceTree = ""; }; + EC2782D69A183B3AC6D25662 /* Pods-rnuilib.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-rnuilib.debug.xcconfig"; path = "Target Support Files/Pods-rnuilib/Pods-rnuilib.debug.xcconfig"; sourceTree = ""; }; ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; }; ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; }; /* End PBXFileReference section */ @@ -73,7 +73,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 6EAFD7E7529D6AB2A14B24D0 /* libPods-rnuilib.a in Frameworks */, + 47EF422756B5B59E050F6650 /* libPods-rnuilib.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -117,7 +117,7 @@ children = ( ED297162215061F000B7C4FE /* JavaScriptCore.framework */, ED2971642150620600B7C4FE /* JavaScriptCore.framework */, - A5F4BED900EB839D3EF75D75 /* libPods-rnuilib.a */, + 915D61EED47E4EEAC9E3939E /* libPods-rnuilib.a */, ); name = Frameworks; sourceTree = ""; @@ -158,8 +158,8 @@ D99C980AB24A05601E0007F9 /* Pods */ = { isa = PBXGroup; children = ( - 89D43FD524252AEE9A5E7F9C /* Pods-rnuilib.debug.xcconfig */, - 9EA158686F413620FCD02168 /* Pods-rnuilib.release.xcconfig */, + EC2782D69A183B3AC6D25662 /* Pods-rnuilib.debug.xcconfig */, + 67B8F278E58645A4FFC68F0C /* Pods-rnuilib.release.xcconfig */, ); path = Pods; sourceTree = ""; @@ -189,14 +189,14 @@ isa = PBXNativeTarget; buildConfigurationList = 13B07F931A680F5B00A75B9A /* Build configuration list for PBXNativeTarget "rnuilib" */; buildPhases = ( - 2B3E3342862A1D4E28900479 /* [CP] Check Pods Manifest.lock */, + D78E9F4BA4EF6F012B5BDA3E /* [CP] Check Pods Manifest.lock */, FD10A7F022414F080027D42C /* Start Packager */, 13B07F871A680F5B00A75B9A /* Sources */, 13B07F8C1A680F5B00A75B9A /* Frameworks */, 13B07F8E1A680F5B00A75B9A /* Resources */, 00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */, - 1B61ADD6D1E9D386513664AA /* [CP] Embed Pods Frameworks */, - E08E7F233B2BD017DCECEA3C /* [CP] Copy Pods Resources */, + F7959C68F26F6BEE34F78D43 /* [CP] Embed Pods Frameworks */, + 1516A2CEA36A1193FED081AC /* [CP] Copy Pods Resources */, ); buildRules = ( ); @@ -345,86 +345,86 @@ shellPath = /bin/sh; shellScript = "set -e\n\nWITH_ENVIRONMENT=\"../node_modules/react-native/scripts/xcode/with-environment.sh\"\nREACT_NATIVE_XCODE=\"../node_modules/react-native/scripts/react-native-xcode.sh\"\n\n/bin/sh -c \"$WITH_ENVIRONMENT $REACT_NATIVE_XCODE\"\n"; }; - 1B61ADD6D1E9D386513664AA /* [CP] Embed Pods Frameworks */ = { + 1516A2CEA36A1193FED081AC /* [CP] Copy Pods Resources */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-rnuilib/Pods-rnuilib-frameworks.sh", - "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/Pre-built/hermes.framework/hermes", + "${PODS_ROOT}/Target Support Files/Pods-rnuilib/Pods-rnuilib-resources.sh", + "${PODS_CONFIGURATION_BUILD_DIR}/RCT-Folly/RCT-Folly_privacy.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/RNSVG/RNSVGFilters.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/React-Core_privacy.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/React-cxxreact/React-cxxreact_privacy.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/boost/boost_privacy.bundle", + "${PODS_CONFIGURATION_BUILD_DIR}/glog/glog_privacy.bundle", ); - name = "[CP] Embed Pods Frameworks"; + name = "[CP] Copy Pods Resources"; outputPaths = ( - "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RCT-Folly_privacy.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RNSVGFilters.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/React-Core_privacy.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/React-cxxreact_privacy.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/boost_privacy.bundle", + "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/glog_privacy.bundle", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-rnuilib/Pods-rnuilib-frameworks.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-rnuilib/Pods-rnuilib-resources.sh\"\n"; showEnvVarsInLog = 0; }; - 2B3E3342862A1D4E28900479 /* [CP] Check Pods Manifest.lock */ = { + 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); - inputFileListPaths = ( - ); inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( ); + name = "Bundle React Native Code And Images"; outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-rnuilib-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; + shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; }; - 2D02E4CB1E0B4B27006451C7 /* Bundle React Native Code And Images */ = { + D78E9F4BA4EF6F012B5BDA3E /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); + inputFileListPaths = ( + ); inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputFileListPaths = ( ); - name = "Bundle React Native Code And Images"; outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-rnuilib-checkManifestLockResult.txt", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh"; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; }; - E08E7F233B2BD017DCECEA3C /* [CP] Copy Pods Resources */ = { + F7959C68F26F6BEE34F78D43 /* [CP] Embed Pods Frameworks */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( ); inputPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-rnuilib/Pods-rnuilib-resources.sh", - "${PODS_CONFIGURATION_BUILD_DIR}/RCT-Folly/RCT-Folly_privacy.bundle", - "${PODS_CONFIGURATION_BUILD_DIR}/RNSVG/RNSVGFilters.bundle", - "${PODS_CONFIGURATION_BUILD_DIR}/React-Core/React-Core_privacy.bundle", - "${PODS_CONFIGURATION_BUILD_DIR}/React-cxxreact/React-cxxreact_privacy.bundle", - "${PODS_CONFIGURATION_BUILD_DIR}/boost/boost_privacy.bundle", - "${PODS_CONFIGURATION_BUILD_DIR}/glog/glog_privacy.bundle", + "${PODS_ROOT}/Target Support Files/Pods-rnuilib/Pods-rnuilib-frameworks.sh", + "${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/Pre-built/hermes.framework/hermes", ); - name = "[CP] Copy Pods Resources"; + name = "[CP] Embed Pods Frameworks"; outputPaths = ( - "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RCT-Folly_privacy.bundle", - "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/RNSVGFilters.bundle", - "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/React-Core_privacy.bundle", - "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/React-cxxreact_privacy.bundle", - "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/boost_privacy.bundle", - "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/glog_privacy.bundle", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework", ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-rnuilib/Pods-rnuilib-resources.sh\"\n"; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-rnuilib/Pods-rnuilib-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; FD10A7F022414F080027D42C /* Start Packager */ = { @@ -562,7 +562,7 @@ }; 13B07F941A680F5B00A75B9A /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 89D43FD524252AEE9A5E7F9C /* Pods-rnuilib.debug.xcconfig */; + baseConfigurationReference = EC2782D69A183B3AC6D25662 /* Pods-rnuilib.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; @@ -594,7 +594,7 @@ }; 13B07F951A680F5B00A75B9A /* Release */ = { isa = XCBuildConfiguration; - baseConfigurationReference = 9EA158686F413620FCD02168 /* Pods-rnuilib.release.xcconfig */; + baseConfigurationReference = 67B8F278E58645A4FFC68F0C /* Pods-rnuilib.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; diff --git a/packages/react-native-ui-lib/package.json b/packages/react-native-ui-lib/package.json index 462e5cb44c..8a270c8a4b 100644 --- a/packages/react-native-ui-lib/package.json +++ b/packages/react-native-ui-lib/package.json @@ -101,7 +101,7 @@ "setimmediate": "^1.0.5", "shell-utils": "^1.0.10", "typescript": "5.0.4", - "uilib-native": "^5.0.1" + "uilib-native": "5.1.0-snapshot.7635" }, "peerDependencies": { "react": ">=19.0.0", @@ -109,7 +109,7 @@ "react-native-gesture-handler": ">=2.24.0", "react-native-reanimated": ">=3.19.4", "react-native-ui-lib": "*", - "uilib-native": "^5.0.1" + "uilib-native": "5.1.0-snapshot.7635" }, "jest": { "preset": "react-native", diff --git a/packages/react-native-ui-lib/scripts/build/build.js b/packages/react-native-ui-lib/scripts/build/build.js index 868281439c..8d0094bd72 100644 --- a/packages/react-native-ui-lib/scripts/build/build.js +++ b/packages/react-native-ui-lib/scripts/build/build.js @@ -1,7 +1,7 @@ const childProcess = require('child_process'); const fs = require('fs'); -const BABEL_OPTIONS = `--config-file ./scripts/build/.babelrc.json --extensions '.ts,.tsx' --ignore "src/**/*.d.ts"`; +const BABEL_OPTIONS = `--config-file ./scripts/build/.babelrc.json --extensions '.ts,.tsx' --ignore "src/**/*.d.ts,**/node_modules/**,lib/**/*.d.ts,../../lib/node_modules/**"`; const BABEL_INDEX_EXPORTS_OPTIONS = `--config-file ./scripts/build/.babelrc.exports.js`; console.info('## Start RNUILib Build ##'); @@ -21,6 +21,9 @@ childProcess.execSync(`../../node_modules/.bin/babel src --out-dir src ${BABEL_O console.info('## Build lib (native component) files - convert TS to JS files ##'); childProcess.execSync(`../../node_modules/.bin/babel lib --out-dir lib ${BABEL_OPTIONS}`); +console.info('## in uilib-native - Build lib (native component) files - convert TS to JS files ##'); +childProcess.execSync(`../../node_modules/.bin/babel ../../lib --out-dir ../../lib ${BABEL_OPTIONS}`); + console.info('## Build main index file - for lazy load exports ##'); childProcess.execSync(`../../node_modules/.bin/babel ./src/index.js -o ./src/index.js ${BABEL_INDEX_EXPORTS_OPTIONS}`); diff --git a/packages/react-native-ui-lib/src/commons/forwardRef.tsx b/packages/react-native-ui-lib/src/commons/forwardRef.tsx index 526b7469c8..aec258bdbf 100644 --- a/packages/react-native-ui-lib/src/commons/forwardRef.tsx +++ b/packages/react-native-ui-lib/src/commons/forwardRef.tsx @@ -18,6 +18,8 @@ export default function forwardRef(WrappedC hoistStatics(ForwardedComponent, WrappedComponent); ForwardedComponent.displayName = WrappedComponent.displayName; + // @ts-expect-error + ForwardedComponent.defaultProps = WrappedComponent.defaultProps; return ForwardedComponent as typeof ForwardedComponent & STATICS; } diff --git a/packages/react-native-ui-lib/src/components/checkbox/index.tsx b/packages/react-native-ui-lib/src/components/checkbox/index.tsx index a80aac2a14..b34b0687f5 100644 --- a/packages/react-native-ui-lib/src/components/checkbox/index.tsx +++ b/packages/react-native-ui-lib/src/components/checkbox/index.tsx @@ -76,7 +76,7 @@ export interface CheckboxProps extends TouchableOpacityProps { /** * The label of the checkbox */ - label?: string; + label?: string | React.ReactElement; /** * The style of the label */ diff --git a/tsconfig.json b/tsconfig.json index 06d3f27be3..f2bb7557f1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -32,6 +32,7 @@ "include": [ "packages/react-native-ui-lib/src/**/*", "packages/react-native-ui-lib/lib/**/*", + "lib/**/*", "typings/**/*", "packages/unicorn-demo-app/**/*", "packages/uilib-native/components/**/*" diff --git a/yarn.lock b/yarn.lock index d3f833d7eb..d4b4987db0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9302,7 +9302,7 @@ __metadata: languageName: node linkType: hard -"prop-types@npm:15.8.1, prop-types@npm:15.x.x, prop-types@npm:^15.5.10, prop-types@npm:^15.8.1": +"prop-types@npm:15.8.1, prop-types@npm:15.x.x, prop-types@npm:^15.8.1": version: 15.8.1 resolution: "prop-types@npm:15.8.1" dependencies: @@ -9733,7 +9733,7 @@ __metadata: shell-utils: "npm:^1.0.10" tinycolor2: "npm:^1.4.2" typescript: "npm:5.0.4" - uilib-native: "npm:^5.0.1" + uilib-native: "npm:5.1.0-snapshot.7635" url-parse: "npm:^1.2.0" wix-react-native-text-size: "npm:1.0.9" peerDependencies: @@ -9742,7 +9742,7 @@ __metadata: react-native-gesture-handler: ">=2.24.0" react-native-reanimated: ">=3.19.4" react-native-ui-lib: "*" - uilib-native: ^5.0.1 + uilib-native: 5.1.0-snapshot.7635 languageName: unknown linkType: soft @@ -11285,16 +11285,15 @@ __metadata: languageName: node linkType: hard -"uilib-native@npm:^5.0.1": - version: 5.0.1 - resolution: "uilib-native@npm:5.0.1" +"uilib-native@npm:5.1.0-snapshot.7635": + version: 5.1.0-snapshot.7635 + resolution: "uilib-native@npm:5.1.0-snapshot.7635" dependencies: lodash: "npm:^4.17.21" - prop-types: "npm:^15.5.10" peerDependencies: - react: ">=18.3.1" - react-native: ">=0.77.3" - checksum: 10c0/234d02fd8dd5005c816b2a292d87d205b37e45885eccdf545ab80052ad6eb2761034af6acb58ae31468d66b59a4c869b25a670a5a2a784d26206c92e7f27025d + react: ">=19.0.0" + react-native: ">=0.78.3" + checksum: 10c0/f98238f78e3c291cda5111459dc08d3acddbf38f37f2febb6e7743f0c663c47ab9e0cb9e2558dd044710365640b6c52ada47aec925dfee1386b05fd34e7becad languageName: node linkType: hard