Skip to content

Commit

Permalink
chore: add code comments for autolinking (#1595)
Browse files Browse the repository at this point in the history
## Description

Add code comments for few changes introduced in #1585. 

## Changes

Just few code comments. See the changes.


## Test code and steps to reproduce

--

## Checklist

- [x] Ensured that CI passes
  • Loading branch information
kkafar authored Sep 19, 2022
1 parent 3e18fd6 commit 04b6c01
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions android/src/main/jni/rnscreens.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
* @generated by codegen project: GenerateModuleJniCpp.js
*/
#include "rnscreens.h"

namespace facebook {
Expand Down
13 changes: 13 additions & 0 deletions android/src/main/jni/rnscreens.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@
#include <ReactCommon/JavaTurboModule.h>
#include <ReactCommon/TurboModule.h>
#include <jsi/jsi.h>

/**
* Note this import and that it is not present in autogenerated header file
* under android/build/generated/source/codegen/jni/rnscreens.h
*
* It is added here to make our custom symbols visible in autogenerated file with
* code responsible for registering component descriptor providers. See that rncli.cpp,
* located under <App>/android/app/build/generated/rncli/src/main/jni/rncli.cpp,
* includes autogenerated rnscreens.h header by default. We change this behaviour
* by appropriate include path configuration so that this header file gets included.
*
* See: https://github.com/software-mansion/react-native-screens/pull/1585
*/
#include <react/renderer/components/rnscreens/RNSScreenComponentDescriptor.h>

namespace facebook {
Expand Down

0 comments on commit 04b6c01

Please sign in to comment.