0
code unten gehört mir.
und ich verwende Atom, Genie Bewegung.
es doppelte Erklärung "MyScene" said bei ~ \ index.android.js: 20: 7reactive-native android duplicate declaration
import React, { Component } from 'react';
import { AppRegistry, ListView, Text, View } from 'react-native';
export default class MyScene extends Component {
getDefaultProps() {
return {
title: 'MyScene'
};
}
render() {
return (
<View>
<Text>Hi! My name is {this.props.title}.</Text>
</View>
)
}
}
//import MyScene from './MyScene';
class YoDawgApp extends Component {
render() {
return (
<MyScene />
)
}
}
AppRegistry.registerComponent('YoDawgApp',() => YoDawgApp);