https://github.com/niuguohui/react-native-mdict
A fast mdict(*.mdx/*.mdd) file parser.
https://github.com/niuguohui/react-native-mdict
mdd mdict mdict-android mdx mdx-js react-native-mdict
Last synced: 5 months ago
JSON representation
A fast mdict(*.mdx/*.mdd) file parser.
- Host: GitHub
- URL: https://github.com/niuguohui/react-native-mdict
- Owner: NiuGuohui
- License: mit
- Created: 2025-04-17T03:51:21.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-12-18T07:33:54.000Z (6 months ago)
- Last Synced: 2025-12-21T15:39:46.859Z (6 months ago)
- Topics: mdd, mdict, mdict-android, mdx, mdx-js, react-native-mdict
- Language: C++
- Homepage:
- Size: 3.46 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# react-native-mdict
A mdict(*.mdx/mdd) file parser.(JSI version)
## Installation
```sh
npm install react-native-mdict
```
## Usage
```js
import { Mdict } from 'react-native-mdict';
// ...
// Create mdict instance
const mdict = new Mdict('xxx/Dictionary.mdx');
// Init mdict
await mdict.init();
// lookup and get result
const res = await mdict.lookup('sadasd');
// Search word with specific key
const list = await mdict.keyList('ab');
```
### Tips
Perhaps you have a need to render simple HTML, here is a solution: [react-native-litehtml](https://github.com/NiuGuohui/react-native-litehtml)
## 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)