-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
149 changed files
with
3,605 additions
and
1,609 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
// Offline JS | ||
// To re-generate the offline bundle, run this from root of your project | ||
// $ curl 'http://localhost:8081/Examples/SampleApp/index.ios.bundle?dev=false&minify=true' -o iOS/main.jsbundle | ||
// To re-generate the offline bundle, run this from the root of your project: | ||
// | ||
// $ react-native bundle --minify | ||
// | ||
// See http://facebook.github.io/react-native/docs/runningondevice.html for more details. | ||
|
||
throw new Error('Offline JS file is empty. See iOS/main.jsbundle for instructions'); |
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 |
---|---|---|
|
@@ -175,4 +175,6 @@ var styles = StyleSheet.create({ | |
} | ||
}); | ||
|
||
TabBarExample.external = true; | ||
|
||
module.exports = TabBarExample; |
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,90 @@ | ||
/** | ||
* The examples provided by Facebook are for non-commercial testing and | ||
* evaluation purposes only. | ||
* | ||
* Facebook reserves all rights not expressly granted. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | ||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL | ||
* FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | ||
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
*/ | ||
'use strict'; | ||
|
||
var React = require('react-native'); | ||
var { | ||
NavigatorIOS, | ||
StatusBarIOS, | ||
StyleSheet, | ||
Text, | ||
View | ||
} = React; | ||
|
||
var EmptyPage = React.createClass({ | ||
|
||
render: function() { | ||
return ( | ||
<View style={styles.emptyPage}> | ||
<Text style={styles.emptyPageText}> | ||
{this.props.text} | ||
</Text> | ||
</View> | ||
); | ||
}, | ||
|
||
}); | ||
|
||
var NavigatorIOSColors = React.createClass({ | ||
|
||
statics: { | ||
title: '<NavigatorIOS> - Custom', | ||
description: 'iOS navigation with custom nav bar colors', | ||
}, | ||
|
||
render: function() { | ||
// Set StatusBar with light contents to get better contrast | ||
StatusBarIOS.setStyle(StatusBarIOS.Style['lightContent']); | ||
|
||
return ( | ||
<NavigatorIOS | ||
style={styles.container} | ||
initialRoute={{ | ||
component: EmptyPage, | ||
title: '<NavigatorIOS>', | ||
rightButtonTitle: 'Done', | ||
onRightButtonPress: () => { | ||
StatusBarIOS.setStyle(StatusBarIOS.Style['default']); | ||
this.props.onExampleExit(); | ||
}, | ||
passProps: { | ||
text: 'The nav bar has custom colors with tintColor, ' + | ||
'barTintColor and titleTextColor props.', | ||
}, | ||
}} | ||
tintColor="#FFFFFF" | ||
barTintColor="#183E63" | ||
titleTextColor="#FFFFFF" | ||
/> | ||
); | ||
}, | ||
|
||
}); | ||
|
||
var styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
}, | ||
emptyPage: { | ||
flex: 1, | ||
paddingTop: 64, | ||
}, | ||
emptyPageText: { | ||
margin: 10, | ||
}, | ||
}); | ||
|
||
NavigatorIOSColors.external = true; | ||
|
||
module.exports = NavigatorIOSColors; |
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
Oops, something went wrong.