Commit 6107630a authored by hl's avatar hl

update

parent 9b9de9b0
...@@ -4,7 +4,7 @@ import { NativeModules, Platform, NativeEventEmitter } from 'react-native'; ...@@ -4,7 +4,7 @@ import { NativeModules, Platform, NativeEventEmitter } from 'react-native';
const { RNGeekImageEditor, ReactNativeSending } = NativeModules; const { RNGeekImageEditor, ReactNativeSending } = NativeModules;
const { edit: _edit } = RNGeekImageEditor // const { edit } = RNGeekImageEditor
function edit(json, callback) { function edit(json, callback) {
if (Platform.OS === 'android') { if (Platform.OS === 'android') {
...@@ -23,9 +23,9 @@ function edit(json, callback) { ...@@ -23,9 +23,9 @@ function edit(json, callback) {
console.log(err) console.log(err)
} }
}); });
_edit(json) RNGeekImageEditor.edit(json)
} else { } else {
_edit(json, callback) // _edit(json, callback)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment