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:
James McGinty
2016-10-27 08:07:17 +11:00
committed by Joel Arvidsson
parent 47ee15727f
commit f92e7a2c12
24 changed files with 855 additions and 2 deletions

View File

@@ -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 {