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.
- Loading branch information
Showing
24 changed files
with
1,356 additions
and
1,193 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
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
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
Binary file not shown.
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
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
2 changes: 1 addition & 1 deletion
2
Examples/IconExplorer/android/gradle/wrapper/gradle-wrapper.properties
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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 |
---|---|---|
@@ -1,54 +1,5 @@ | ||
import React from 'react'; | ||
import { AppRegistry, StyleSheet } from 'react-native'; | ||
import { createAppContainer, createStackNavigator } from 'react-navigation'; | ||
import { AppRegistry } from 'react-native'; | ||
import App from './src/App'; | ||
import { name as appName } from './app.json'; | ||
|
||
import IconSetList from './IconSetList'; | ||
import IconList from './IconList'; | ||
|
||
const styles = StyleSheet.create({ | ||
header: { | ||
backgroundColor: 'white', | ||
}, | ||
}); | ||
|
||
class IconListScreen extends React.Component { | ||
static navigationOptions = ({ navigation }) => ({ | ||
title: navigation.state.params.title, | ||
headerStyle: styles.header, | ||
}); | ||
|
||
render() { | ||
const { iconSet } = this.props.navigation.state.params; | ||
|
||
return <IconList iconSet={iconSet} />; | ||
} | ||
} | ||
|
||
class IconExplorer extends React.Component { | ||
static navigationOptions = { | ||
title: 'Icon Explorer', | ||
headerStyle: styles.header, | ||
}; | ||
|
||
render() { | ||
const { navigate } = this.props.navigation; | ||
return ( | ||
<IconSetList | ||
navigator={{ | ||
push({ iconSet, title }) { | ||
navigate('IconSet', { title, iconSet }); | ||
}, | ||
}} | ||
/> | ||
); | ||
} | ||
} | ||
|
||
const AppNavigator = createStackNavigator({ | ||
IconExplorer: { screen: IconExplorer }, | ||
IconSet: { screen: IconListScreen }, | ||
}); | ||
|
||
const App = createAppContainer(AppNavigator); | ||
|
||
AppRegistry.registerComponent('IconExplorer', () => App); | ||
AppRegistry.registerComponent(appName, () => App); |
Oops, something went wrong.