Skip to content

Conversation

@TheRogue76
Copy link
Owner

This is what it would look like if you wanted to make your own native component, for example Lottie.
Out of all the files here, i only modified the following myself:

  1. native-views/NativeViews.podspec where i added the iOS dependency
  2. native-views/android/build.gradle where i added the android dependency
  3. native-views/android/src/main/java/com/margelo/nitro/nativeviews/HybridLottie.kt my Android implementation
  4. native-views/android/src/main/java/com/margelo/nitro/nativeviews/NativeViewsPackage.kt me adding my view to the list of views RN knows about
  5. native-views/ios/LottieView.swift my iOS implementation
  6. native-views/nitro.json, native-views/src/Lottie.nitro.ts and native-views/src/index.tsx me declaring the new view
  7. src/views/HomeScreen/HomeScreenContent.tsx me using the view

Everything else is codegen'd. I didn't have to wrangle anything to make this work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants