troberts-28 / react-native-timer-picker

A simple, flexible, performant duration picker for React Native apps (Expo & Bare Workflow). Great for timers, alarms and duration inputs. Includes iOS-style haptic and audio feedback.
https://www.npmjs.com/package/react-native-timer-picker
MIT License
143 stars 19 forks source link

TypeError: Cannot read property 'useMemo' of null #15

Closed MakiychukYaroslav closed 1 year ago

MakiychukYaroslav commented 1 year ago
import { TimerPicker } from 'react-native-timer-picker';
...
  <TimerPicker
          padWithNItems={2}
          hourLabel=":"
          minuteLabel=":"
          secondLabel=""
          styles={{
            theme: 'dark',
            backgroundColor: '#202020',
            pickerItem: {
              fontSize: 34,
            },
            pickerLabel: {
              fontSize: 32,
              marginTop: 0,
            },
            pickerContainer: {
              marginRight: 6,
            },
          }}
        />

packages: "react": "17.0.2", "react-native": "0.67.3", "react-native-timer-picker": "^1.2.7",

image
MakiychukYaroslav commented 1 year ago

An error occurred while trying to add a component to the project @troberts-28 Could you please help with this?

troberts-28 commented 1 year ago

Hi @MakiychukYaroslav, I'll take a look. Are you using Expo or raw React Native?

MakiychukYaroslav commented 1 year ago

Bare React-Native, Thanks

troberts-28 commented 1 year ago

Hi @MakiychukYaroslav!

This should be fixed for you in the latest version (v1.2.10) 🙌