setValue(val)}
/>
@@ -39,7 +39,7 @@ export default Demo
### modal弹框 & 联动
-```jsx mdx:preview&background=#bebebe29
+```jsx
import React from 'react';
import { SafeAreaView } from 'react-native';
import { Picker,Button } from '@uiw/react-native';
diff --git a/packages/core/src/index.tsx b/packages/core/src/index.tsx
index 63aa40600..6e3c27ad7 100644
--- a/packages/core/src/index.tsx
+++ b/packages/core/src/index.tsx
@@ -125,6 +125,7 @@ export { default as ImageViewer } from './ImageViewer';
export * from './ImageViewer';
export { default as Form } from './Form';
export * from './Form';
+
/**
* Typography
*/
diff --git a/packages/react-native-image-picker/.babelrc b/packages/react-native-image-picker/.babelrc
new file mode 100644
index 000000000..e15ac017a
--- /dev/null
+++ b/packages/react-native-image-picker/.babelrc
@@ -0,0 +1,3 @@
+{
+ "presets": ["@babel/preset-typescript"]
+}
diff --git a/packages/react-native-image-picker/README.md b/packages/react-native-image-picker/README.md
new file mode 100644
index 000000000..1282d156b
--- /dev/null
+++ b/packages/react-native-image-picker/README.md
@@ -0,0 +1,112 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+React Native UIW
+---
+
+A UI component library based on React Native (Android & iOS).
+
+[快速上手](https://uimjs.github.io/#/docs/getting-started) | [参与组件开发](https://uimjs.github.io/#/docs/development/components) | [参与文档/网站编辑开发](https://uimjs.github.io/#/docs/development/document) | [组件库](https://uimjs.github.io/#/components/about)
+
+您可以使用我们制定的模版([`@uiw/react-native-template`](https://github.com/uiwjs/react-native-template))创建一个新项目:
+
+
+```shell
+# 此模板默认集成了一些必用的依赖,如路由,组件库等
+npx react-native init AwesomeProject --template @uiw/react-native-template
+```
+
+## Install
+```bash
+yarn add @uiw/react-native react-native-svg@12.1.1 react-native-root-siblings@4.1.1 react-native-gesture-handler@2.8.0
+```
+
+## Basic Usage
+
+```jsx
+import React from 'react';
+import { View } from 'react-native';
+import { Icon } from '@uiw/react-native'
+
+export default class Demo extends React.Component {
+ render() {
+ return (
+
+
+
+ )
+ }
+}
+```
+
+## Other
+
+- [@uiw/react-native-alipay](https://github.com/uiwjs/react-native-alipay)
+- [@uiw/react-native-amap-geolocation](https://github.com/uiwjs/react-native-amap-geolocation)
+
+## Development
+
+```bash
+# Install current dependencies, and dependencies in sub-packages
+yarn install
+yarn run build # Compile package
+```
+
+Real-time monitoring of package and document website local preview
+
+```bash
+# Step 1
+yarn run lib:watch # Compile and output JS file
+# Step 2
+yarn run lib:watch:type # Output type file d.ts
+# Step 3
+yarn run start # Run the preview document website locally
+```
+
+## 文档本地预览
+
+**第一步安装文档包和预览工具**
+
+```bash
+ npm install @uiw/react-native-doc @kkt/doc -D # yarn add @uiw/react-native-doc @kkt/doc -D
+```
+
+**第二步配置命令**
+
+在`package.json`文件中配置命令
+
+```json
+ // ...
+ "scripts":{
+ "doc":"kktd @uiw/react-native-doc/doc/build"
+ }
+```
+
+
+### License
+
+Licensed under the MIT License.
diff --git a/packages/react-native-image-picker/package.json b/packages/react-native-image-picker/package.json
new file mode 100644
index 000000000..e703a5fd1
--- /dev/null
+++ b/packages/react-native-image-picker/package.json
@@ -0,0 +1,48 @@
+{
+ "name": "@uiw/react-native-image-picker",
+ "version": "3.2.3",
+ "description": "UIW for React Native",
+ "homepage": "https://uiwjs.github.io/react-native-uiw/",
+ "main": "lib/index.js",
+ "types": "lib/index.d.ts",
+ "scripts": {},
+ "keywords": [
+ "uiw",
+ "react-native",
+ "ImagePicker"
+ ],
+ "license": "MIT",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/uiwjs/react-native-uiw"
+ },
+ "files": [
+ "lib",
+ "src",
+ "README.md"
+ ],
+ "dependencies": {
+ "@babel/runtime": "~7.20.7",
+ "@types/lodash": "~4.14.191",
+ "@types/react-native": "0.69.1",
+ "@uiw/icons": "2.5.3",
+ "ahooks": "2.10.14",
+ "lodash": "4.17.21",
+ "prop-types": "15.7.2",
+ "react-native-svg": "12.1.1",
+ "@shopify/restyle":"~2.4.2",
+ "@uiw/react-native":"~3.2.3"
+ },
+ "peerDependencies": {
+ "react": ">=16.9.0",
+ "react-native": ">=0.60.0",
+ "react-native-svg": ">=9.9.3"
+ },
+ "devDependencies": {
+ "@babel/core": "~7.20.7",
+ "@babel/preset-typescript": "~7.18.6"
+ },
+ "engines": {
+ "node": ">=16.0.0"
+ }
+}
\ No newline at end of file
diff --git a/packages/react-native-image-picker/src/ImagePicker/index.tsx b/packages/react-native-image-picker/src/ImagePicker/index.tsx
new file mode 100644
index 000000000..ccda9d823
--- /dev/null
+++ b/packages/react-native-image-picker/src/ImagePicker/index.tsx
@@ -0,0 +1,20 @@
+import React, { useState } from 'react';
+import { View, Text, StyleSheet } from 'react-native';
+
+const ImagePicker = () => {
+ return (
+
+ ImagePicker
+
+ );
+};
+
+const styles = StyleSheet.create({
+ tree: {
+ paddingHorizontal: 10,
+ paddingVertical: 5,
+ backgroundColor: '#fff',
+ },
+});
+
+export default ImagePicker;
diff --git a/packages/react-native-image-picker/src/index.ts b/packages/react-native-image-picker/src/index.ts
new file mode 100644
index 000000000..4193e7bf1
--- /dev/null
+++ b/packages/react-native-image-picker/src/index.ts
@@ -0,0 +1,2 @@
+export { default as ImagePicker } from './ImagePicker';
+export * from './ImagePicker';
diff --git a/packages/react-native-image-picker/tsconfig.json b/packages/react-native-image-picker/tsconfig.json
new file mode 100644
index 000000000..378754ad4
--- /dev/null
+++ b/packages/react-native-image-picker/tsconfig.json
@@ -0,0 +1,22 @@
+{
+ "compilerOptions": {
+ "allowJs": false,
+ "skipLibCheck": true,
+ "esModuleInterop": true,
+ "outDir": "lib",
+ "declaration": true,
+ "jsx": "react-native",
+ "lib": ["es6"],
+ "resolveJsonModule": true,
+ "isolatedModules": true,
+ "moduleResolution": "node",
+ "allowSyntheticDefaultImports": true,
+ "strict": true,
+ "noEmit": false,
+ "target": "esnext",
+ "module": "esnext",
+ "baseUrl": "."
+ },
+ "exclude": ["node_modules"],
+ "include": ["src"]
+}
diff --git a/website/src/component/Preview/index.js b/website/src/component/Preview/index.js
index 318b92702..cc32182af 100644
--- a/website/src/component/Preview/index.js
+++ b/website/src/component/Preview/index.js
@@ -34,7 +34,7 @@ const getBooleanValue = (param, field, defaultValue) => {
};
const Preview = ({ path, ...mdData }) => {
- // const Preview = CodeLayout.Preview;
+ const Preview = CodeLayout.Preview;
const Code = CodeLayout.Code;
const Toolbar = CodeLayout.Toolbar;
const $dom = useRef(null);
@@ -70,9 +70,9 @@ const Preview = ({ path, ...mdData }) => {
disableCheckered={getBooleanValue(param, 'disableCheckered', true)}
bordered={getBooleanValue(param, 'bordered', true)}
>
- {/*
+
- */}
+
{param.title || '示例'}