小编Bru*_*ine的帖子

React-native textAlign justify

Android的

我试图使用textAlign使文本对齐,但它不起作用.

<Text style={{textAlign: 'justify',color:'#1B3D6C', margin: 20}}>
Lorem ipsum dolor sit amet, et usu congue vocibus, ei sea alienum repudiandae, intellegam quaerendum an nam. Vocibus apeirian no vis, eos cu conguemoo scaevola accusamus. Et sea placerat persecutii oinn
</Text>
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

编辑:好的,textAlign对齐在Android上不起作用,所以我现在问的是否有一些解决方案?我真的需要!

react-native react-native-android react-native-ios

13
推荐指数
2
解决办法
2万
查看次数

React Native TouchableNativeFeedback

使用React-Native有一个长按错误

使用TouchableHighlight和TouchableNativeFeedback

试图从州过渡RESPONDER_INACTIVE_PRESS_INRESPONDER_ACTIVE_LONG_PRESS_IN

我的代码

react-native

4
推荐指数
1
解决办法
2324
查看次数

React-Native Image Opacity为文本提供不透明度

我使用图像基本上是一个视图,并将文本放在其中,我试图给图像不透明,但每次我尝试文本得到不透明度我也不知道为什么会发生

在此输入图像描述

<View style={{flex: 1}}>
  <View style={{height: 180,}}>
     <Image source={{uri : this.state.fullURLImage}} style={{flex: 1,width: window.width,justifyContent:'center',alignItems:'center',opacity: 0.7}}>
       <Text style={{textAlign: 'center',fontWeight: 'bold',color:'white',fontSize:16,}}>{this.state.title}</Text>
       <Text style={{color:'white',fontSize:14,}}>{'\n'}July {this._try(this.state.day)} | {this.state.time_start} - {this.state.time_end}</Text>
     </Image>
  </View>

  <View style={{flexGrow: 1, backgroundColor: 'white',}}>
     <Text style={{textAlign:'center',color:'#1B3D6C',fontWeight:'bold',margin:10,marginTop: 40}}>{this.state.author}</Text>
     <Text style={{margin:10,textAlign: (Platform.OS === 'ios') ? 'justify' : 'left'}}>{this.state.text}</Text>

  </View>
  <Image
     source={{uri : this.state.fullURLAuthor}}
     style={{
        position: 'absolute',
        top: 180 - 64 / 2,
        height: 64,
        width: 64,
        left: (Dimensions.get('window').width - 64) / 2,
        borderRadius: 32,
     }}
  />
</View>
Run Code Online (Sandbox Code Playgroud)

react-native react-native-android react-native-ios

3
推荐指数
1
解决办法
9677
查看次数

Laravel-mix没有构建通知

我正在使用Vue.js和Laravel-Mix,当我保存项目时,我没有收到这样的通知:

建立成功通知

我在跑步npm run watch。编译时,我的控制台不显示任何错误/警告。

在此处输入图片说明

我已经检查了webpack.mix.jsmix.disableSuccessNotifications(); 文件中没有该通知,我的通知正在我的操作系统上运行。我正在使用Linux Mint。

我有这个package.json

"watch": "node_modules/.bin/webpack --watch --watch-poll --config=node_modules/laravel-mix/setup/webpack.config.js",
Run Code Online (Sandbox Code Playgroud)
  • npm:3.10.10
  • 节点:6.14.1

我有一个具有相同项目的朋友,他得到通知“ Build Success”

linux notifications laravel vue.js laravel-mix

3
推荐指数
2
解决办法
1395
查看次数

React Native Image 不会改变

当我打开配置文件选项卡时,它会从 URL 加载图像(配置文件图像),如果用户想要更改他的图像,他可以,但是当他更改图像时,服务器上的图像已更改,但在应用程序上它不会更改,但如果我刷新了它确实改变的应用程序。

当用户登录他在 URL 上有图像时,URL 不会改变,当他更新图像时,URL 是相同的,但图片是不同的。

<Image style={{height: 70, width:70,borderRadius: 35}} source={{uri:'http://********************/'+GLOBAL.api_token}} />
Run Code Online (Sandbox Code Playgroud)

android react-native react-native-android react-native-ios react-native-image

2
推荐指数
1
解决办法
4181
查看次数