sekizlipenguen / react-native-popup-confirm-toast

MIT License
89 stars 12 forks source link

Getting "Property 'props' doesn't exist" error when use "bodyComponent" property #21

Closed mburakucar closed 1 year ago

mburakucar commented 1 year ago

I am using the example in the "Example Custom Body Component" section in the document and I am getting the error "Property 'props' doesn't exist".

sekizlipenguen commented 1 year ago

Hi,

Actually, "props" here means props in your own hook system or this.props if you are using the class system. You can remove "props" from here, it was just an example.

{ const popup = Popup; popup.show({ type: 'confirm', textBody: 'Hesabınızın silinme işlemini onaylamak için şifrenizi giriniz.', bodyComponent: (bodyProps) => bodyComponent({bodyProps,popup}), confirmText: 'Cancel', iconEnabled: false, buttonEnabled: false, }); }} > Open Popup Confirm Message