mirror of
https://github.com/zhigang1992/react-native-vector-icons.git
synced 2026-04-29 12:45:49 +08:00
Add support for windows port (#308)
* Update README.md * Update create-icon-set.js Add support for windows port * Update README.md Add support for windows port * Update README.md * Update README.md * Update README.md Changed the instructions for adding the fonts to link to the original file, instead of copying the file. * Update README.md Mention Windows as a supported platform * Add windows example * Link fonts into windows project * Add "windows" keyword * update to latest package.json to resolve merge conflict * Bump up to version 0.35.0 & fix merge confict * finish upgrade from react native 0.32 -> 0.35
This commit is contained in:
committed by
Joel Arvidsson
parent
47ee15727f
commit
f92e7a2c12
@@ -27,6 +27,10 @@ export default function createIconSet(glyphMap, fontFamily, fontFile) {
|
||||
fontReference = fontFile.replace(/\.(otf|ttf)$/, '');
|
||||
}
|
||||
|
||||
if (Platform.OS === 'windows' && fontFile) {
|
||||
fontReference = `Assets/${fontFile}#${fontFamily}`;
|
||||
}
|
||||
|
||||
const IconNamePropType = PropTypes.oneOf(Object.keys(glyphMap));
|
||||
|
||||
class Icon extends Component {
|
||||
|
||||
Reference in New Issue
Block a user