Navigation

    论坛 - React Native中文社区

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Search
    1. Home
    2. jiyarong
    J
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    jiyarong

    @jiyarong

    0
    Reputation
    69
    Posts
    800
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    jiyarong Follow

    Best posts made by jiyarong

    This user hasn't posted anything yet.

    Latest posts made by jiyarong

    • RE: React-Navigation左滑返回只能从最左边开始滑,我想调整开始滑动的位置怎么调整呢

      搞定了,是这个参数

      ...
      navigationOptions: {
              gesturesEnabled: true,
              gestureResponseDistance: {
                  vertical: 150,
                  horizontal: 150
              } ,
              headerTintColor: '
      ...
      
      posted in 讨论区
      J
      jiyarong
    • React-Navigation左滑返回只能从最左边开始滑,我想调整开始滑动的位置怎么调整呢

      左滑返回只能从最左边开始滑才能返回,在中间滑是没用的,我想调整开始滑动的位置怎么调整呢

      posted in 讨论区
      J
      jiyarong
    • RE: 如何全局的定制一个组件,比如像安卓和IOS有差异的那些,我想不用每次都传一些固定的东西

      我前面试了下

      某组件.defaultProps = {
        ...某组件.defaultProps,
        foo: 'bar'
      }
      

      这样是可以的

      posted in 讨论区
      J
      jiyarong
    • 如何全局的定制一个组件,比如像安卓和IOS有差异的那些,我想不用每次都传一些固定的东西

      如何全局的定制一个组件,比如像安卓和IOS有差异的那些,我想不用每次都传一些固定的东西,能不能只写一次,以后调用这个组件的时候就不用传某个参数了

      posted in 讨论区
      J
      jiyarong
    • RE: React Native 模仿网易云音乐手机客户端,兼容安卓和IOS两个平台

      关于列表下拉动态收齐列表头的那个动画效果,我参考楼主的写了一个,但是IOS的感觉帧数不高,有卡顿感,安卓的就很流畅,不知道楼主有没有这个问题

      posted in 分享
      J
      jiyarong
    • Navigation 主屏包含四个Tab,这四个Tab会在刚进App的时候全部开始加载,怎么解决
      const MainPage = TabNavigator({
          homework_index: {
              screen: HomeworkIndex,
              navigationOptions: {
                  tabBarLabel: '作业',
                  tabBarIcon: ({focused}) => {
                      return(<Icon size={26} style={styles.icon_style} name={focused ? 'ios-home' : 'ios-home-outline'} />)
                  }
              }
          },
      
          notification_index: {
              screen: NotificationIndex,
              navigationOptions: {
                  tabBarLabel: '通知',
                  tabBarIcon: ({focused}) => {
                      return(<Icon size={26} style={styles.icon_style} name={focused ? 'ios-albums' : 'ios-albums-outline'} />)
                  }
              }
          },
      
          self_learning_index: {
              screen: SelfLearningIndex,
              navigationOptions: {
                  tabBarLabel: '自学',
                  tabBarIcon: ({focused}) => {
                      return(<Icon size={26} style={styles.icon_style} name={focused ? 'ios-brush' : 'ios-brush-outline'} />)
                  }
              }
          },
      
          personal_index: {
              screen: PersonalIndex,
              navigationOptions: {
                  tabBarLabel: '我的',
                  tabBarIcon: ({focused}) => {
                      return(<Icon size={26} style={styles.icon_style} name={focused ? 'ios-contact' : 'ios-contact-outline'} />)
                  }
              }
          }
          }, {
              tabBarPosition: 'bottom',
              animationEnabled: false,
              //tabBarComponent: TabBar,
              tabBarOptions: {
                  activeTintColor: '#642100',
                  showIcon: true,
                  labelStyle: {
                      fontSize: 10,
                      marginTop: 0,
                      marginBottom: 2,
                      color: 'gray'
                      //paddingTop: 10
                  },
                  style: {
                      height: 50,
                      backgroundColor: 'white'
                  },
                  tabStyle: {
                      marginTop: 0
                  },
                  indicatorStyle: {
                      height: 0
                  }
              }
          }
      
      )
      
      const AppNavigation = StackNavigator({
          main_page: {
              screen: MainPage,
          },
      ...
      
      export default AppNavigation
      
      

      怎么解决

      posted in 讨论区
      J
      jiyarong
    • RE: rn前端怎么通过创建流的方式读取文件传给服务器?

      react-native-fetch-blob或者react-native-fs

      posted in 求助专区
      J
      jiyarong
    • RE: react-navigation导航求助

      在你的组件componentDidMont之后,主动把params写进去

       componentDidMount() {
              this.props.navigation.setParams({
                  foo: this.bar
              })
        }
      
      posted in 求助专区
      J
      jiyarong
    • 如何实现一边录音一边和服务器做长连接实时上传stream, 类似于直播App那样的

      找了很久一直没找到类似的插件,有人做过吗,求分享,谢谢

      posted in 讨论区
      J
      jiyarong
    • 有没有好用压缩视频的组件推荐,github上面找了两个都不好用,不是奔溃就是报错

      视频录制完即便选的低画质也还是太大,有什么其他办法能让视频小一点?

      posted in 求助专区
      J
      jiyarong