# react-native-suno-pdf

> React Native Suno Pdf

Latest version **1.0.7** (published 2025-08-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-suno-pdf
pnpm add react-native-suno-pdf
yarn add react-native-suno-pdf
bun add react-native-suno-pdf
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2025-08-22 |
| First published | 2022-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 26.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Au Hong Anh |
| Maintainers | auhonganh |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/react-native-suno-pdf
- Repository: https://github.com/auhonganh/react-native-suno-pdf
- Homepage: https://github.com/auhonganh/react-native-suno-pdf#readme
- Issues: https://github.com/auhonganh/react-native-suno-pdf/issues
- npm.io page: https://npm.io/package/react-native-suno-pdf

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.7 (latest) — 2025-08-22
- 1.0.6 — 2025-08-19
- 1.0.5 — 2025-03-31
- 1.0.4 — 2025-03-24
- 1.0.2 — 2023-01-10
- 1.0.1 — 2022-12-29

## README

# react-native-suno-pdf

React native Suno Pdf generator

## Installation

```sh
npm install react-native-suno-pdf
```

## Usage

```js
import { useEffect, useState } from 'react';
import { StyleSheet, View, Text, Platform } from 'react-native';
import { convert, type PdfOption, type PdfResult } from 'react-native-suno-pdf';

export default function App() {
  const [result, setResult] = useState<string>('No files');
  const initialize = async () => {
    if (Platform.OS === 'android') {
      const option: PdfOption = {
        html: '<html><body><p>Test pdf generator</p></body></html>',
        fileName: 'sunopdfexample',
        directory: '/Android/data/com.sunopdfexample/cache',
        padding: 0,
        bgColor: '',
      };
      const pdfResult: PdfResult = await convert(option);
      setResult(pdfResult.filePath);
    } else {
      const option: PdfOption = {
        html: '<html><body><p>Test pdf generator</p></body></html>',
        fileName: 'sunopdfexample',
        directory: 'Documents',
        padding: 0,
        bgColor: '#ffffff',
      };
      const pdfResult: PdfResult = await convert(option);
      setResult(pdfResult.filePath);
    }
  };
  useEffect(() => {
    initialize();
  }, []);

  return (
    <View style={styles.container}>
      <Text>Result: {JSON.stringify(result)}</Text>
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
  },
  box: {
    width: 60,
    height: 60,
    marginVertical: 20,
  },
});

```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT

---

Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)

---
_Source: https://npm.io/package/react-native-suno-pdf · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
