Экран iPad после заставки поворачивается на 180 градусов - PullRequest
1 голос
/ 18 июня 2020

Вот видео проблемы

Приложение перевернуто после загрузки на iPad, после ручного поворота на 180 градусов приложение работает должным образом

Такое же поведение на Настоящее устройство iPad, отлично работает с ориентацией Android

: в приложении закреплено «альбомное». json config

мое приложение. js файл:

import React from 'react';
import { View, Text } from 'react-native';

const App = () => {
  return (
    <View style={{ flex: 1, backgroundColor: 'grey', justifyContent: 'center', alignItems: 'center' }}>
      <Text style={{ position: 'absolute', fontSize: 30, top: 0 }}>TOP</Text>
      <Text style={{ position: 'absolute', fontSize: 30, left: 0 }}>LEFT</Text>
      <Text style={{ position: 'absolute', fontSize: 30, right: 0 }}>RIGHT</Text>
      <Text style={{ position: 'absolute', fontSize: 30, bottom: 0 }}>BOTTOM</Text>
    </View>
  );
};

export default App;

expo sdk: "^ 37.0.0"

мое приложение. json файл:

{
  "expo": {
    "packagerOpts": {
      "config": "metro.config.js",
      "sourceExts": [
        "js",
        "jsx",
        "ts",
        "tsx",
        "svg"
      ]
    },
    "name": "My Test App",
    "slug": "my-test-app",
    "privacy": "public",
    "platforms": [
      "ios"
    ],
    "version": "1.2.6",
    "orientation": "landscape",
    "splash": {
      "image": "./assets/splash2.png",
      "resizeMode": "contain",
      "backgroundColor": "#113F67"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "**/*"
    ],
    "ios": {
      "bundleIdentifier": "ru.my.testapp",
      "buildNumber": "1.2.6",
      "supportsTablet": true,
      "isTabletOnly": true,
      "requireFullScreen": true,
      "infoPlist": {
        "NSLocationWhenInUseUsageDescription": "location"
      },
      "config": {
        "googleMapsApiKey": "api-key"
      }
    },
    "description": ""
  }
}

...