-
Notifications
You must be signed in to change notification settings - Fork 97
Bump React Native to 0.80.1 #713
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
f57e9e5
Bump React Native to 0.80.1
tomekzaw 7a7ccf3
Bump React Native Reanimated to 3.18.0
tomekzaw 27604fd
Update compatibility table
tomekzaw dae36b4
Revert changes in .prettierrc.js
tomekzaw ec2a942
Fix error: redefinition of 'SafeReleaseJniRef'
tomekzaw e2f7820
Update compatibility table
tomekzaw 1543861
Revert changes in example/.prettierrc.js
tomekzaw 6b1ec93
Fix react and react-dom version mismatch
tomekzaw 01e6226
Fix Android crashes
j-piasecki File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
...nPatch/CustomMountingManager/latest/com/expensify/livemarkdown/CustomFabricUIManager.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| package com.expensify.livemarkdown; | ||
|
|
||
| import com.facebook.react.bridge.ReactApplicationContext; | ||
| import com.facebook.react.bridge.ReadableMap; | ||
| import com.facebook.react.fabric.FabricUIManager; | ||
| import com.facebook.react.fabric.mounting.MountingManager; | ||
| import com.facebook.react.uimanager.ViewManagerRegistry; | ||
| import com.facebook.react.uimanager.events.BatchEventDispatchedListener; | ||
|
|
||
| import java.lang.reflect.Field; | ||
|
|
||
| public class CustomFabricUIManager { | ||
|
|
||
| public static FabricUIManager create(FabricUIManager source, ReadableMap markdownProps, int parserId) { | ||
| Class<? extends FabricUIManager> uiManagerClass = source.getClass(); | ||
|
|
||
| try { | ||
| Field mountingManagerField = uiManagerClass.getDeclaredField("mMountingManager"); | ||
| mountingManagerField.setAccessible(true); | ||
|
|
||
| MountingManager sourceMountingManager = readPrivateField(source, "mMountingManager"); | ||
| ReactApplicationContext reactContext = readPrivateField(source, "mReactApplicationContext"); | ||
| ViewManagerRegistry viewManagerRegistry = readPrivateField(source, "mViewManagerRegistry"); | ||
| BatchEventDispatchedListener batchEventDispatchedListener = readPrivateField(source, "mBatchEventDispatchedListener"); | ||
| MountingManager.MountItemExecutor mountItemExecutor = readPrivateField(source, "mMountItemExecutor"); | ||
|
|
||
| FabricUIManager customFabricUIManager = new FabricUIManager(reactContext, viewManagerRegistry, batchEventDispatchedListener); | ||
|
|
||
| mountingManagerField.set(customFabricUIManager, new CustomMountingManager(sourceMountingManager, viewManagerRegistry, mountItemExecutor, reactContext, markdownProps, parserId)); | ||
|
|
||
| return customFabricUIManager; | ||
| } catch (NoSuchFieldException | IllegalAccessException e) { | ||
| throw new RuntimeException("[LiveMarkdown] Cannot read data from FabricUIManager"); | ||
| } | ||
| } | ||
|
|
||
| @SuppressWarnings("unchecked") | ||
| private static <T> T readPrivateField(Object obj, String name) throws NoSuchFieldException, IllegalAccessException { | ||
| Class<?> clazz = obj.getClass(); | ||
|
|
||
| Field field = clazz.getDeclaredField(name); | ||
| field.setAccessible(true); | ||
| T value = (T) field.get(obj); | ||
|
|
||
| return value; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.