File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-popup-menu" ,
3- "version" : " 0.13.0 " ,
3+ "version" : " 0.13.1 " ,
44 "description" : " extensible popup/context menu for react native" ,
55 "main" : " src/index.js" ,
66 "directories" : {
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ const layoutsEqual = (a, b) => (
1616
1717const isFunctional = Component => ! Component . prototype . render ;
1818
19- if ( ! createContext ) {
20- console . warn ( 'New React context API not available - are you using RN 0.55+ ? ')
19+ if ( ! React . forwardRef ) {
20+ throw new Error ( 'This version of popup-menu requires RN 0.55+. Check our compatibility table. ')
2121}
2222export const PopupMenuContext = createContext ( { } )
2323export const withCtx = withContext ( PopupMenuContext , "ctx" ) ;
You can’t perform that action at this time.
0 commit comments