selvamk-js / sharingan-rn-modal-dropdown

A simple and customizable react-native dropdown created using react-native-modal and react-native-paper.
MIT License
86 stars 29 forks source link

EventEmitter.removeListener, Method has been deprecated message #53

Open rosnk opened 1 year ago

rosnk commented 1 year ago

Describe the bug getting this warning message:

 WARN  EventEmitter.removeListener('didUpdateDimensions', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `EventEmitter.addListener`.
 WARN  EventEmitter.removeListener('change', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `EventEmitter.addListener`. 
Dropdown@http://192.168.1.78:19000/node_modules/expo/AppEntry.bundle?platform=ios&dev=true&hot=false:167204:22

To Reproduce Steps to reproduce the behavior:

  1. My code:

            <Dropdown  
              data={data}
              disableSort={true}
              value={valueSS}
              onChange={onChangeSS}
              underlineColor={themeColors.primary}
              disabled={depositeRequiredChecked ? null : true}
            />
  2. react native version : "react-native": "0.69.6",

  3. this module version: "sharingan-rn-modal-dropdown": "^1.4.0",

Expected behavior no warnings to show.

Screenshots If applicable, add screenshots to help explain your problem.

Screen Shot 2023-01-17 at 4 36 49 PM
ashsharma1 commented 1 year ago

See #51