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
132 stars 14 forks source link

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

Closed MakiychukYaroslav closed 10 months ago

MakiychukYaroslav commented 10 months 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 10 months ago

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

troberts-28 commented 10 months ago

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

MakiychukYaroslav commented 10 months ago

Bare React-Native, Thanks

troberts-28 commented 10 months ago

Hi @MakiychukYaroslav!

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