Skip to content

Commit

Permalink
Add support for windows port (oblador#308)
Browse files Browse the repository at this point in the history
* 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
jmcginty authored and oblador committed Oct 26, 2016
1 parent 47ee157 commit f92e7a2
Show file tree
Hide file tree
Showing 24 changed files with 855 additions and 2 deletions.
84 changes: 84 additions & 0 deletions Examples/IconExplorer/index.windows.js
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);
6 changes: 5 additions & 1 deletion Examples/IconExplorer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
"lodash": "^4.0.0",
"react": "15.3.2",
"react-native": "0.35.0",
"react-native-vector-icons": "file:../../"
"react-native-vector-icons": "file:../../",
"react-native-windows": "^0.35.0"
},
"devDependencies": {
"rnpm-plugin-windows": "^0.2.0"
}
}
1 change: 1 addition & 0 deletions Examples/IconExplorer/react-native.windows.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from 'react-native';
78 changes: 78 additions & 0 deletions Examples/IconExplorer/windows/.gitignore
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
116 changes: 116 additions & 0 deletions Examples/IconExplorer/windows/IconExplorer.sln
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
8 changes: 8 additions & 0 deletions Examples/IconExplorer/windows/IconExplorer/App.xaml
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>
Loading

0 comments on commit f92e7a2

Please sign in to comment.