0

我正在尝试遵循文档中的 Native Base 教程。

https://nativebase.io/docs/v0.1.0/components

一旦我尝试添加工具栏,我就会收到以下错误。工具栏组件似乎不在包中。有谁知道 Native Base 的文档好不好?

import React, { Component } from 'react'
import { Container, Toolbar, Button, Text, Content, View } from 'native-base';
import Icon from 'react-native-vector-icons/Ionicons';

export default class App extends Component {

  constructor(props) {
    super(props)

    this.state = {

    }
  }

  render() {
    return (
      <Container>
        <Toolbar></Toolbar>
        <Content>
          <View>
            <Text>Works! And some</Text>
          </View>
        </Content>
      </Container>
    )
  }
}

在此处输入图像描述

4

0 回答 0