Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…e-dom into slider
  • Loading branch information
motiz88 committed May 28, 2018
2 parents 61a5c20 + e94bfe0 commit cd18206
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"compile:components": "lerna run compile --scope rndom-* --stream",
"fmt": "prettier --write 'packages/**/*.js'",
"lint": "flow check && eslint packages",
"release": "lerna publish --conventional-commits --yes",
"release:canary": "lerna publish --canary --yes --cd-version minor",
"run-examples": "cd packages/react-native-dom && yarn run-examples",
"test": "lerna run test"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native-dom/RNTester
11 changes: 11 additions & 0 deletions packages/react-native-dom/ReactDom/modules/RCTAsyncLocalStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,17 @@ class RCTAsyncLocalStorage {
callback(err, null);
}
}

@RCT_EXPORT_METHOD(RCTFunctionTypeNormal)
async clear(callbackId: number) {
const callback = this.bridge.callbackFromId(callbackId);
try {
await idbKeyval.clear();
callback(null);
} catch (err) {
callback(err);
}
}
}

export default RCTAsyncLocalStorage;

0 comments on commit cd18206

Please sign in to comment.