我完全是初学者,反应原生发展 . 我只是按照youtube视频中的代码执行基本路由 . 但它给了我一些错误 .

我的代码:

import React from 'react';
import { StyleSheet, Text, View, Navigator } from 'react-native';
import Splash from './Pages/Splash';
export default class App extends React.Component {
  render() {
    return (
        <Navigator
          initialRoute={{
            id:'Splash'
          }}
          renderScene={
            this.initializeScenes
          }
          />
    );
  }
  initializeScenes(route,navigator){
    _navigator = navigator;
    switch (route.id) {
      case 'Splash':
        return(
          <Splash navigator={navigator}, title="Splash"/>
        )
        break;
      default:

    }
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
});

它在 <Splash navigator={navigator}, title="Splash"/> 行中给了我意外的令牌错误 .