小编Kis*_*Oza的帖子

在react-native中设置动态的'initialRouteName'

问题很简单,我知道同一问题有很多答案,但是我设置了自己的App.js文件,但我尝试了几乎所有方法,但都没有成功。

所以我App.js看起来像这样

import React, { Component } from 'react';
import {
  Platform,
  StyleSheet,
  Text,
  View,
  StatusBar
} from 'react-native';
import { createStackNavigator  } from 'react-navigation';
import { Header, Button, Spinner } from './src/components/comman';
import SplashScreen from 'react-native-splash-screen';
import LoginForm from './src/components/LoginForm';
import SignupForm from './src/components/SignupForm';
import Home from './src/components/Home';
import ForgetPassword from './src/components/ForgetPassword';


import { YellowBox } from 'react-native';
YellowBox.ignoreWarnings(['Warning: isMounted(...) is deprecated', 'Module RCTImageLoader']);
const App = createStackNavigator ({
  Login: { screen: LoginForm },
  Home: …
Run Code Online (Sandbox Code Playgroud)

react-native react-navigation

7
推荐指数
1
解决办法
4982
查看次数

在 Ionic 中实施 Firebase 应用内消息传递

最近我在 firebase 控制台中展示了一个名为的新选项"In-App Messaging",所以我想知道 ionic 插件中是否有任何选项可以实现相同的功能,因此我浏览了每个 firebase 插件,例如https://ionicframework.com/docs/native/firebase-消息传递/https://ionicframework.com/docs/native/fcm/

但找不到与此相关的任何选项,因此我尝试安装该fcm插件,只需检查其是否由 firebase 库自动管理。但是,当我创建应用内广告系列并检查是否发生任何情况时,但什么也没有发生。

那么你们知道它是如何工作的吗?我知道它仍处于测试模式,因此需要时间才能反映在离子插件中。

android firebase ionic-framework

5
推荐指数
1
解决办法
1506
查看次数

what should be the RegExp for app version validation?

I am stuck in one RegExp where I need to validate app version for app store and play-store. I have tried several RegExp but none of them is useful for me. Here are the example that pass the test

App version up-to 2-3 decimal point

1.0 // pass

1.0.0 // pass

1.0.0.0 // fail

a.0 // fail

1 // pass
Run Code Online (Sandbox Code Playgroud)

I found one RegExp [0-9]+\.[0-9]+\.[0-9]+\.[0-9]+ but this will only be valid when I have enter 4 decimal points. I don't …

javascript regex

4
推荐指数
2
解决办法
83
查看次数

angular *ngFor 不使用输入重新渲染 html 表

我遇到了一个非常奇怪的角度问题。我在我的 ts 文件中创建了一个简单的数组,我通过迭代同一个数组来显示一个带有输入的表。现在,当我更改数组(反转它)时,它工作正常,但是如果我在更改之前在输入中输入了某些内容,则文本将保留在输入中。

这是代码

component.ts

    import { Component } from '@angular/core';

    @Component({
      selector: 'app-root',
      templateUrl: './app.component.html',
      styleUrls: ['./app.component.css']
    })
    export class AppComponent {
      title = 'practice';
      myArray = [1,2,3,4,5,6,7];
      change() {
        // this.myArray = [];
        this.myArray.reverse();

      }
    }
Run Code Online (Sandbox Code Playgroud)

我的 HTML:

    import { Component } from '@angular/core';

    @Component({
      selector: 'app-root',
      templateUrl: './app.component.html',
      styleUrls: ['./app.component.css']
    })
    export class AppComponent {
      title = 'practice';
      myArray = [1,2,3,4,5,6,7];
      change() {
        // this.myArray = [];
        this.myArray.reverse();

      }
    }
Run Code Online (Sandbox Code Playgroud)

问题说明示例视频:https : //www.loom.com/share/6f4887183bb94150ad7390f25e5b466a

如您所见,当我在输入中输入内容并更改数组时,该值仍保留在数组中。我已经检查过原始数组没有改变。

我的意思是它只是被逆转了,但没有别的。

问题是什么?

javascript angular

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

在扩展名之前在URL的末尾追加字符串

<a class="fancybox" href="images/<?php echo $prod['item_image_url']; ?>" data-fancybox-group="gallery" title=""><img src="images/<?php echo $prod['item_image_url']; ?>" alt="" /></a>
Run Code Online (Sandbox Code Playgroud)

在此代码中echo $prod['item_image_url'];打印存储在我的表中的图像URL并打印出来

href="images/new-thumb-01.jpg"
Run Code Online (Sandbox Code Playgroud)

我想把它转换成

href="images/new-thumb-01-big.jpg"
Run Code Online (Sandbox Code Playgroud)

不改变数据库条目.这意味着"-big"在URL的末尾但是之前的apped".jpg"

php url append

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