23 lines
673 B
JavaScript
23 lines
673 B
JavaScript
// Module ID: 1590
|
|
// Function ID: 1591
|
|
// Name: useCurrentRender
|
|
// Dependencies: [19, 1549]
|
|
// Exports: useCurrentRender
|
|
|
|
// Module 1590 (useCurrentRender)
|
|
import CurrentRenderContext from "CurrentRenderContext" /* 1549 */;
|
|
import closure_2 from "noop" /* 19 */;
|
|
|
|
require = arg1;
|
|
|
|
export const useCurrentRender = function useCurrentRender(arg0) {
|
|
({ state, navigation } = arg0);
|
|
const context = React.useContext(CurrentRenderContext.CurrentRenderContext);
|
|
let isFocusedResult = context;
|
|
if (context) {
|
|
isFocusedResult = navigation.isFocused();
|
|
}
|
|
if (isFocusedResult) {
|
|
context.options = arg0.descriptors[state.routes[state.index].key].options;
|
|
}
|
|
};
|