Skip to content

Commit

Permalink
feat: react-native-compass-heading support HarmonyOS (react-native-oh…
Browse files Browse the repository at this point in the history
  • Loading branch information
ljje-lze authored Aug 1, 2024
1 parent 2f1d5a1 commit b6867bd
Show file tree
Hide file tree
Showing 88 changed files with 23,981 additions and 7,868 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/ci.yml

This file was deleted.

40 changes: 10 additions & 30 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,19 @@
# react-native-compass-heading
# @react-native-oh-tpl/react-native-compass-heading

React Native module for iOS & Android to receive compass heading
本项目基于 [react-native-compass-heading](https://github.com/firofame/react-native-compass-heading)

## Installation
## 文档地址 / Documentation URL

```sh
npm install react-native-compass-heading
```
[中文 / Chinese](https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/react-native-compass-heading.md)

## Usage
[英文 / English](https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-en/react-native-compass-heading.md)

```js
import CompassHeading from 'react-native-compass-heading';
## Codegen

React.useEffect(() => {
const degree_update_rate = 3;
该库已接入 codegen,具体请查阅文档。

CompassHeading.start(degree_update_rate, ({heading, accuracy}) => {
console.log('CompassHeading: ', heading, accuracy);
});
The library has been integrated with codegen. Please refer to the documentation for details.

return () => {
CompassHeading.stop();
};
}, []);
```
## 请悉知 / Acknowledgements

## 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)
本项目基于 [The MIT License (MIT)](https://github.com/firofame/react-native-compass-heading/blob/master/LICENSE) ,请自由地享受和参与开源。
77 changes: 0 additions & 77 deletions android/build.gradle

This file was deleted.

5 changes: 0 additions & 5 deletions android/gradle.properties

This file was deleted.

4 changes: 0 additions & 4 deletions android/src/main/AndroidManifest.xml

This file was deleted.

189 changes: 0 additions & 189 deletions android/src/main/java/com/compassheading/CompassHeadingModule.java

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions example/.bundle/config

This file was deleted.

1 change: 0 additions & 1 deletion example/.node-version

This file was deleted.

1 change: 0 additions & 1 deletion example/.watchmanconfig

This file was deleted.

6 changes: 0 additions & 6 deletions example/Gemfile

This file was deleted.

Loading

0 comments on commit b6867bd

Please sign in to comment.