Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@pstyczynski/react-native-expo-pdfjs
Advanced tools
Readme
Android support 🚀
import React from 'react';
import { StyleSheet, View } from 'react-native';
import PDFReader from 'rn-pdf-reader-js';
import { Constants } from 'expo';
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<PDFReader
source={{ uri: "http://gahp.net/wp-content/uploads/2017/09/sample.pdf" }}
/>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
paddingTop: Constants.statusBarHeight,
backgroundColor: '#ecf0f1',
},
});
Object
string
- can be local or served on the web (ie. start withs https://
or file://
)string
- should start with data:application/pdf;base64,
. A base64 encoded pdf file tends to start with JVBERi0xL
so your complete string should look soemthing like this: data:application/pdf;base64,JVBERi0xL...
object
- style props to override default container styleobject
- style props to override default WebView stylefunc
- callback that runs after WebView is loadedboolean
- show/hide the ActivityIndicator. Default is falseExpo.FileSystem
Looking for a ReactNative freelance expert with more than 12 years experience? Contact me from my website!
FAQs
PDF reader for Expo
The npm package @pstyczynski/react-native-expo-pdfjs receives a total of 26 weekly downloads. As such, @pstyczynski/react-native-expo-pdfjs popularity was classified as not popular.
We found that @pstyczynski/react-native-expo-pdfjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.