forked from oblador/react-native-vector-icons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for windows port (oblador#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
- Loading branch information
Showing
24 changed files
with
855 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
/** | ||
* Sample React Native App | ||
* https://github.com/facebook/react-native | ||
* @flow | ||
*/ | ||
|
||
import React, { Component } from 'react'; | ||
import { | ||
AppRegistry, | ||
StyleSheet, | ||
Text, | ||
View, | ||
Dimensions, | ||
} from 'react-native'; | ||
|
||
import Icon from 'react-native-vector-icons/Ionicons'; | ||
import IconSetList from './IconSetList'; | ||
import IconList from './IconList'; | ||
|
||
const LEFT_PANEL_WIDTH = 300; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
flexDirection: 'row', | ||
}, | ||
leftPanel: { | ||
width: LEFT_PANEL_WIDTH, | ||
}, | ||
rightPanel: { | ||
flex: 1, | ||
backgroundColor: '#fff', | ||
}, | ||
welcomeWrapper: { | ||
flex: 1, | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
welcomeText: { | ||
color: '#999', | ||
fontSize: 20, | ||
}, | ||
}); | ||
|
||
class Welcome extends Component { | ||
render() { | ||
return ( | ||
<View style={styles.welcomeWrapper}> | ||
<Text style={styles.welcomeText}>Choose an icon set on the left side</Text> | ||
</View> | ||
); | ||
} | ||
} | ||
|
||
class IconExplorer extends Component { | ||
|
||
constructor() { | ||
super(); | ||
this.state = { | ||
iconSet: null, | ||
layout: Dimensions.get('window'), | ||
}; | ||
} | ||
|
||
render() { | ||
const { iconSet, iconSetTitle, layout } = this.state; | ||
|
||
return ( | ||
<View style={styles.container} onLayout={(e) => this.setState({layout: e.nativeEvent.layout})}> | ||
<View style={styles.leftPanel}> | ||
<IconSetList navigator={{ push: (route) => this.setState({ iconSet: route.iconSet }) }}/> | ||
</View> | ||
<View style={[styles.rightPanel, { width: layout.width - LEFT_PANEL_WIDTH }]}> | ||
{(iconSet | ||
? (<IconList iconSet={iconSet} />) | ||
: (<Welcome />) | ||
)} | ||
</View> | ||
</View> | ||
); | ||
} | ||
} | ||
|
||
AppRegistry.registerComponent('IconExplorer', () => IconExplorer); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from 'react-native'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
*AppPackages* | ||
*BundleArtifacts* | ||
*ReactAssets* | ||
|
||
#OS junk files | ||
[Tt]humbs.db | ||
*.DS_Store | ||
|
||
#Visual Studio files | ||
*.[Oo]bj | ||
*.user | ||
*.aps | ||
*.pch | ||
*.vspscc | ||
*.vssscc | ||
*_i.c | ||
*_p.c | ||
*.ncb | ||
*.suo | ||
*.tlb | ||
*.tlh | ||
*.bak | ||
*.[Cc]ache | ||
*.ilk | ||
*.log | ||
*.lib | ||
*.sbr | ||
*.sdf | ||
*.opensdf | ||
*.opendb | ||
*.unsuccessfulbuild | ||
ipch/ | ||
[Oo]bj/ | ||
[Bb]in | ||
[Dd]ebug*/ | ||
[Rr]elease*/ | ||
Ankh.NoLoad | ||
|
||
#MonoDevelop | ||
*.pidb | ||
*.userprefs | ||
|
||
#Tooling | ||
_ReSharper*/ | ||
*.resharper | ||
[Tt]est[Rr]esult* | ||
*.sass-cache | ||
|
||
#Project files | ||
[Bb]uild/ | ||
|
||
#Subversion files | ||
.svn | ||
|
||
# Office Temp Files | ||
~$* | ||
|
||
# vim Temp Files | ||
*~ | ||
|
||
#NuGet | ||
packages/ | ||
*.nupkg | ||
|
||
#ncrunch | ||
*ncrunch* | ||
*crunch*.local.xml | ||
|
||
# visual studio database projects | ||
*.dbmdl | ||
|
||
#Test files | ||
*.testsettings | ||
|
||
#Other files | ||
*.DotSettings | ||
.vs/ | ||
*project.lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 14 | ||
VisualStudioVersion = 14.0.25123.0 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IconExplorer", "IconExplorer\IconExplorer.csproj", "{231c8e67-e4c3-42a3-9a13-e1bffe805d66}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactNative", "..\node_modules\react-native-windows\ReactWindows\ReactNative\ReactNative.csproj", "{C7673AD5-E3AA-468C-A5FD-FA38154E205C}" | ||
EndProject | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ChakraBridge", "..\node_modules\react-native-windows\ReactWindows\ChakraBridge\ChakraBridge.vcxproj", "{4B72C796-16D5-4E3A-81C0-3E36F531E578}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|ARM = Debug|ARM | ||
Debug|x64 = Debug|x64 | ||
Debug|x86 = Debug|x86 | ||
DebugBundle|ARM = DebugBundle|ARM | ||
DebugBundle|x64 = DebugBundle|x64 | ||
DebugBundle|x86 = DebugBundle|x86 | ||
Release|ARM = Release|ARM | ||
Release|x64 = Release|x64 | ||
Release|x86 = Release|x86 | ||
ReleaseBundle|ARM = ReleaseBundle|ARM | ||
ReleaseBundle|x64 = ReleaseBundle|x64 | ||
ReleaseBundle|x86 = ReleaseBundle|x86 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.Debug|ARM.ActiveCfg = Debug|ARM | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.Debug|ARM.Build.0 = Debug|ARM | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.Debug|ARM.Deploy.0 = Debug|ARM | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.Debug|x64.ActiveCfg = Debug|x64 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.Debug|x64.Build.0 = Debug|x64 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.Debug|x64.Deploy.0 = Debug|x64 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.Debug|x86.ActiveCfg = Debug|x86 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.Debug|x86.Build.0 = Debug|x86 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.Debug|x86.Deploy.0 = Debug|x86 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.DebugBundle|ARM.ActiveCfg = DebugBundle|ARM | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.DebugBundle|ARM.Build.0 = DebugBundle|ARM | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.DebugBundle|ARM.Deploy.0 = DebugBundle|ARM | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.DebugBundle|x64.ActiveCfg = DebugBundle|x64 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.DebugBundle|x64.Build.0 = DebugBundle|x64 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.DebugBundle|x64.Deploy.0 = DebugBundle|x64 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.DebugBundle|x86.ActiveCfg = DebugBundle|x86 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.DebugBundle|x86.Build.0 = DebugBundle|x86 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.DebugBundle|x86.Deploy.0 = DebugBundle|x86 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.Release|ARM.ActiveCfg = Release|ARM | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.Release|ARM.Build.0 = Release|ARM | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.Release|ARM.Deploy.0 = Release|ARM | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.Release|x64.ActiveCfg = Release|x64 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.Release|x64.Build.0 = Release|x64 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.Release|x64.Deploy.0 = Release|x64 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.Release|x86.ActiveCfg = Release|x86 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.Release|x86.Build.0 = Release|x86 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.Release|x86.Deploy.0 = Release|x86 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.ReleaseBundle|ARM.ActiveCfg = ReleaseBundle|ARM | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.ReleaseBundle|ARM.Build.0 = ReleaseBundle|ARM | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.ReleaseBundle|ARM.Deploy.0 = ReleaseBundle|ARM | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.ReleaseBundle|x64.ActiveCfg = ReleaseBundle|x64 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.ReleaseBundle|x64.Build.0 = ReleaseBundle|x64 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.ReleaseBundle|x64.Deploy.0 = ReleaseBundle|x64 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.ReleaseBundle|x86.ActiveCfg = ReleaseBundle|x86 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.ReleaseBundle|x86.Build.0 = ReleaseBundle|x86 | ||
{231c8e67-e4c3-42a3-9a13-e1bffe805d66}.ReleaseBundle|x86.Deploy.0 = ReleaseBundle|x86 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|ARM.ActiveCfg = Debug|ARM | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|ARM.Build.0 = Debug|ARM | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x64.ActiveCfg = Debug|x64 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x64.Build.0 = Debug|x64 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x86.ActiveCfg = Debug|x86 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Debug|x86.Build.0 = Debug|x86 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.DebugBundle|ARM.ActiveCfg = Debug|ARM | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.DebugBundle|ARM.Build.0 = Debug|ARM | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.DebugBundle|x64.ActiveCfg = Debug|x64 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.DebugBundle|x64.Build.0 = Debug|x64 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.DebugBundle|x86.ActiveCfg = Debug|x86 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.DebugBundle|x86.Build.0 = Debug|x86 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|ARM.ActiveCfg = Release|ARM | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|ARM.Build.0 = Release|ARM | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x64.ActiveCfg = Release|x64 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x64.Build.0 = Release|x64 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x86.ActiveCfg = Release|x86 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.Release|x86.Build.0 = Release|x86 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.ReleaseBundle|ARM.ActiveCfg = Release|ARM | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.ReleaseBundle|ARM.Build.0 = Release|ARM | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.ReleaseBundle|x64.ActiveCfg = Release|x64 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.ReleaseBundle|x64.Build.0 = Release|x64 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.ReleaseBundle|x86.ActiveCfg = Release|x86 | ||
{C7673AD5-E3AA-468C-A5FD-FA38154E205C}.ReleaseBundle|x86.Build.0 = Release|x86 | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|ARM.ActiveCfg = Debug|ARM | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|ARM.Build.0 = Debug|ARM | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|x64.ActiveCfg = Debug|x64 | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|x64.Build.0 = Debug|x64 | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|x86.ActiveCfg = Debug|Win32 | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Debug|x86.Build.0 = Debug|Win32 | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.DebugBundle|ARM.ActiveCfg = Debug|ARM | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.DebugBundle|ARM.Build.0 = Debug|ARM | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.DebugBundle|x64.ActiveCfg = Debug|x64 | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.DebugBundle|x64.Build.0 = Debug|x64 | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.DebugBundle|x86.ActiveCfg = Debug|Win32 | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.DebugBundle|x86.Build.0 = Debug|Win32 | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|ARM.ActiveCfg = Release|ARM | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|ARM.Build.0 = Release|ARM | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|x64.ActiveCfg = Release|x64 | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|x64.Build.0 = Release|x64 | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|x86.ActiveCfg = Release|Win32 | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.Release|x86.Build.0 = Release|Win32 | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.ReleaseBundle|ARM.ActiveCfg = Release|ARM | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.ReleaseBundle|ARM.Build.0 = Release|ARM | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.ReleaseBundle|x64.ActiveCfg = Release|x64 | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.ReleaseBundle|x64.Build.0 = Release|x64 | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.ReleaseBundle|x86.ActiveCfg = Release|Win32 | ||
{4B72C796-16D5-4E3A-81C0-3E36F531E578}.ReleaseBundle|x86.Build.0 = Release|Win32 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<Application | ||
x:Class="IconExplorer.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:IconExplorer" | ||
RequestedTheme="Light"> | ||
|
||
</Application> |
Oops, something went wrong.