Skip to content

Commit 4e2e130

Browse files
committed
fixup: Actually pass platform in index.{ios,android}.js
1 parent 4f1ebd0 commit 4e2e130

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/index.android.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ function decodeBase64(base64) {
3636
}
3737

3838
window.createView = (options) => {
39-
options.platform = 'android';
4039
log("Create " + options.type + " view");
4140
const annotations = JSON.parse(decodeBase64(options.annotations));
4241
log("Loaded " + annotations.length + " annotations");
4342
window._view = new View({
43+
platform: 'android',
4444
type: options.type,
4545
annotations: annotations,
4646
viewState: options.viewState,

src/index.ios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ function decodeBase64(base64) {
2020
}
2121

2222
window.createView = options => {
23-
options.platform = 'ios';
2423
log("Create " + options.type + " view");
2524
const annotations = JSON.parse(decodeBase64(options.annotations));
2625
log("Loaded " + annotations.length + " annotations");
2726
window._view = new View({
27+
platform: 'ios',
2828
type: options.type,
2929
annotations: annotations,
3030
viewState: options.viewState,

0 commit comments

Comments
 (0)