Check out example codes for "new TextractDocument(results)". It will help you in understanding the concepts better.

Code Example 1

public List< GetDocumentAnalysisResponse > GetJobResults(string jobId) {
			var result = new List< GetDocumentAnalysisResponse >();
			var response = this.textract. GetDocumentAnalysisAsync(new GetDocumentAnalysisRequest {
				JobId = jobId
			});
			response.Wait();
			result.Add(response.Result);
			var nextToken = response.Result.NextToken;
			while(nextToken != null) {
				this.Wait();
				response = this.textract. GetDocumentAnalysisAsync(new GetDocumentAnalysisRequest {
					JobId = jobId,
					NextToken = response.Result.NextToken
				});
				response.Wait();
				result.Add(response.Result);
				nextToken = response.Result.NextToken;
			}
			return result;
		}

Learn ReactJs, React Native from akashmittal.com