Socket
Socket
Sign inDemoInstall

@td-design/react-native-image-picker

Package Overview
Dependencies
0
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.6.8 to 1.7.0

5

lib/module/index.js

@@ -56,3 +56,3 @@ import React, { forwardRef, useImperativeHandle } from 'react';

onGrantFail,
activeOpacity = 0.5
activeOpacity = 0.6
} = _ref;

@@ -106,4 +106,3 @@ const theme = useTheme();

width,
height,
borderRadius: theme.borderRadii.x1
height
}

@@ -110,0 +109,0 @@ }) : children), loading && /*#__PURE__*/React.createElement(Box, {

10

lib/module/index.md

@@ -7,4 +7,4 @@ ---

group:
title: ImagePicker
path: /image-picker
title: 其他组件
path: /other
---

@@ -30,3 +30,3 @@

return (
<ImagePicker onGrantFail={() => Toast.bottom({ content: '对不起,授权失败' })} upload={file => file.uri}>
<ImagePicker onGrantFail={() => Toast.bottom({ content: '对不起,授权失败' })} onUpload={file => file.uri}>
<Image source={require('./assets/img-add-complete.webp')} style={{ width: px(100), height: px(100) }} />

@@ -58,3 +58,3 @@ </ImagePicker>

return (
<ImagePicker onGrantFail={() => Toast.bottom({ content: '对不起,授权失败' })} upload={file => file.uri}>
<ImagePicker onGrantFail={() => Toast.bottom({ content: '对不起,授权失败' })} onUpload={file => file.uri}>
<Box

@@ -111,3 +111,3 @@ justifyContent="center"

| deleteImgText | `false` | 删除图片文本 | `string` | `删除图片` |
| activeOpacity | `false` | 按下时的不透明度 | `number` | `0.5` |
| activeOpacity | `false` | 按下时的不透明度 | `number` | `0.6` |

@@ -114,0 +114,0 @@ _`CameraOptions`来自 [react-native-image-picker](https://github.com/react-native-image-picker/react-native-image-picker)_

@@ -12,3 +12,3 @@ import { PropsWithChildren } from 'react';

}
export declare type ImagePickerProps = PropsWithChildren<{
export type ImagePickerProps = PropsWithChildren<{
/** 宽度 */

@@ -51,3 +51,3 @@ width?: number;

}>;
export declare type HookProps = Pick<ImagePickerProps, 'value' | 'onBeforeUpload' | 'onUpload' | 'onAfterUpload' | 'onCancel' | 'onFail' | 'onGrantFail'> & Required<Pick<ImagePickerProps, 'options' | 'showUploadImg' | 'cameraRationale' | 'libraryRationale'>>;
export type HookProps = Pick<ImagePickerProps, 'value' | 'onBeforeUpload' | 'onUpload' | 'onAfterUpload' | 'onCancel' | 'onFail' | 'onGrantFail'> & Required<Pick<ImagePickerProps, 'options' | 'showUploadImg' | 'cameraRationale' | 'libraryRationale'>>;
//# sourceMappingURL=type.d.ts.map
{
"name": "@td-design/react-native-image-picker",
"version": "1.6.8",
"version": "1.7.0",
"description": "基于 @td-design/react-native 的 image-picker 组件",

@@ -21,9 +21,9 @@ "keywords": [

"@shopify/restyle": "2.4.2",
"@td-design/react-native": "^4.3.8",
"@td-design/rn-hooks": "^2.7.1",
"@types/react": "^18.0.21",
"@types/react-native": "0.70.6",
"react-native-builder-bob": "^0.20.4",
"react-native-image-picker": "^5.3.1",
"typescript": "^4.8.4"
"@td-design/react-native": "^5.1.0",
"@td-design/rn-hooks": "^2.7.2",
"@types/react": "^18.2.15",
"@types/react-native": "0.72.2",
"react-native-builder-bob": "^0.21.3",
"react-native-image-picker": "^5.6.0",
"typescript": "^5.1.6"
},

@@ -30,0 +30,0 @@ "publishConfig": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc