Ts2349: Cannot Invoke An Expression Whose Type Lacks A Call Signature. Type 'typeof ... Renderif"' Has No Compatible Call Signatures
Its base on https://github.com/react-native-training/reactxp-starter Also I am new to TypeScript! The renderIf is a regular js function, for some reason I got the error with type.
Solution 1:
Wow.... its crazy, actually its because I did not add .default
when I call renderIf
.... BUT I can't really even do import renderIf = require('./util/renderIf').default;
so I have to do import renderIf = require('./util/renderIf');
.. which is strange
Post a Comment for "Ts2349: Cannot Invoke An Expression Whose Type Lacks A Call Signature. Type 'typeof ... Renderif"' Has No Compatible Call Signatures"