@codebymanan/react-native-photo-editor 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -55,7 +55,7 @@ class PhotoEditorModule(reactContext: ReactApplicationContext) :
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
override fun open(options: ReadableMap, promise: Promise) {
|
|
58
|
-
val activity = currentActivity
|
|
58
|
+
val activity = reactApplicationContext.currentActivity
|
|
59
59
|
if (activity == null) {
|
|
60
60
|
promise.reject(E_NO_ACTIVITY, "No activity attached to React context")
|
|
61
61
|
return
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codebymanan/react-native-photo-editor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "A React Native photo editor plugin wrapping native editors for Android and iOS",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|