@expensify/react-native-live-markdown 0.1.194 → 0.1.195
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.
|
@@ -4,6 +4,7 @@ import androidx.annotation.NonNull;
|
|
|
4
4
|
|
|
5
5
|
import com.facebook.react.bridge.ReactContext;
|
|
6
6
|
import com.facebook.react.util.RNLog;
|
|
7
|
+
import com.facebook.soloader.SoLoader;
|
|
7
8
|
|
|
8
9
|
import org.json.JSONArray;
|
|
9
10
|
import org.json.JSONException;
|
|
@@ -14,6 +15,10 @@ import java.util.LinkedList;
|
|
|
14
15
|
import java.util.List;
|
|
15
16
|
|
|
16
17
|
public class MarkdownParser {
|
|
18
|
+
static {
|
|
19
|
+
SoLoader.loadLibrary("livemarkdown");
|
|
20
|
+
}
|
|
21
|
+
|
|
17
22
|
private final @NonNull ReactContext mReactContext;
|
|
18
23
|
private String mPrevText;
|
|
19
24
|
private int mPrevParserId;
|
|
@@ -9,16 +9,11 @@ import androidx.annotation.NonNull;
|
|
|
9
9
|
import com.expensify.livemarkdown.spans.*;
|
|
10
10
|
import com.facebook.react.bridge.ReactContext;
|
|
11
11
|
import com.facebook.react.views.text.internal.span.CustomLineHeightSpan;
|
|
12
|
-
import com.facebook.soloader.SoLoader;
|
|
13
12
|
|
|
14
13
|
import java.util.List;
|
|
15
14
|
import java.util.Objects;
|
|
16
15
|
|
|
17
16
|
public class MarkdownUtils {
|
|
18
|
-
static {
|
|
19
|
-
SoLoader.loadLibrary("livemarkdown");
|
|
20
|
-
}
|
|
21
|
-
|
|
22
17
|
public MarkdownUtils(@NonNull ReactContext reactContext) {
|
|
23
18
|
mAssetManager = reactContext.getAssets();
|
|
24
19
|
mMarkdownParser = new MarkdownParser(reactContext);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expensify/react-native-live-markdown",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.195",
|
|
4
4
|
"description": "Drop-in replacement for React Native's TextInput component with Markdown formatting.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|