RNCSafeAreaView не был найден в UIManager - PullRequest
1 голос
/ 12 марта 2020

Система: ОС: Linux 5.3 Ubuntu 18.04.4 LTS (Bioni c Beaver) Процессор: (4) x64 Intel (R) Core (TM) i5-4300U Процессор @ 1.90 ГГц Память: 378,16 МБ / 7,66 Оболочка GB: 4.4.20 - / bin / bash Двоичные файлы: узел: 12.16.1 - / usr / bin / node Пряжа: 1.21.1 - / usr / bin / yarn npm: 6.13.4 - / usr / bin / npm Watchman: 4.9.0 - / usr / local / bin / watchman

SDK:

  • Android SDK:
  • API Уровни: 23, 25, 27, 28
  • Инструменты сборки: 23.0.1, 23.0.3, 27.0.3, 28.0.3
  • Системные изображения: android -28 | Intel x86 Atom_64, android -28 | API Google Intel x86 Atom

IDE: Android Studio: 3.5 AI-191.8026.42.35.5791312

npmПакеты:

реагировать : 16.9.0 => 16.9.0

реактивный: 0.61.5 => 0.61.5

npmGlobalPackages:

реагировать-нативный- git -обновление : 0.2.7

"dependencies": {
    "@react-native-community/masked-view": "^0.1.7",
    "@react-navigation/bottom-tabs": "^5.1.1",
    "@react-navigation/native": "^5.0.9",
    "@react-navigation/stack": "^5.1.1",
    "prop-types": "^15.7.2",
    "react": "16.9.0",
    "react-native": "0.61.5",
    "react-native-deprecated-custom-components": "^0.1.2",
    "react-native-gesture-handler": "^1.6.0",
    "react-native-reanimated": "^1.7.0",
    "react-native-safe-area-context": "^0.7.3",
    "react-native-screens": "^2.3.0",
    "react-native-scrollable-tab-view": "^1.0.0",
    "react-native-swiper": "^1.6.0-rc.3",
    "react-native-tab-navigator": "^0.3.4"
  }

код:

function HomeScreen() {
  return (
    <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
      <Text>Home!</Text>
    </View>
  );
}

function SettingsScreen() {
  return (
    <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
      <Text>Settings!</Text>
    </View>
  );
}
return (
      <NavigationContainer>
        <Tab.Navigator>
          <Tab.Screen name="Home" component={HomeScreen} />
          <Tab.Screen name="Settings" component={SettingsScreen} />
        </Tab.Navigator>
      </NavigationContainer>
    )

1 Ответ

0 голосов
/ 12 марта 2020

Вам необходимо установить react-native-safe-area-view

ссылка https://github.com/react-native-community/react-native-safe-area-view#in -bare-реагировать-native-проекты

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...