I just convert your timeline class to js, and get this error:
TypeError: events.map is not a function. (In 'events.map(function (ev, index) {
return (0, _extends2.default)({}, ev, {
index: index
});
})', 'events.map' is undefined)
If there's an error message, please paste the full terminal output and error message in this code block:
ERROR TypeError: events.map is not a function. (In 'events.map(function (ev, index) {
return (0, _extends2.default)({}, ev, {
index: index
});
})', 'events.map' is undefined)
This error is located at:
in Timeline (at UserScheduleScreen.js:318)
in RCTView (at View.js:32)
in View (at Provider.js:117)
in CalendarProvider (at UserScheduleScreen.js:296)
in UserScheduleScreen (at SceneView.tsx:132)
in StaticContainer
in EnsureSingleNavigator (at SceneView.tsx:124)
in SceneView (at useDescriptors.tsx:217)
in RCTView (at View.js:32)
in View (at DebugContainer.native.tsx:27)
in DebugContainer (at NativeStackView.native.tsx:76)
in MaybeNestedStack (at NativeStackView.native.tsx:247)
in RNSScreen (at createAnimatedComponent.js:211)
in AnimatedComponent (at createAnimatedComponent.js:264)
in AnimatedComponentWrapper (at src/index.native.tsx:281)
in MaybeFreeze (at src/index.native.tsx:280)
in Screen (at NativeStackView.native.tsx:180)
in SceneView (at NativeStackView.native.tsx:299)
in RNSScreenStack (at src/index.native.tsx:202)
in ScreenStack (at NativeStackView.native.tsx:290)
in NativeStackViewInner (at NativeStackView.native.tsx:344)
in RCTView (at View.js:32)
in View (at SafeAreaProviderCompat.tsx:42)
in SafeAreaProviderCompat (at NativeStackView.native.tsx:343)
in NativeStackView (at createNativeStackNavigator.tsx:72)
in Unknown (at createNativeStackNavigator.tsx:71)
in NativeStackNavigator (at HomeScreen.js:61)
in UserScheduleStackScreen (at SceneView.tsx:132)
in StaticContainer
in EnsureSingleNavigator (at SceneView.tsx:124)
in SceneView (at useDescriptors.tsx:217)
in RCTView (at View.js:32)
in View (at Screen.tsx:63)
in RCTView (at View.js:32)
in View (at Background.tsx:13)
in Background (at Screen.tsx:58)
in Screen (at BottomTabView.tsx:130)
in RNSScreen (at createAnimatedComponent.js:211)
in AnimatedComponent (at createAnimatedComponent.js:264)
in AnimatedComponentWrapper (at src/index.native.tsx:281)
in MaybeFreeze (at src/index.native.tsx:280)
in Screen (at ScreenFallback.tsx:38)
in MaybeScreen (at BottomTabView.tsx:123)
in RNSScreenNavigationContainer (at src/index.native.tsx:349)
in ScreenContainer (at ScreenFallback.tsx:29)
in MaybeScreenContainer (at BottomTabView.tsx:93)
in RCTView (at View.js:32)
in View (at SafeAreaProviderCompat.tsx:42)
in SafeAreaProviderCompat (at BottomTabView.tsx:92)
in BottomTabView (at createBottomTabNavigator.tsx:118)
in Unknown (at createBottomTabNavigator.tsx:117)
in BottomTabNavigator (at HomeScreen.js:92)
in HomeScreen (at SceneView.tsx:132)
in StaticContainer
in EnsureSingleNavigator (at SceneView.tsx:124)
in SceneView (at useDescriptors.tsx:217)
in RCTView (at View.js:32)
in View (at DebugContainer.native.tsx:27)
in DebugContainer (at NativeStackView.native.tsx:76)
in MaybeNestedStack (at NativeStackView.native.tsx:247)
in RNSScreen (at createAnimatedComponent.js:211)
in AnimatedComponent (at createAnimatedComponent.js:264)
in AnimatedComponentWrapper (at src/index.native.tsx:281)
in MaybeFreeze (at src/index.native.tsx:280)
in Screen (at NativeStackView.native.tsx:180)
in SceneView (at NativeStackView.native.tsx:299)
in RNSScreenStack (at src/index.native.tsx:202)
in ScreenStack (at NativeStackView.native.tsx:290)
in NativeStackViewInner (at NativeStackView.native.tsx:344)
in RNCSafeAreaProvider (at SafeAreaContext.tsx:76)
in SafeAreaProvider (at SafeAreaProviderCompat.tsx:46)
in SafeAreaProviderCompat (at NativeStackView.native.tsx:343)
in NativeStackView (at createNativeStackNavigator.tsx:72)
in Unknown (at createNativeStackNavigator.tsx:71)
in NativeStackNavigator (at App.js:285)
in EnsureSingleNavigator (at BaseNavigationContainer.tsx:430)
in BaseNavigationContainer (at NavigationContainer.tsx:132)
in ThemeProvider (at NavigationContainer.tsx:131)
in NavigationContainerInner (at App.js:280)
in RCTView (at View.js:32)
in View (at ActionSheet/index.ios.tsx:16)
in ActionSheet (at ActionSheetProvider.tsx:35)
in ActionSheetProvider (at App.js:279)
in Provider (at SignalrContext.js:60)
in SignalrWrapper (at App.js:273)
in Unknown (at App.js:269)
in Provider (at App.js:268)
in App (at renderApplication.js:50)
in RCTView (at View.js:32)
in View (at AppContainer.js:92)
in RCTView (at View.js:32)
in View (at AppContainer.js:119)
in AppContainer (at renderApplication.js:43)
in VedaxLink(RootComponent) (at renderApplication.js:60)
Environment
Please run these commands in the project folder and fill in their results:
npm ls react-native-calendars: react-native-calendars@1.1275.0
npm ls react-native:
/Users/thehe/Desktop/VedaxLink
├─┬ @freakycoder/react-native-bounceable@0.2.5
│ └── react-native@0.68.2 deduped
├─┬ @react-native-community/hooks@2.8.1
│ └── react-native@0.68.2 deduped
├─┬ @react-native-community/slider@4.2.2
│ └── react-native@0.68.2 deduped
├─┬ @react-native-masked-view/masked-view@0.2.6
│ └── react-native@0.68.2 deduped
├─┬ @react-native-segmented-control/segmented-control@2.4.0
│ └── react-native@0.68.2 deduped
├─┬ @react-navigation/bottom-tabs@6.3.1
│ ├─┬ @react-navigation/elements@1.3.3
│ │ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
│ └── react-native@0.68.2 deduped
├─┬ @react-navigation/material-bottom-tabs@6.2.1
│ └── react-native@0.68.2 deduped
├─┬ @react-navigation/native-stack@6.6.1
│ └── react-native@0.68.2 deduped
├─┬ @react-navigation/native@6.0.10
│ └── react-native@0.68.2 deduped
├─┬ @realm/react@0.3.0
│ └── react-native@0.68.2 deduped
├─┬ react-native-actions-sheet@0.6.1
│ └── react-native@0.68.2 deduped
├─┬ react-native-animated-spinkit@1.5.2
│ └── react-native@0.68.2 deduped
├─┬ react-native-app-auth@6.4.3
│ └── react-native@0.68.2 deduped
├─┬ react-native-autogrow-textinput@5.4.0
│ └── react-native@0.68.2 deduped
├─┬ react-native-chart-kit@6.12.0
│ └── react-native@0.68.2 deduped
├─┬ react-native-context-menu-view@1.5.2
│ └── react-native@0.68.2 deduped
├─┬ react-native-controlled-mentions@3.0.0-alpha.1
│ └── react-native@0.68.2 deduped
├─┬ react-native-create-thumbnail@1.5.1
│ └── react-native@0.68.2 deduped
├─┬ react-native-device-info@9.0.2
│ └── react-native@0.68.2 deduped
├─┬ react-native-dialog@9.2.2
│ └── react-native@0.68.2 deduped
├─┬ react-native-doc-viewer@2.7.8
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer
├─┬ react-native-document-picker@8.1.1
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer
├─┬ react-native-elements@3.4.2
│ ├─┬ react-native-ratings@8.0.4
│ │ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
│ └─┬ react-native-size-matters@0.3.1
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-emoji-board@1.2.1
│ └─┬ react-native-scrollable-tab-view@1.0.0
│ ├─┬ @react-native-community/viewpager@2.0.2
│ │ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-event-bus@1.0.0
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer
├─┬ react-native-fast-image@8.5.11
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer
├─┬ react-native-file-viewer@2.1.5
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer
├─┬ react-native-fs@2.20.0
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer
├─┬ react-native-gesture-handler@2.4.2
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer
├─┬ react-native-get-random-values@1.8.0
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer
├─┬ react-native-gifted-chat@0.16.3
│ ├─┬ react-native-iphone-x-helper@1.3.1
│ │ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
│ ├─┬ react-native-parsed-text@0.0.22
│ │ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer
├─┬ react-native-haptic-feedback@1.13.1
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer
├─┬ react-native-icon-action-sheet@0.0.6
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer
├─┬ react-native-icon-badge@1.1.3
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer
├─┬ react-native-image-crop-picker@0.37.3
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer
├─┬ react-native-image-modal@2.0.4
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer
├─┬ react-native-image-viewing@0.2.2
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer
├─┬ react-native-ios-context-menu@1.8.0
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer
├─┬ react-native-keyboard-input@6.0.2
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-keyboard-tracking-view@5.7.0
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-lightbox-v2@0.9.0
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-linear-gradient@2.5.6
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-localize@2.2.1
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-pager-view@6.0.0-rc.2
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-paper@4.12.0
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-rectangle-scanner@1.0.10
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-render-html@6.3.4
│ ├─┬ @jsamr/react-native-li@2.3.1
│ │ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
│ ├─┬ @native-html/transient-render-engine@11.2.3
│ │ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-safe-area-context@3.4.1
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-screens@3.13.1
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-sound@0.11.2
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-splash-screen@3.3.0
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-svg@12.3.0
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-swipe-item@0.6.1
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-swipe-list-view@3.2.9
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-system-navigation-bar@1.0.4
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-text-gradient@0.1.7
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-text-size@4.0.0-rc.1
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-toast-message@2.1.5
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-track-player@2.1.3
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-typing-animation@0.1.7
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-user-avatar@1.0.8
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-video-player@0.12.0
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-view-overflow@0.0.5
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-view-pdf@0.13.2
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-view-shot@3.3.0
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-webrtc@1.100.0
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native-webview@11.22.2
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-native@0.68.2 invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
│ └─┬ @react-native-community/cli@7.0.3
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ react-redux@8.0.2
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
├─┬ realm@10.18.0
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
└─┬ sharingan-rn-modal-dropdown@1.4.0
├─┬ react-native-modal@11.10.0
│ └── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
└── react-native@0.68.2 deduped invalid: "0.54.3" from node_modules/react-native-doc-viewer, "0.61.4" from node_modules/react-native-keyboard-input
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/thehe/.npm/_logs/2022-07-15T10_21_29_001Z-debug-0.log
Also specify:
1. Device/emulator/simulator & OS version: IPhone 13 simulator ios 15.5
## Reproducible Demo
Please provide a minimized reproducible demonstration of the problem you're reporting.
Issues that come with minimal repro's are resolved much more quickly than issues where a maintainer has to reproduce themselves.
## Screenshots
![Screen Shot 2022-07-15 at 17 22 10](https://user-images.githubusercontent.com/8202437/179204792-12deade0-d68e-42bd-b6f8-06418ddd132d.png)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
I just convert your timeline class to js, and get this error:
in this line of class Packer.js
Here is my simple code:
Expected Behavior
I want to show timeline normally
Observed Behavior
If there's an error message, please paste the full terminal output and error message in this code block:
Environment
Please run these commands in the project folder and fill in their results:
npm ls react-native-calendars
: react-native-calendars@1.1275.0npm ls react-native
:npm ERR! code ELSPROBLEMS npm ERR! invalid: react-native@0.68.2 /Users/thehe/Desktop/VedaxLink/node_modules/react-native
npm ERR! A complete log of this run can be found in: npm ERR! /Users/thehe/.npm/_logs/2022-07-15T10_21_29_001Z-debug-0.log