Skip to content

Instantly share code, notes, and snippets.

View AliAkhgar's full-sized avatar
♠️

AAA AliAkhgar

♠️
View GitHub Profile
@AliAkhgar
AliAkhgar / createIconSet.js
Last active September 5, 2022 19:21
Quick Custom Font-Icon ReactNative | Just include font in assets | Extracted from react-native-vector-icons
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { Platform, Text } from 'react-native';
export const DEFAULT_ICON_SIZE = 12;
export const DEFAULT_ICON_COLOR = 'black';
export default function createIconSet(glyphMap, fontFamily, fontFile, fontStyle) {
// Android doesn't care about actual fontFamily name, it will only look in fonts folder.
const fontBasename = fontFile ? fontFile.replace(/\.(otf|ttf)$/, '') : fontFamily;
1. Download latest apktool version.
2. Download the batch file and aapt.exe.
3. Create a folder anywhere in the PC and put all the apktool.jar, aapt.exe and the batch script in that folder.
4. Open command prompt.
5. Navigate to the folder where you placed apktool.jar, batch script and the aapt.exe.
6. Now, you need to install the file using the " IF " command.
7. Type the following command.
apktool if name-of-the-app.apk