Open avivash opened 2 weeks ago
I was able to get this working by polyfilling navigator.userAgent
for now, but I wonder if there's a better way?
if (!global?.navigator?.userAgent) {
global.navigator = {
...global.navigator,
userAgent: 'React Native',
}
}
might be a framer version issue
might be a framer version issue
thanks 👍🏼 i'll try to diagnose further
Is there an existing issue for this?
Do you want this issue prioritized?
Current Behavior
When I import any Moti component into my react native app, I see this error that
userAgent
is undefined. I traced it back to theframer-motion
library, which I didn't think was used on native?Expected Behavior
I should be able to import components.
Steps To Reproduce
reanimated
imports to my App.tsxnavigator.userAgent
undefined error because offramer-motion
Versions
Screenshots
Reproduction
will add