Question: I am wonder if in `screenA` I have an object `data = {}` that will be changed dynamically, can I receive changes in `screenB` by just sending this props from `screenA` through `this.props.navigation.navigate('screenB', {data})`?

And in `screenB` to have a `componentWillReceiveProps(nextProps)` to get this changes through something like `nextProps.navigation.state.param.data`

Or there is a way to achieve this?

Answer: 
You cannot inject the Lambda context automatically. However, you can retrieve it form the `ContainerRequestContext` object. The [`serverless-java-container`](https://github.com/awslabs/aws-serverless-java-container) framework adds it as [a request property](https://github.com/awslabs/aws-serverless-java-container/blob/master/aws-serverless-java-container-jersey/src/main/java/com/amazonaws/serverless/proxy/jersey/JerseyHandlerFilter.java#L145).

You can probably do something like this (have not tested the code):

```java
@GET
public String testLambdaContext(@Context ContainerRequestContext containerRequest) {
   Context lambdaContext =
       (Context) containerRequest.getProperty(RequestReader.LAMBDA_CONTEXT_PROPERTY);
   return lambdaContext.getInvokedFunctionArn()
}

```
You can Inject context to jersey resources using [Spring profile](https://stackoverflow.com/questions/43198688/spring-profile-based-jersey-rest-service-publish/43199936#43199936)

Define for test and prod profiles different methods/objects

If you don't have Spring, you can check [jersey integration](https://medium.com/@shask9/developing-restful-web-services-using-jax-rs-jersey-and-spring-b4e1eb8e2467)

> 
> jersey-spring4 module that will act as the integration bridge for Spring and Jersey.
> 
> 
> 

See full example in github [aws-serverless-java-container](https://github.com/awslabs/aws-serverless-java-container/wiki/Quick-start---Spring) library running a Spring application with profiles in AWS Lambda 

> 
> There are two ways to activate Spring Profiles (as defined with the @Profile annotation). We recommend using the static initializer that receives a list of profiles. The Serverless Java Container framework takes care of setting the profile and initializing the application at once.
> 
> 
> 
> ```
> public class StreamLambdaHandler implements RequestStreamHandler {
>     private static SpringLambdaContainerHandler<AwsProxyRequest, AwsProxyResponse> handler;
>     static {
>         try {
>             AnnotationConfigWebApplicationContext applicationContext = new AnnotationConfigWebApplicationContext();
>             applicationContext.register(PetStoreSpringAppConfig.class);
>             handler = SpringLambdaContainerHandler.getAwsProxyHandler(applicationContext, "profile-1", "profile-2");
> 
> ```
> 
>