无法加载图像HTTP

时间:2017-06-05 15:52:12

标签: react-native

我无法加载此图片,请帮帮我! 我的info.plist>

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSExceptionDomains</key>
    <dict>
        <key>localhost</key>
        <dict>
            <key>NSExceptionAllowsInsecureHTTPLoads</key>
            <true/>
        </dict>
    </dict>
</dict>

我的代码&gt;

      <View style={{flex: 1, flexDirection: 'row'}}>
        <Image 
        source={{uri: 'http://ro-character-simulator.ratemyserver.net/charsim.php?gender=1&job=40&hair=1&viewid=0&location=256&direction=0&action=1&hdye=1&dye=0&framenum=0&bg=0&cart=&mount=0&shield=0&weapon=0&animate=1&rand=9725591', width: 50, height: 50}}/>
      </View>

2 个答案:

答案 0 :(得分:0)

我认为您需要在class Main { public static void main(String[] args) { Loan.loan(loan -> loan.doOtherThing(2) .doSomething(3) .doOtherThing(3)); } }

中再添一个键
 <td class="input-pricing">
     @Html.TextBox("model-effectiveDate",
                    new ProjectPricing().UnitTypePriceEffDate.ToShortDateString(),
                    new { @class = "date" })
 </td>

答案 1 :(得分:0)

需要允许表单Xcode设置。enter image description here