mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Typos in comments and log messages
Summary: No code changes, no testing required. alligned -> aligned allignment -> alignment completly -> completely conseptually -> conceptually decendents -> descendants indefinetly -> indefinitely dimention -> dimension doesnt -> doesn't safegaurd -> safeguard intialization -> initialization hierachy -> hierarchy happend -> happened gaurd -> guard programatically -> programmatically initalized -> initialized immidiately -> immediately occured -> occurred unkown -> unknown neccessary -> necessary neccesarily -> necessarily occuring -> occurring comoponent -> component propogate -> propagate recieved -> received referece -> reference perfomance -> performance recieving -> receiving subsquently -> subsequently scoll -> scroll suprisingly -> surprisingly targetting -> targeting tranform -> transform symetrical -> symmetrical wtih -> with Closes https://github.com/facebook/react-native/pull/17578 Differential Revision: D6718791 Pulled By: shergin fbshipit-source-id: 4ab79c1131ec5971d35a0c7199eba7ec0a0918ad
This commit is contained in:
committed by
Facebook Github Bot
parent
cae7179c94
commit
d2c569795c
@@ -32,7 +32,7 @@ const DEBUG = false;
|
||||
*
|
||||
* `<Incremental>` solves this by slicing up rendering into chunks that are
|
||||
* spread across multiple event loops. Expensive components can be sliced up
|
||||
* recursively by wrapping pieces of them and their decendents in
|
||||
* recursively by wrapping pieces of them and their descendants in
|
||||
* `<Incremental>` components. `<IncrementalGroup>` can be used to make sure
|
||||
* everything in the group is rendered recursively before calling `onDone` and
|
||||
* moving on to another sibling group (e.g. render one row at a time, even if
|
||||
@@ -83,7 +83,7 @@ const DEBUG = false;
|
||||
*/
|
||||
export type Props = {
|
||||
/**
|
||||
* Called when all the decendents have finished rendering and mounting
|
||||
* Called when all the descendants have finished rendering and mounting
|
||||
* recursively.
|
||||
*/
|
||||
onDone?: () => void,
|
||||
|
||||
@@ -27,7 +27,7 @@ import type {Context} from 'Incremental';
|
||||
*
|
||||
* `<IncrementalPresenter>` can be used to group sets of `<Incremental>` renders
|
||||
* such that they are initially invisible and removed from layout until all
|
||||
* decendents have finished rendering, at which point they are drawn all at once
|
||||
* descendants have finished rendering, at which point they are drawn all at once
|
||||
* so the UI doesn't jump around during the incremental rendering process.
|
||||
*
|
||||
* See Incremental.js for more info.
|
||||
|
||||
@@ -51,7 +51,7 @@ type State = {
|
||||
*
|
||||
* - It ensures that at most 1 row is swiped open (auto closes others)
|
||||
* - It can bounce the 1st row of the list so users know it's swipeable
|
||||
* - Increase performance on iOS by locking list swiping when row swiping is occuring
|
||||
* - Increase performance on iOS by locking list swiping when row swiping is occurring
|
||||
* - More to come
|
||||
*/
|
||||
|
||||
|
||||
@@ -392,7 +392,7 @@ class WindowedListView extends React.Component<Props, State> {
|
||||
}
|
||||
if (props.onEndReached) {
|
||||
// Make sure we call onEndReached exactly once every time we reach the
|
||||
// end. Resets if scoll back up and down again.
|
||||
// end. Resets if scroll back up and down again.
|
||||
const willBeAtTheEnd = lastRow === (totalRows - 1);
|
||||
if (willBeAtTheEnd && !this._hasCalledOnEndReached) {
|
||||
props.onEndReached();
|
||||
|
||||
Reference in New Issue
Block a user