react-native-ios

How Can Bind the Dragged view inside ScrollView item?

╄→гoц情女王★ 提交于 2019-12-12 08:16:31
问题 I have created ScrollView with three views. and I want to bind the dragged view inside the ScrollView , and the rest of haven't drag-dropped view should maintain outside of ScrollView . How can it be possible. See the GIF : I want to add the draggableView inside the ScrollView. Code : import React, { Component } from 'react'; import { StyleSheet, View, Text, PanResponder, Animated, Easing, Dimensions, Platform, TouchableOpacity, ScrollView, } from 'react-native'; import Carousel from 'react

Vector font not working

天涯浪子 提交于 2019-12-12 05:58:41
问题 I already had run react-native start and then react-native run-ios . So my app is running. I placed ios-glyphs.ttf into a folder called fonts in my root directory. So ./fonts . I then added to package.json this: "rnpm": { "assets": [ "fonts" ] } I then ran react-native link . After that in my app I added in a rende: <Text style={{fontFamily:'ios-glyphs'}}></Text> On load of my app it is fine, but when i load the page that renders this custom font I get "Unrecognized font family 'ios-glyphs'"

Xcode corrupts project.pbxproj everytime I try to build with Xcode

﹥>﹥吖頭↗ 提交于 2019-12-11 19:32:37
问题 Currently on react-native 0.58.3 and react 16.6.3. The project builds and runs correctly when using react-native run-ios However if I try to build using Xcode directly (to test on device for example), it will fail and corrupt the project.pbxproj file with extra entries that make builds fail with react-native run-ios as well. Below are copies of the project.pbxproj before and after Xcode mangles it: Before, working: https://pastebin.com/g5fUL1zn After, not working: https://pastebin.com

I am getting The module `./index.css` could not be found From react-native

泄露秘密 提交于 2019-12-11 18:27:56
问题 I am getting The module ./index.css could not be found From react-native, I have imported the file correctly on the location. Searched a lot on the google , please help. Here is the full output of the error, Body: {"originModulePath":"/Users/tejas-mac/Documents/React Studio/Exported Projects/index.js","targetModuleName":"./index.css","message":"Unable to resolve module `./index.css` from `/Users/tejas-mac/Documents/React Studio/Exported Projects/index.js`: The module `./index.css` could not

React-Native DrawerNavigator Menu on both sides

谁都会走 提交于 2019-12-11 16:48:41
问题 I have a react native app with a DrawerNavigator. For the menu I have my own component. That works great. Now I want to add a second side menu on the right side. Is it possible to have two DrawerNavigator like in the Slack App? This solution is not working for me: https://snack.expo.io/ry7lYempe because I don't want to have a TabController as parent. Both Drawer should be accessible in all screens. My code looks like this: import React from 'react' import reducer from './src/reducers' import

How to broadcast a live video to YouTube channel using ReactNative in Ios/Android?

自作多情 提交于 2019-12-11 16:08:51
问题 Is it possible to broadcast a live video to YouTube channel using ReactNative in Ios/Android? 回答1: Try using this library https://www.npmjs.com/package/react-native-nodemediaclient https://github.com/NodeMedia/react-native-nodemediaclient import { NodeCameraView } from 'react-native-nodemediaclient'; ...... <NodeCameraView style={{ height: 400 }} ref={(vb) => { this.vb = vb }} outputUrl = {"rtmp://192.168.0.10/live/stream"}// out put to youTube camera={{ cameraId: 1, cameraFrontMirror: true }

100+ buildtime issues on fresh react-native project

白昼怎懂夜的黑 提交于 2019-12-11 15:46:20
问题 When building a react-native app, the build succeeds, but Xcode logs more than 100 issues in the buildtime log. Is this normal? All I did was: Installed Xcode (9.2) brew install node (9.9.0) brew install watchman (4.9.0) npm install -g react-native-cli (2.0.1) cd ~/Development && react-native init Test Open ios/Test.xcodeproj and hit the Run button (iPhone 8 simulator) Again - the build succeeds. But all the issues in the logs concerns me and I was not able to find others with the same issue.

In React-Native Buttons are not clickable when I applied slide up animation

╄→гoц情女王★ 提交于 2019-12-11 10:17:18
问题 I am creating a view. Inside view there are some buttons and all buttons are clickable. I created those view . working fine all buttons are clickable though. Now my requirement is that view should have slide up animation. so I searched a little and found Here. Modified my code as per requirements and animation was working fine. But the problem is after animation my buttons are not clickable any more. Please help me I Checked on iOS simulator it was working fine, button was clickable though

Can't get iOS push notification device token in react-native

瘦欲@ 提交于 2019-12-11 07:36:50
问题 I referred to this question to get a device token in order to send push notifications to my app. I created my app using create-react-native-app . Here is the code: import React, { Component } from 'react'; import { Platform, StyleSheet, AppRegistry, Text, View, PushNotificationIOS } from 'react-native'; type Props = {}; export default class Apptitude extends Component<Props> { constructor() { console.log('registering evt listerner in launchpad') PushNotificationIOS.addEventLister('register',

Shell Script Invocation Error on XCode 8.3.2 on React-native

半城伤御伤魂 提交于 2019-12-11 07:24:05
问题 I got this Error When I run my ReactNative App /Users/GLB-285/Desktop/ReactProjects/DribbleProject/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh: line 3: /Users/GLB-285/Desktop/ReactProjects/DribbleProject/node_modules/react-native/scripts/ios-install-third-party.sh: Permission denied** And In terminal: child_process.js:495 throw err; ^ Error: spawnSync /Users/GLB-285/Desktop/ReactProjects/DribbleProject/node_modules