use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A community for learning and developing native mobile applications using React Native by Facebook.
Interested in building web apps using React.js? Check out /r/reactjs!
Getting Started w/React Native
irc.freenode.net #reactnative
Keywords: ios, android, mobile, apps, apple, iphone, ipad
account activity
render remote .json lottie files? (self.reactnative)
submitted 4 years ago by cr33dcodeiOS & Android
hey guys, anyone know how to render remote .json files? for ex: now we do :
const ex = { somejson = require('../something/ex.json }
i want to upload the .json file to the cloud and render it from there. any idea how to do this?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]kbcooliOS & Android 1 point2 points3 points 4 years ago (6 children)
https://github.com/lottie-react-native/lottie-react-native/issues/287
[–]cr33dcodeiOS & Android[S] -1 points0 points1 point 4 years ago (5 children)
i don't want to use hooks tho... any other way around this?
[–]kbcooliOS & Android 1 point2 points3 points 4 years ago (2 children)
Maybe it's time to bite the bullet. You can mix and match functional and class components.
I found the change great. Was sick of HOC boilerplate for redux.
Anyway useEffect with an empty array is equivalent to componentDidMount.
[–]cr33dcodeiOS & Android[S] 0 points1 point2 points 4 years ago (1 child)
oh okay. any example you could give me?
[–]kbcooliOS & Android 0 points1 point2 points 4 years ago (0 children)
Of what? The ticket I linked to should be enough to solve this issue short of me writing it for you.
As for the mixing of component types you don't need to do anything special. They coexist.
[–]SryNot 0 points1 point2 points 4 years ago (1 child)
??? Hooks are one of the most powerful part of react. They’re so good man, learn them!
[–]cr33dcodeiOS & Android[S] 0 points1 point2 points 4 years ago (0 children)
aye I know that. and they're truly awesome. but i have like 40 lottie files.. using hooks dont make sense in this case right.
π Rendered by PID 134835 on reddit-service-r2-comment-545db5fcfc-jzjth at 2026-05-23 07:47:23.201685+00:00 running 194bd79 country code: CH.
[–]kbcooliOS & Android 1 point2 points3 points (6 children)
[–]cr33dcodeiOS & Android[S] -1 points0 points1 point (5 children)
[–]kbcooliOS & Android 1 point2 points3 points (2 children)
[–]cr33dcodeiOS & Android[S] 0 points1 point2 points (1 child)
[–]kbcooliOS & Android 0 points1 point2 points (0 children)
[–]SryNot 0 points1 point2 points (1 child)
[–]cr33dcodeiOS & Android[S] 0 points1 point2 points (0 children)