View config getter callback for component `RNDateTimePicker` must be a function (received `undefined`)

Aperta
#867 2 commenti 4 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript, react-native
Ambito
mobile

Direzione di ricerca

Start by reviewing the reproduction in the issue and how the package registers RNDateTimePicker on iOS. Try the supplied Snack example on iOS and compare it with Android, then trace the iOS native component registration. Done means the component renders on iOS without the reported undefined view config error.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

👋 Hi!
I tried to use this picker in snack for test https://snack.expo.dev/ ,android working fine but ios it show this errors, can some help us to solve this issue and thanks
View config getter callback for component RNDateTimePicker must be a function (received undefined)

this simple test code for reproduce

import DateTimePicker from '@react-native-community/datetimepicker';
const App = () => {
  const [date, setDate] = useState(new Date(1598051730000));
return (
<View style={{flex:1}}>
<DateTimePicker
          testID="dateTimePicker"
          value={date}
          mode={'date'}
          is24Hour={true}
          onChange={() => alert('changed')}
        />
</View> 
}
export default App;

image

Lingua principale
JavaScript
Stelle
2.9k
Fork
459
Merge medio
4g 16h
PR unite (30g)
5

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di react-native-datetimepicker/datetimepicker

Tutte le issue di react-native-datetimepicker/datetimepicker

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.