React fiber config with no mutation
不支持变异的渲染器可以从此模块重新导出所有内容。
作用
导出的类型
手势时间轴
export type GestureTimeline = any;
导出的常量
支持变异
备注
源码中 21 - 22 行
// Mutation (when unsupported)
// 突变(当不支持时)
export const supportsMutation = false;
克隆可变实例
备注
源码中 23 行
export const cloneMutableInstance = shim;
克隆可变文本实例
备注
源码中 24 行
export const cloneMutableTextInstance = shim;
追加子节点
备注
源码中 25 行
export const appendChild = shim;
添加子元素到容器
备注
源码中 26 行
export const appendChildToContainer = shim;
提交文本更新
备注
源码中 27 行
export const commitTextUpdate = shim;
提交挂载
备注
源码中 28 行
export const commitMount = shim;
提交更新
备注
源码中 29 行
export const commitUpdate = shim;
在之前插入
备注
源码中 30 行
export const insertBefore = shim;
在容器前插入
备注
源码中 31 行
export const insertInContainerBefore = shim;
移除子元素
备注
源码中 32 行
export const removeChild = shim;
从容器中移除子元素
备注
源码中 33 行
export const removeChildFromContainer = shim;
重置文本内容
备注
源码中 34 行
export const resetTextContent = shim;
隐藏实例
备注
源码中 35 行
export const hideInstance = shim;
隐藏文本实例
备注
源码中 36 行
export const hideTextInstance = shim;
显示实例
备注
源码中 37 行
export const unhideInstance = shim;
显示文本实例
备注
源码中 38 行
export const unhideTextInstance = shim;
清空容器
备注
源码中 39 行
export const clearContainer = shim;
获取当前手势偏移
备注
源码中 41 行
export const getCurrentGestureOffset = shim;
工具
兼容垫片
// Renderers that don't support mutation
// can re-export everything from this module.
// 不支持变异的渲染器可以从此模块重新导出所有内容。
function shim(...args: any): empty {
throw new Error(
'The current renderer does not support mutation. ' +
'This error is likely caused by a bug in React. ' +
'Please file an issue.',
);
}