Installation can be done through npm
:
npm i react-native-imagesplit --save
用于获取app的唯一标示
import { NativeModules } from 'react-native';
const imagePathArray = ['','',''];
//纵向拼接图片
NativeModules.RNImageSplit.spliceImageVertical(imagePathArray, (imagePath) => {
// service code
});
//横向拼接图片
NativeModules.RNImageSplit.spliceImageHorizontal(imagePathArray, (imagePath) => {
// service code
});