用于中继和 react-native-drawer 的 Babel
Babel for relay and react-native-drawer
我正在尝试将 relay
与 react-native-drawer
一起使用,但它给了我 _this.state.viewport
未定义。我已经将问题缩小到 babel 但现在不确定是否继续。 (已编辑)
我读完这个问题就到了那里https://github.com/root-two/react-native-drawer/issues/140(已编辑)
relay
使用
{
"passPerPreset": true,
"presets": [
{"plugins": ["./plugins/babelRelayPlugin"]},
"react-native"
]
}
我认为这就是问题所在(已编辑)
我尝试使用 babel-plugin-transform-class-properties
但似乎没有帮助
我找到了解决方案并创建了模板。摘要是使用 react-native-router-flux 和 babel-relay-plugin-loader
我正在尝试将 relay
与 react-native-drawer
一起使用,但它给了我 _this.state.viewport
未定义。我已经将问题缩小到 babel 但现在不确定是否继续。 (已编辑)
我读完这个问题就到了那里https://github.com/root-two/react-native-drawer/issues/140(已编辑)
relay
使用
{
"passPerPreset": true,
"presets": [
{"plugins": ["./plugins/babelRelayPlugin"]},
"react-native"
]
}
我认为这就是问题所在(已编辑)
我尝试使用 babel-plugin-transform-class-properties
但似乎没有帮助
我找到了解决方案并创建了模板。摘要是使用 react-native-router-flux 和 babel-relay-plugin-loader