mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-07 09:17:55 +08:00
Clean up UIExplorer and seperate RCTRootView examples
Reviewed By: nicklockwood Differential Revision: D2951030 fb-gh-sync-id: e7cf64035d8e9e30aafe8b4944b6a20e4bc55078 shipit-source-id: e7cf64035d8e9e30aafe8b4944b6a20e4bc55078
This commit is contained in:
committed by
facebook-github-bot-5
parent
9294c6f5d4
commit
2b46fd424d
@@ -13,17 +13,18 @@
|
||||
*
|
||||
* @flow
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var React = require('React');
|
||||
var Text = require('Text');
|
||||
var View = require('View');
|
||||
const React = require('react-native');
|
||||
const {
|
||||
Text,
|
||||
View,
|
||||
} = React;
|
||||
|
||||
var SetPropertiesExampleApp = React.createClass({
|
||||
class SetPropertiesExampleApp extends React.Component {
|
||||
|
||||
render: function() {
|
||||
var wrapperStyle = {
|
||||
render() {
|
||||
const wrapperStyle = {
|
||||
backgroundColor: this.props.color,
|
||||
flex: 1,
|
||||
alignItems: 'center',
|
||||
@@ -37,7 +38,8 @@ var SetPropertiesExampleApp = React.createClass({
|
||||
</Text>
|
||||
</View>
|
||||
);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
module.exports = SetPropertiesExampleApp;
|
||||
|
||||
Reference in New Issue
Block a user