Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native Calendar Widget - ViewPropTypes has been removed from React Native #13

Open
TimVredevoort opened this issue Apr 28, 2023 · 3 comments

Comments

@TimVredevoort
Copy link

The widget stopped working after upgrading to Mendix 9.24.1. This version has a newer version of React Native which does not support ViewPropTypes. Here is my stacktrace:

`ViewPropTypes has been removed from React Native. Migrate to ViewPropTypes exported from 'deprecated-react-native-prop-types'.

Stack:
invariant@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:12840:26
ViewPropTypes@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:12717:16
node_modulesReactNativeCalendarsSrcCalendarIndexJs@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:229794:36
webpack_require@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:199093:29
node_modulesReactNativeCalendarsSrcIndexJs@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:232369:65
webpack_require@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:199093:29
srcComponentsCalendarInitTsx@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:243235:84
webpack_require@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:199093:29
srcCalendarNativeWidgetTsx@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:243121:86
webpack_require@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:199093:29
@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:199147:31
@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:199148:4
loadModuleImplementation@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:257:14
@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:190309:42
loadModuleImplementation@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:257:14
@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:189359:37
loadModuleImplementation@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:257:14
guardedLoadModule@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:158:47
registerPages@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:1284:76
@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:6660:68
@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:6661:10
generatorResume@[native code]
asyncGeneratorStep@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:7025:26
_next@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:7044:29
tryCallOne@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:33981:16
@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:34062:27
@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:34942:26
_callTimer@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:34861:17
_callReactNativeMicrotasksPass@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:34891:17
callReactNativeMicrotasks@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:35054:44
__callReactNativeMicrotasks@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:28540:46
@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:28352:45
__guard@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:28524:15
flushedQueue@http://172.16.144.152:8083/index.bundle?platform=ios&dev=true&minify=false:28351:21
flushedQueue@[native code]
invokeCallbackAndReturnFlushedQueue@[native code]`

@hello-mendix-world
Copy link

hello-mendix-world commented Aug 2, 2023

We experience the same behaviour. The project is unable to upgrade to 9.24 now.

Would really appreciate if this can be picked up.

Did you find a work around, @TimVredevoort?

@fhotie
Copy link

fhotie commented Aug 2, 2023

We encounter the same problem in Mendix version 9.24 (LTS version).

In Mendix versions 9.24.0, 9.24.1, 9.24.2 and 9.24.3 we also see the following error message:

undefined is not an object (evaluating 'page.$$style')

In Mendix versions 9.24.4 and 9.24.5 we see the following error in the logging:

Possible Unhandled Promise Rejection (id: 0):
TypeError: undefined is not an object (evaluating '((_topLevelNavigator = topLevelNavigator) == null ? void 0 : _topLevelNavigator.state).nav')

Is there a solution or workaround for this?

@TimVredevoort
Copy link
Author

We experience the same behaviour. The project is unable to upgrade to 9.24 now.

Would really appreciate if this can be picked up.

Did you find a work around, @TimVredevoort?

Hi @hello-mendix-world. No, the only solution is to refactor the widget. My client did not want to invest the time in doing this, so for now we removed the calendar from the native app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants