expo-image-crop

所属分类:图形图象
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2023-06-29 19:48:52
上 传 者sh-1993
说明:  裁剪和旋转图像,而不分离您的世博项目!,
(Crop and rotate image without detach your expo project!,)

文件列表:
.eslintrc (1853, 2023-11-20)
.vscode/ (0, 2023-11-20)
.vscode/settings.json (30, 2023-11-20)
LICENSE (1074, 2023-11-20)
demo.gif (2919559, 2023-11-20)
example/ (0, 2023-11-20)
example/.expo-shared/ (0, 2023-11-20)
example/.expo-shared/assets.json (155, 2023-11-20)
example/.watchmanconfig (3, 2023-11-20)
example/App.js (4389, 2023-11-20)
example/HybridTouch.js (499, 2023-11-20)
example/app.json (560, 2023-11-20)
example/assets/ (0, 2023-11-20)
example/assets/crop_splash.png (57712, 2023-11-20)
example/assets/icon.png (1506, 2023-11-20)
example/assets/icon_crop.png (9556, 2023-11-20)
example/assets/no_image.png (21081, 2023-11-20)
example/assets/splash.png (7178, 2023-11-20)
example/babel.config.js (107, 2023-11-20)
example/manipulator/ (0, 2023-11-20)
example/manipulator/ImageCropOverlay.js (14151, 2023-11-20)
example/manipulator/ImageManipulator.js (21351, 2023-11-20)
example/package.json (776, 2023-11-20)
example/yarn.lock (290922, 2023-11-20)
index.js (104, 2023-11-20)
package.json (1073, 2023-11-20)
yarn.lock (303428, 2023-11-20)

Expo image manipulator

Multi platform





npm version npm version npm version

Open on your device!

## Crop and rotate image without detach your expo project! ## `Expo.ImageManipulator` is only an API, so it does not contain a UI. You will have to build your own UI on top of it, or choose to detach your project and use third party linked packages, which is not as good because a pure javascript Expo project is marvelous! [PRs are welcome...](https://github.com/brunon80/expo-image-crop/pulls) >No more flickering while resizing image mask! >Compatible with Expo SDK 36 > Atention: *squareAspect* was removed on this version and will be add in future versions, if you need it, please stay at 0.2.17 ### Expo Dependences - yarn add react-native-vector-icons - expo install expo-permissions - expo install expo-image-picker - expo install expo-file-system - expo install expo-image-manipulator ## Example ```javascript import React from 'react' import { Dimensions, Button, ImageBackground } from 'react-native' import { ImageManipulator } from 'expo-image-crop' export default class App extends React.Component { state = { isVisible: false, uri: 'https://i.pinimg.com/originals/39/42/a1/3942a180299d5b9587c2aa8e09d91ecf.jpg', } onToggleModal = () => { const { isVisible } = this.state this.setState({ isVisible: !isVisible }) } render() { const { uri, isVisible } = this.state const { width, height } = Dimensions.get('window') return (

近期下载者

相关文件


收藏者