import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
View,
Button,
NativeModules,
} from 'react-native';
var nativeModule = NativeModules.OpenNativeModule;
// var analyticsModule = NativeModules.UMAnalyticsModule;
const instructions = Platform.select({
ios: 'Press Cmd+R to reload,\n' +
'Cmd+D or shake for dev menu',
android: 'Double tap R on your keyboard to reload,\n' +
'Shake or press menu button for dev menu',
});
type Props = {};
export default class App extends Component<Props> {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</Text>
<Text style={styles.instructions}>
To get started, edit App.js
</Text>
<Text style={styles.instructions}>
{instructions}
</Text>
<Button
title={'Jump to the native page'}
onPress={() => {
this.jumpToNativeView();
}}
/>
</View>
);
}
jumpToNativeView() {
NativeModules.OpenPDFModule.openPDFByPath(pdfFilePath)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
});
在 React Native 中直接编辑 PDF 文本
我们的功能丰富的库实现了无缝的文本编辑功能,允许您直接在 PDF 中添加、删除或修改文本。这不仅提升了您应用的用户体验,还避免了独立运维移动平台app,促进了更高的生产力。
在 React Native 中直接编辑 PDF 图片
利用我们的 React Native PDF 内容编辑库,您可以通过插入、删除、旋转或替换 PDF 文件中的图片来编辑图片。通过为用户提供直接在应用内编辑图片的功能,提升了应用的可用性,提供了无与伦比的用户体验。
React Native PDF 文档编辑 SDK
通过我们的文档编辑库在您的应用中操作 PDF 页面。快速部署即开即用的功能,允许您添加/删除、拆分/合并、旋转、重新排列、插入和替换 PDF 页面。
React Native PDF 库用于表单
通过我们的 React Native PDF 库加速您的数字化转型,创建、编辑和填写 PDF 表单,支持各种 PDF 表单字段,如文本框、按钮、复选框、单选按钮、组合框、列表框、签名字段和条形码(PDF417、二维码、DataMatrix)。
通过使用他们的 React Native PDF 库,我改善了我们 iOS 和 Android 应用中的 PDF 功能。现在,我们添加了注释(高亮、下划线或删除文本),并将其发布到 Google Play 和 App Store,让用户可以对 PDF 进行标记。
Boris Slobodkin
移动应用开发者,软件开发