Skip to content

onGeometryChange error ! #10

@kaantpll

Description

@kaantpll

I use expo with nativewind. Whenever I tried to get ios build in my apps but every projects got this error :

❌  (node_modules/expo-modules-core/ios/Core/Views/SwiftUI/AutoSizingStack.swift:35:16)
  33 |             content.fixedSize(horizontal: axis.contains(.horizontal), vertical: axis.contains(.vertical))
  34 |               .hidden()
> 35 |               .onGeometryChange(for: CGSize.self, of: { proxy in proxy.size }, action: { size in
     |                ^ value of type 'some View' has no member 'onGeometryChange'
  36 |                 var size = size
  37 |                 size.width = axis.contains(.horizontal) ? size.width : ShadowNodeProxy.UNDEFINED_SIZE
  38 |                 size.height = axis.contains(.vertical) ? size.height : ShadowNodeProxy.UNDEFINED_SIZE
[RUN_FASTLANE] › Packaging react-native-gesture-handler Pods/RNGestureHandler » libRNGestureHandler.a

my eas.json :


{
  "cli": {
    "version": ">= 16.3.2",
    "appVersionSource": "remote"
  },
  "build": {
    "development": {
      "developmentClient": true,
      "distribution": "internal"
    },
    "preview": {
      "distribution": "internal"
    },
    "production": {
      "autoIncrement": true
    }
  },
  "submit": {
    "production": {
      "ios": {
       "appleId": "",
        "appleTeamId": ""
    }
  }
  }
}

my babel.config.ts


const { getDefaultConfig } = require("expo/metro-config");
const { withNativeWind } = require("nativewind/metro");

const config = getDefaultConfig(__dirname);

module.exports = withNativeWind(config, { input: "./global.css" });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions