Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
react-native-geek-image-editor
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huanglu
react-native-geek-image-editor
Commits
c3eae38a
Commit
c3eae38a
authored
Mar 23, 2020
by
hl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
aa4cd631
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
index.js
index.js
+7
-3
No files found.
index.js
View file @
c3eae38a
...
@@ -3,18 +3,22 @@ import { NativeModules, Platform, NativeEventEmitter } from 'react-native';
...
@@ -3,18 +3,22 @@ import { NativeModules, Platform, NativeEventEmitter } from 'react-native';
const
{
RNGeekImageEditor
,
ReactNativeSending
}
=
NativeModules
;
const
{
RNGeekImageEditor
,
ReactNativeSending
}
=
NativeModules
;
const
loadingManagerEmitter
=
new
NativeEventEmitter
(
ReactNativeSending
);
function
edit
(
json
,
callback
)
{
function
edit
(
json
,
callback
)
{
let
loadingManagerEmitter
=
new
NativeEventEmitter
(
ReactNativeSending
)
loadingManagerEmitter
.
addListener
(
'ImgEditEvent'
,
(
data
)
=>
{
loadingManagerEmitter
.
addListener
(
'ImgEditEvent'
,
(
data
)
=>
{
console
.
log
(
'data'
)
console
.
log
(
'data'
)
console
.
log
(
data
)
console
.
log
(
data
)
try
{
try
{
let
backData
;
if
(
Platform
.
OS
===
'ios'
)
{
backData
=
JSON
.
parse
(
data
)
}
else
{
if
(
data
.
result
)
{
if
(
data
.
result
)
{
let
backData
=
JSON
.
parse
(
data
.
result
)
callback
(
backData
)
callback
(
backData
)
}
}
}
}
catch
(
err
)
{
}
catch
(
err
)
{
//Toast.warn('返回数据错误!')
console
.
log
(
err
)
console
.
log
(
err
)
}
}
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment