Skip to content

Instantly share code, notes, and snippets.

View mjm918's full-sized avatar
🍻
Code & Chill

Mohammad Julfikar mjm918

🍻
Code & Chill
View GitHub Profile
@mjm918
mjm918 / CreateImage.h
Created September 11, 2019 02:35
React Native iOS Watermark
//
// CreateImage.h
// Created by Mohammad Julfikar on 28/06/2019.
// Copyright © 2019 Facebook. All rights reserved.
//
#import "RCTBridgeModule.h"
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@mjm918
mjm918 / CreateImage.java
Created September 11, 2019 02:37
React Native Android watermark
public class CreateImage extends ReactContextBaseJavaModule {
private String finalPath = "";
private ReactApplicationContext reactApplicationContext = null;
public CreateImage(ReactApplicationContext reactContext) {
super(reactContext);
this.reactApplicationContext = reactContext;
}
@mjm918
mjm918 / Android-ImageColorsModule.java
Created July 4, 2022 07:40
React-Native Image Swatches / Color
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.util.Base64;
import androidx.annotation.NonNull;
import androidx.palette.graphics.Palette;
import com.bumptech.glide.Glide;
@mjm918
mjm918 / PDFGenManager.java
Created July 4, 2022 07:47
Oppo/Vivo Android WebView font bug fixed react-native-html-to-pdf
public class PDFGenManager extends ReactContextBaseJavaModule {
private static final String TAG = "PDFGenManager";
private ReactApplicationContext context;
private File directory;
private String dirPath;
private PDFConverter convertor;
public PDFGenManager(@NonNull ReactApplicationContext reactContext) {
super(reactContext);
this.context = reactContext;