
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
@unpourtous/tianyan-react-native
Advanced tools
App开发过程中,经常会遇到一个场景就是,测试说我遇到一个xxx问题,但是不能复现,之前比较多的解决方案是基于文件日志。我们自己使用过程中发现文件日志太重,而且测试同学取日志的学习成本太高。于是在web项目中开始使用类似vConsole这一类的工具,又因为我们主要使用到的日志查看和日志上传功能,所以当前的tianyan-react-native 版本只提供这两个核心功能。
将TianYan
嵌入到App最外层View中,具体用法可以参考exmaple
目录
export default class SimpleApp extends Component {
render () {
return (
<View style={styles.container}>
{/* other view */}
<TianYan options={{
logServerUrl: 'http://23lab.com:3000/v1/log',
maxLogLine: 1000,
ignoreFilter: function () { // 根据自定义规则过滤日志,避免手机端显示太多无用信息
return (arguments && typeof arguments[0] === 'string' && arguments[0].indexOf('ignored log') === 0)
}
}} />
</View>
)
}
}
FAQs
React Native component for both Android and iOS
The npm package @unpourtous/tianyan-react-native receives a total of 27 weekly downloads. As such, @unpourtous/tianyan-react-native popularity was classified as not popular.
We found that @unpourtous/tianyan-react-native demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.