简体   繁体   中英

stagger doesn't exist in Popmotion's package

im getting the following error, when trying to use Popmotion's packages in my react-native expo app. ERROR TypeError: (0, _popmotion.stagger) is not a function. (In '(0, _popmotion.stagger)(array-content, 4000 / 5)', '(0, _popmotion.stagger)' is undefined). I've imported stagger like this import {stagger} from 'popmotion' however, when i inspect the Popmotion package's folder, i can't found where stagger is located or is declared and vscode can't even give me a suggestion about it because it doesn't exist. if someone knows where i should import it from or if that name has been changed

很好解决,这是包版本的问题,所以如果您遇到同样的问题,请尝试检查您正在使用的 Popmotion 版本

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM