Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/reason-expo/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "reason-expo",
"description": "ReasonML bindings for Expo",
"version": "34.4.1",
"version": "34.4.2",
"scripts": {
"build": "bsb -make-world",
"watch": "bsb -make-world -w",
Expand Down Expand Up @@ -32,4 +32,4 @@
"reason-react": "^0.7.0",
"reason-react-native": "^0.60.0"
}
}
}
35 changes: 0 additions & 35 deletions packages/reason-expo/src/Audio.re
Original file line number Diff line number Diff line change
Expand Up @@ -98,38 +98,3 @@ module Sound = {
downloadFirst,
);
};

module Recording = {
[@bs.deriving abstract]
type status = {
canRecord: bool,
isDoneRecording: bool,
durationMillis: int,
};

class type _recording =
[@bs]
{
pub getStatusAsync: unit => Js.Promise.t(status);
pub setOnRecordingStatusUpdate: (status => unit) => unit;
pub setProgressUpdateInterval: int => unit;
pub prepareToRecordAsync: Js.t('a) => Js.Promise.t(unit);
pub isPreparedToRecord: unit => bool;
pub startAsync: unit => Js.Promise.t(status);
pub pauseAsync: unit => Js.Promise.t(status);
pub stopAndUnloadAsync: unit => Js.Promise.t(status);
pub getURI: unit => Js.Nullable.t(string);
pub createNewLoadedSound:
('a, 'a => unit) =>
Js.Promise.t({
.
sound: Sound.t,
status: 'a,
});
};

type t = Js.t(_recording);

[@bs.new] [@bs.module "expo-av"] [@bs.scope "Audio"]
external make: unit => t = "Recording";
};