Question: I am using expo and firebase to build a react-native application and I want to upload an image to firebase storage. I have the following function as an onPress function to upload an image.

```
choosePhoto = () => {
        const options = {
          noData: true,
        }
        ImagePicker.launchImageLibrary(options, response => {
          if (response.uri) {
            this.setState({ photo : response })
          }
        })
      }

```

I am getting the error "undefined is not a function (near '...ImagePicker.launchImageLibrary...')" when I run the app.
How can I fix the error?

Answer: 
Use right Blazor syntax:

```
<input
type="text" @bind="@message.Message"/>

```

If you need to execute function on blur:

```
<input value="@message.Message"
     @onchange="@((ChangeEventArgs __e) =>  
     { message.Message  = __e.Value.ToString());
     SaveMessages(); })" />

```

More info: <https://learn.microsoft.com/en-us/aspnet/core/blazor/components?view=aspnetcore-3.0#data-binding>
silly mistake on my part, the issue wasn't with my syntax. I made the mistake of binding to my service instead of a local variable so when I left focus it couldn't update and just retrieved from the service 

I simply added the local variable below 

```
        @foreach (var message in dataVariable)
        {
        <tr>
            <td><input type="text" @bind="message.Username" /></td>
            <td><input type="text" @bind="message.Message" /></td>
        </tr>
        }

   @code {
    private List<someData> dataVariable;

    protected override void OnInitialized()
    {
        TableSeats = UserMessageService.GetSomeData();
    }
}

```