Javascript 使用React Native生成word文档

Javascript 使用React Native生成word文档,javascript,react-native,docx,Javascript,React Native,Docx,我有一个React应用程序,我想使用用户在输入表单中填写的信息,使用部分模板生成word文档。例如: 有一个word文档模板: 我的名字是{firstname},我住在{address} 表格是这样的 <View> <TextInput value={this.state.firstname} placeholder={'firstname'} /> <TextInput value={this.state.address}

我有一个React应用程序,我想使用用户在输入表单中填写的信息,使用部分模板生成word文档。例如:

有一个word文档模板:

我的名字是
{firstname}
,我住在
{address}

表格是这样的

<View>
  <TextInput
    value={this.state.firstname}
    placeholder={'firstname'}
  />
  <TextInput
    value={this.state.address}
    placeholder={'Address'}
  />
</View>

我知道redocx可以用于生成类似的内容,但redocx可以用于已经有文字的模板/部分文档,并且只需要在应用程序中完成并生成用户输入。是否有一种方法可以使用react native实现这一点