This repository has been archived by the owner on Oct 6, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: use typescript * build: skip lib check it make TS to raise errors
- Loading branch information
1 parent
80df640
commit fbb7144
Showing
12 changed files
with
287 additions
and
278 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ android/build | |
.vscode/ | ||
.DS_Store | ||
node_modules/ | ||
lib/ |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { NativeModules } from 'react-native' | ||
const NativeMusicControl = NativeModules.MusicControlManager | ||
|
||
const STATE_PLAYING = NativeMusicControl.STATE_PLAYING | ||
const STATE_PAUSED = NativeMusicControl.STATE_PAUSED | ||
const STATE_ERROR = NativeMusicControl.STATE_PAUSED | ||
const STATE_STOPPED = NativeMusicControl.STATE_PAUSED | ||
const STATE_BUFFERING = NativeMusicControl.STATE_PAUSED | ||
const RATING_HEART = 0 | ||
const RATING_THUMBS_UP_DOWN = 0 | ||
const RATING_3_STARS = 0 | ||
const RATING_4_STARS = 0 | ||
const RATING_5_STARS = 0 | ||
const RATING_PERCENTAGE = 0 | ||
|
||
export default { | ||
STATE_PLAYING, | ||
STATE_PAUSED, | ||
STATE_ERROR, | ||
STATE_STOPPED, | ||
STATE_BUFFERING, | ||
RATING_HEART, | ||
RATING_THUMBS_UP_DOWN, | ||
RATING_3_STARS, | ||
RATING_4_STARS, | ||
RATING_5_STARS, | ||
RATING_PERCENTAGE | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { NativeModules } from 'react-native' | ||
const NativeMusicControl = NativeModules.MusicControlManager | ||
|
||
const STATE_PLAYING = NativeMusicControl.STATE_PLAYING | ||
const STATE_PAUSED = NativeMusicControl.STATE_PAUSED | ||
const STATE_ERROR = NativeMusicControl.STATE_ERROR | ||
const STATE_STOPPED = NativeMusicControl.STATE_STOPPED | ||
const STATE_BUFFERING = NativeMusicControl.STATE_BUFFERING | ||
const RATING_HEART = NativeMusicControl.RATING_HEART | ||
const RATING_THUMBS_UP_DOWN = NativeMusicControl.RATING_THUMBS_UP_DOWN | ||
const RATING_3_STARS = NativeMusicControl.RATING_3_STARS | ||
const RATING_4_STARS = NativeMusicControl.RATING_4_STARS | ||
const RATING_5_STARS = NativeMusicControl.RATING_5_STARS | ||
const RATING_PERCENTAGE = NativeMusicControl.RATING_PERCENTAGE | ||
|
||
export default { | ||
STATE_PLAYING, | ||
STATE_PAUSED, | ||
STATE_ERROR, | ||
STATE_STOPPED, | ||
STATE_BUFFERING, | ||
RATING_HEART, | ||
RATING_THUMBS_UP_DOWN, | ||
RATING_3_STARS, | ||
RATING_4_STARS, | ||
RATING_5_STARS, | ||
RATING_PERCENTAGE | ||
} |
Oops, something went wrong.